/* ==========================================================
   FIBEPRADO - ESTILOS PRINCIPALES (CSS LIMPIO + COMENTARIOS)
   ========================================================== */

/* =========================
   VARIABLES (COLORES / TAMAÑOS)
========================= */
:root{
  --blue:#003BBB;
  --cyan:#002486;
  --bg:#0B0F1A;
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --line:rgba(255,255,255,.10);
  --card:rgba(255,255,255,.04);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1180px;
}

/* =========================
   RESET / BASE
========================= */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(63,95,249,.35), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(0,255,255,.18), transparent 60%),
    linear-gradient(180deg, #070A12 0%, #0B0F1A 55%, #070A12 100%);
  color:var(--text);
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 18px; }

/* =========================
   BOTONES (GENERAL)
========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:900; letter-spacing:.2px;
  transition:.2s transform,.2s background,.2s border-color,.2s box-shadow;
  user-select:none; cursor:pointer;
}
.btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.18);
}
.btn:active{ transform:translateY(0px); }

.btn-primary{
  border:none;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color:#ffffff;
  box-shadow: 0 16px 40px rgba(63,95,249,.25);
}

/* =========================
   SECCIONES / TITULOS
========================= */
.section{ padding:44px 0; }

.section-title{
  display:flex; align-items:end; justify-content:space-between; gap:14px;
  margin-bottom:14px;
}
.section-title h2{
  margin:0;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing:-.4px;
}
.section-title p{
  margin:0;
  color:var(--muted);
  max-width:60ch;
  line-height:1.6;
  font-weight:900;
  font-size:14px;
}

/* =========================
   SECCIÓN: TARJETAS (SERVICIOS)
========================= */
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }

.card{
  border-radius: var(--radius);
  background: var(--card);
  border:1px solid rgba(255,255,255,.08);
  padding:16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.20);
  overflow:hidden;
}
.card h4{ margin:0 0 6px; }
.card p{ margin:0; color:rgba(234,240,255,.70); line-height:1.55; font-weight:800; }

/* =========================
   HEADER / MENÚ
========================= */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,26,.55);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:1000;
  letter-spacing:.6px;
}

/* Logo decorativo (si lo usaras como span) */
.logo{
  width:36px;
  height:36px;
  border-radius:12px;
  background:
    radial-gradient(14px 14px at 30% 35%, rgba(255,255,255,.9), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(63,95,249,.22);
}

/* Logo real (imagen) */
.logo-img{
  height: 48px;
  width:auto;
}
.site-footer .logo-img{
  height:56px;
  width:auto;
  opacity:.95;
}

.links{ display:flex; align-items:center; gap:16px; }
.links a{
  color:rgba(234,240,255,.85);
  font-weight:900;
  font-size:14px;
  padding:10px 10px;
  border-radius:10px;
  transition:.2s background;
}
.links a:hover{ background:rgba(255,255,255,.06); }

.nav-cta{ display:flex; gap:10px; align-items:center; }
.menu-btn{ display:none; }

.mobile{ display:none; padding:10px 0 16px; }
.mobile a{
  display:block;
  padding:12px 10px;
  border-radius:12px;
  margin-top:6px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  font-weight:1000;
}

/* =========================
   SECCIÓN: HERO (PORTADA)
========================= */
.hero{ padding:48px 0 20px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:stretch;
}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background: rgba(63,95,249,.14);
  border:1px solid rgba(63,95,249,.28);
  color:#DDE6FF;
  font-weight:1000;
  font-size:13px;
  margin-bottom:14px;
}
.dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--cyan);
  box-shadow:0 0 0 6px rgba(0,255,255,.12);
}

.hero h1{
  margin:0;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height:1.02;
  letter-spacing:-.8px;
}
.grad{
  background: linear-gradient(90deg, #EAF0FF, #CDE3FF, var(--cyan));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero p{
  margin:14px 0 22px;
  color:rgba(234,240,255,.78);
  font-size:16px;
  line-height:1.6;
  max-width:52ch;
  font-weight:800;
}
.hero-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:18px;
}
.stat{
  padding:14px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.stat b{ display:block; font-size:18px; }
.stat small{ color:rgba(234,240,255,.70); font-weight:1000; }

/* Imagen principal del hero */
.hero-media{
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  min-height:360px;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:360px;
}

.overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,15,26,.08), rgba(11,15,26,.88));
  pointer-events:none;
}

