/* =========================================================
   MiFibra Cloud - Custom CSS para WHMCS
   Base recomendada: template clonado desde twenty-one o Lagom
   Ruta sugerida: /templates/mifibracloud/css/custom.css
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --mf-primary: #FF0091;
  --mf-primary-dark: #D60079;
  --mf-primary-soft: rgba(255, 0, 145, 0.12);
  --mf-dark: #0F172A;
  --mf-dark-2: #111827;
  --mf-slate: #1E293B;
  --mf-gray: #64748B;
  --mf-light: #F8FAFC;
  --mf-white: #FFFFFF;
  --mf-border: #E2E8F0;
  --mf-success: #10B981;
  --mf-warning: #F59E0B;
  --mf-radius: 18px;
  --mf-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --mf-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.05);
}

/* =========================================================
   1. Base general y Scrollbar
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mf-light);
  color: var(--mf-dark);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--mf-light);
}
::-webkit-scrollbar-thumb {
  background: var(--mf-gray);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--mf-slate);
}

a {
  color: var(--mf-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--mf-primary-dark);
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   2. Header / Navbar (Moderno y Limpio)
   ========================================================= */

.navbar,
.navbar-main,
.header .navbar,
section#header {
  background: var(--mf-dark) !important;
  border: none !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Enlaces principales */
.navbar > .container a,
.navbar-main .navbar-nav > li > a,
section#header a,
.header a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.navbar > .container a:hover,
.navbar-main .navbar-nav > li > a:hover,
section#header a:hover,
.header a:hover {
  color: var(--mf-white) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.navbar-brand,
.logo-text {
  color: var(--mf-white) !important;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
}

.navbar-brand img,
.logo-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* =========================================================
   2.1 Dropdowns WHMCS Fix (Menús desplegables)
   ========================================================= */

.dropdown-menu {
  background-color: var(--mf-white) !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
  padding: 8px 0 !important;
  margin-top: 5px;
  min-width: 220px;
  overflow: hidden;
  animation: mf-fade-in 0.2s ease;
}

@keyframes mf-fade-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Enlaces del submenú */
.navbar .dropdown-menu a,
.navbar-main .dropdown-menu a,
.header .dropdown-menu a,
.dropdown-menu > li > a,
.dropdown-item {
  color: var(--mf-dark) !important;
  font-weight: 500 !important;
  padding: 10px 20px !important;
  display: block;
  clear: both;
  white-space: nowrap;
  font-size: 0.9rem;
  background: transparent !important;
}

.navbar .dropdown-menu a:hover,
.navbar-main .dropdown-menu a:hover,
.header .dropdown-menu a:hover,
.dropdown-menu > li > a:hover,
.dropdown-item:hover,
.dropdown-menu > li > a:focus {
  background-color: var(--mf-light) !important;
  color: var(--mf-primary) !important;
}

/* Títulos y separadores del menú */
.dropdown-header,
.dropdown-menu .nav-header {
  color: var(--mf-gray) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 12px 20px 4px !important;
}

.dropdown-divider,
.dropdown-menu .divider {
  border-top: 1px solid var(--mf-border) !important;
  margin: 4px 0 !important;
}

/* =========================================================
   3. Botones
   ========================================================= */

.btn,
button,
input[type="submit"] {
  border-radius: 8px !important;
  font-weight: 600;
  padding: 10px 24px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
}

.btn-primary,
.btn-success,
.btn-info,
button.btn-primary,
input[type="submit"].btn-primary {
  background: var(--mf-primary) !important;
  color: var(--mf-white) !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover,
button.btn-primary:hover,
input[type="submit"].btn-primary:hover {
  background: var(--mf-primary-dark) !important;
}

.btn-default,
.btn-secondary {
  background: var(--mf-white) !important;
  color: var(--mf-dark) !important;
  border-color: var(--mf-border) !important;
}

.btn-default:hover,
.btn-secondary:hover {
  border-color: var(--mf-gray) !important;
  color: var(--mf-dark-2) !important;
  background: var(--mf-light) !important;
}

/* =========================================================
   4. Footer Moderno y Completo
   ========================================================= */

.footer,
footer,
.mf-footer {
  background: var(--mf-dark-2) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 60px 0 0 0;
  font-size: 0.95rem;
  border-top: 4px solid var(--mf-primary);
}

.mf-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.mf-footer-col h4 {
  color: var(--mf-white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 20px;
}

.mf-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mf-footer-col ul li {
  margin-bottom: 12px;
}

.mf-footer-col a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.2s ease;
}

.mf-footer-col a:hover {
  color: var(--mf-white) !important;
}

.mf-footer-col p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.mf-social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.mf-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--mf-white) !important;
  transition: background 0.2s ease;
}