.badge{
  position:absolute; left:14px; right:14px; bottom:14px;
  padding:12px 12px; border-radius:16px;
  background: rgba(10,14,26,.65);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.badge b{ font-size:14px; }
.badge span{ color:rgba(234,240,255,.72); font-weight:900; font-size:13px; }

.fallback{
  position:absolute; inset:0;
  display:grid; place-items:center;
  padding:18px;
  color:rgba(234,240,255,.85);
  font-weight:1000;
  text-align:center;
  background:
    radial-gradient(500px 260px at 50% 10%, rgba(0,255,255,.10), transparent 60%),
    radial-gradient(600px 260px at 30% 80%, rgba(63,95,249,.18), transparent 60%),
    #0b0f1a;
}
.fallback small{
  display:block;
  margin-top:10px;
  color:rgba(234,240,255,.65);
  font-weight:900;
}

/* =========================
   SECCIÓN: PLANES (4 columnas)
========================= */
.plans{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.plan{
  padding:16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  position:relative;
}
.plan.featured{
  border-color: #FF6D00;
  background: linear-gradient(180deg, #ff6f0038, rgba(63,95,249,.08));
}
.tag{
  position:absolute; top:14px; right:14px;
  font-size:12px; font-weight:1000;
  padding:8px 10px; border-radius:999px;
  background: #FF6D00;
  border:1px solid #FF6D00;
  color:#DFFFFF;
}
.price{ display:flex; align-items:baseline; gap:8px; margin:10px 0 12px; }
.price b{ font-size:30px; }
.price small{ color:rgba(234,240,255,.70); font-weight:1000; }

.list{
  display:grid; gap:8px;
  margin:12px 0 16px;
  padding:0;
  list-style:none;
}
.list li{
  display:flex; gap:10px; align-items:flex-start;
  color:rgba(234,240,255,.74);
  font-weight:900;
}
.check{
  width:20px;height:20px;border-radius:6px;
  background: rgb(255, 109, 0);
  border:1px solid rgb(255, 109, 0);
  margin-top:2px;
  flex:0 0 auto;
  position:relative;
}
.check:after{
  content:"";
  position:absolute;
  left:5px; top:2px;
  width:6px; height:10px;
  border-right:3px solid rgb(255, 255, 255);
  border-bottom:3px solid rgb(255, 255, 255);
  transform: rotate(40deg);
}

/* Imagen PNG dentro del plan (si usas class="plan-png") */
.plan-png{
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  padding: 10px;
}

/* =========================
   SECCIÓN: COBERTURA (CTA)
========================= */
.cta{
  border-radius: 24px;
  padding:18px;
  background:
    radial-gradient(600px 240px at 10% 30%, rgba(63,95,249,.35), transparent 65%),
    radial-gradient(500px 240px at 90% 0%, rgba(0,255,255,.22), transparent 60%),
    rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.cta p{ margin:0; color:rgba(234,240,255,.72); font-weight:900; line-height:1.6; }
.cta h3{ margin:0 0 6px; }
.cta-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* =========================
   SECCIÓN: FORMAS DE PAGO
========================= */
.pay{ background:#ffffff; color:#0a0f1a; }

.pay-topbar{
  background: linear-gradient(90deg, var(--blue), #2d7cff, var(--cyan));
  padding:18px 0;
}
.pay-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:#061019;
  font-weight:1000;
}
.pay-topbar-left{ display:flex; flex-direction:column; gap:6px; }
.pay-topbar h2{ margin:0; color:#ffffff; }
.pay-topbar p{ margin:0; color:rgb(255, 255, 255); font-weight:900; }

.pay-content{ padding:26px 0 10px; }

/* Titulo del switch */
.pay-switch{ margin-top: 18px; margin-bottom: 18px; }
.pay-title{
  text-align: center;
  font-weight: 1000;
  font-size: 16px;
  margin-bottom: 14px;
  color:#0a0f1a;
}

/* Botones (logos) */
.pay-tabs{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}
.pay-tab{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  width:64px;
  height:64px;
  border-radius:16px;
  border:1px solid rgba(10,15,26,.12);
  background:#fff;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pay-tab img{
  width:36px;
  height:36px;
  object-fit:contain;
  padding:0;
  border:none;
  background:none;
}
.pay-tab:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.pay-tab.is-active{
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63,95,249,.20);
}

/* Mostrar/ocultar panel */
.pay-panel[hidden]{ display:none !important; }
.pay-panel{ padding-top: 10px; }

/* Paso a paso (celulares) */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
  align-items:start;
  padding:10px 0 20px;
}
.step{ text-align:center; }
.step-head{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(10,15,26,.05);
  border: 1px solid rgba(10,15,26,.08);
  font-weight:1000;
  color:#1b2538;
}
.step-head .n{
  width:28px;height:28px;border-radius:999px;
  display:grid;place-items:center;
  background: var(--blue);
  color:white;
  box-shadow: 0 8px 20px rgba(63,95,249,.25);
}
.step-head .hl{ color: var(--blue); }

.phone{
  margin:18px auto 0;
  width: 280px;
  height: 560px;
  border-radius: 34px;
  border: 10px solid #101319;
  background: #0d1222;
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
  position:relative;
  overflow:hidden;
}
.phone:before{
  content:"";
  position:absolute;
  top:0; left:50%;
  transform:translateX(-50%);
  width: 120px; height: 22px;
  background:#101319;
  border-radius: 0 0 14px 14px;
  z-index:3;
}
.phone img{ width:100%; height:100%; object-fit:cover; }

/* =========================
   SECCIÓN: CONTACTO
========================= */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.panel{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  padding:18px;
}

.form{ display:grid; gap:10px; margin-top:8px; }
.field{ display:grid; gap:6px; }

label{ font-size:13px; color:rgba(234,240,255,.74); font-weight:1000; }

input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  outline:none;
  background: rgba(10,14,26,.55);
  color:var(--text);
  font-weight:900;
}
textarea{ min-height:110px; resize:vertical; }
input:focus, select:focus, textarea:focus{
  border-color: rgba(0,255,255,.45);
  box-shadow: 0 0 0 4px rgba(0,255,255,.10);
}
.mini{ font-size:13px; color:rgba(234,240,255,.62); font-weight:900; }

/* =========================
   FOOTER
========================= */
.site-footer{
  padding:28px 0 40px;
  border-top:1px solid rgba(255,255,255,.06);
  color:rgba(234,240,255,.70);
}
.foot{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  font-weight:900;
}
.foot-col{ display:grid; gap:8px; }

/* =========================
   BOTONES FLOTANTES (REDES SOCIALES)
   - Para subirlos/bajarlos cambia "top"
========================= */
.social-float{
  position: fixed;
  right: 16px;
  top: 55%;                 /* 👈 SUBE/BAJA AQUÍ (ej: 40% sube más) */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.sf-btn{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  overflow:hidden;
}

/* ✅ ICONOS GRANDES (como antes) */
.sf-btn img{
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.sf-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
  filter: brightness(1.05);
}

.sf-wa{ background: linear-gradient(180deg, #25D366, #128C7E); }
.sf-fb{ background: linear-gradient(180deg, #1877F2, #0F5BD6); }
.sf-ig{ background: linear-gradient(180deg, #F58529, #DD2A7B); }
.sf-tt{ background: linear-gradient(180deg, #00F2EA, #FF0050); }
.sf-yt{ background: linear-gradient(180deg, #FF0000, #C80000); }

/* =========================
   RESPONSIVE (TABLET / MÓVIL)
========================= */
@media (max-width: 980px){

  /* HERO: 1 columna */
  .hero-grid{ grid-template-columns: 1fr; }

  /* SERVICIOS: 1 columna */
  .grid3{ grid-template-columns: 1fr; }

  /* CONTACTO: 1 columna */
  .contact{ grid-template-columns: 1fr; }

  /* MENÚ: ocultar links + mostrar botón */
  .links{ display:none; }
  .menu-btn{ display:inline-flex; }

  /* FORMAS DE PAGO: 1 columna */
  .steps{ grid-template-columns: 1fr; }
  .phone{ width:260px; height:520px; }
  .pay-topbar-inner{ flex-direction:column; align-items:flex-start; }

  /* Logo más chico */
  .logo-img{ height:30px; }

  /* PLANES: 2 visibles */
  .plans{ grid-template-columns: repeat(2, 1fr); }  /* ✅ Carrusel: 2 visibles (equivalente) */
  
  /* Si tuvieras carrusel activo, esto sería "Carrusel: 2 visibles" */
  /* Carrusel: 2 visibles */
  .plans-carousel .pc-slide{
    flex: 0 0 calc((100% - 12px) / 2);
    min-width: calc((100% - 12px) / 2);
  }
}

@media (max-width: 560px){

  /* PLANES: 1 visible */
  .plans{ grid-template-columns: 1fr; } /* ✅ Carrusel: 1 visible (equivalente) */

  /* Carrusel: 1 visible */
  .plans-carousel .pc-slide{
    flex: 0 0 100%;
    min-width: 100%;
  }
  .pc-nav{ display:none; }
}

@media (max-width: 480px){

  /* Botones flotantes un poco más pequeños */
  .sf-btn{ width: 42px; height: 42px; }
  .sf-btn img{ width: 30px; height: 30px; } /* ✅ icono grande en móvil */

  /* Botones de pago (logos) */
  .pay-tabs{ gap:10px; }
  .pay-tab{ width:56px; height:56px; }
  .pay-tab img{ width:30px; height:30px; }
}

/* =========================
   (OPCIONAL) CARRUSEL DE PLANES
   - Solo si usas estructura .plans-carousel en tu HTML
========================= */
.plans-carousel{
  position: relative;
  margin-top: 8px;
}
.pc-viewport{
  overflow: hidden;
  border-radius: var(--radius);
}
.pc-track{
  display:flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  padding: 4px;
  transition: transform .35s ease;
  will-change: transform;
}

/* Carrusel: 3 visibles (desktop) */
.pc-slide{
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: calc((100% - 24px) / 3);
}

/* Flechas del carrusel */
.pc-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,15,26,.65);
  color: var(--text);
  font-weight: 1000;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(8px);
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
  box-shadow: 0 14px 35px rgba(0,0,0,.35);
}
.pc-nav:hover{ transform: translateY(-50%) scale(1.04); background: rgba(11,15,26,.78); }
.pc-nav:active{ transform: translateY(-50%) scale(.98); }
.pc-prev{ left: -8px; }
.pc-next{ right: -8px; }
.pc-nav[disabled]{ opacity: .35; cursor: not-allowed; }

/* Dots del carrusel */
.pc-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top: 12px;
}
.pc-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.pc-dot:hover{ transform: scale(1.15); }
.pc-dot.is-active{
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-color: rgba(0,255,255,.35);
}

/* =========================
   SECCIÓN: VIDEOS (HORIZONTAL)
========================= */
.videos-row{
  display:grid;
  grid-template-columns: repeat(4, 1fr); /* igual que planes */
  gap:12px;
}

.video-card{
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  padding:12px;
  box-shadow: var(--shadow);
}

/* Video vertical 9:16 */
.video-card video{
  width:100%;
  aspect-ratio: 9 / 16;   /* CLAVE para vertical */
  object-fit: cover;
  border-radius:14px;
  background:#000;
}

/* Responsive = igual que PLANES */
@media (max-width: 980px){
  .videos-row{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px){
  .videos-row{ grid-template-columns: 1fr; }
}


/* =========================
   BANNER PROMOCIONAL (AUTO JS)
========================= */
.promo-banner{
  width:100%;
  overflow:hidden;
}

.promo-slider{
  display:flex;
  transform: translateX(0);
  transition: transform .6s ease;
}

.promo-slider img{
  width:100%;
  flex: 0 0 100%;
  object-fit: cover;
  display:block;
}


/* =========================
   EFECTO HOVER EN PLANES
========================= */
.plan{
  transition: transform .25s ease, box-shadow .25s ease;
}

.plan:hover{
  transform: scale(1.04); /* se agranda suavemente */
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
  z-index: 2; /* para que no se tape entre planes */
}