.mf-social-links a:hover {
  background: var(--mf-primary);
}

.mf-footer-bottom {
  background: #090e1a;
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mf-footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   5. Hero Home / Jumbotron WHMCS
   ========================================================= */

section#home-banner,
.home-banner,
.jumbotron,
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #111827 50%, #1E293B 100%) !important;
  color: var(--mf-white) !important;
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px 0;
  text-align: center;
}

section#home-banner h1,
.home-banner h1,
.hero h1 {
  color: var(--mf-white) !important;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 15px;
}

section#home-banner p,
.home-banner p,
.hero p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

/* =========================================================
   6. Buscador de dominios
   ========================================================= */

.domain-search-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.domain-search-form {
  display: flex;
  background: var(--mf-white);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.domain-search-form input[type="text"] {
  flex: 1;
  border: none !important;
  padding: 0 20px !important;
  font-size: 1rem;
  outline: none;
  background: transparent !important;
  color: var(--mf-dark) !important;
}

.domain-search-form .btn {
  margin: 0;
  padding: 12px 28px;
}

/* =========================================================
   7. Responsive y Adaptabilidad (Móvil)
   ========================================================= */

@media (max-width: 991px) {
  /* Navbar Móvil */
  .navbar-container {
    padding: 0 15px;
  }
  
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 5px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav > li {
    width: 100%;
  }

  .navbar > .container a,
  .navbar-main .navbar-nav > li > a,
  section#header a {
    display: block;
    width: 100%;
    padding: 12px 15px !important;
  }

  /* Ajuste de submenús en móvil para que no se corten ni queden blancos sobre blanco */
  .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: 0;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 15px !important;
  }

  .navbar .dropdown-menu a,
  .navbar-main .dropdown-menu a,
  .dropdown-menu > li > a {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 10px 15px !important;
  }

  .navbar .dropdown-menu a:hover,
  .navbar-main .dropdown-menu a:hover,
  .dropdown-menu > li > a:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--mf-white) !important;
  }

  .dropdown-header {
    color: rgba(255, 255, 255, 0.4) !important;
  }

  /* Ajustes generales móvil */
  .domain-search-form {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 10px;
  }

  .domain-search-form input[type="text"] {
    background: var(--mf-white) !important;
    border-radius: 8px;
    padding: 15px 20px !important;
  }

  .domain-search-form .btn {
    width: 100%;
  }

  .mf-footer-grid {
    gap: 30px;
  }
}

/////////////////////////////////////////////////////////////////myproduct

.package-features ul{
  list-style:none;
  padding:0;
  margin:20px 0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.package-features li{
  background:#F8FAFC;
  border:1px solid #E2E8F0;
  border-radius:16px;
  padding:16px;
  font-weight:600;
  color:#0F172A;
  box-shadow:0 8px 20px rgba(15,23,42,.05);
  transition:.2s ease;
}

.package-features li:hover{
  transform:translateY(-2px);
  border-color:#FF0091;
  box-shadow:0 12px 28px rgba(255,0,145,.12);
}