/* =========================================================
   LOGOS HUB INFORMÁTICO
   CSS BASE – DESKTOP FIRST + BOOTSTRAP
   Autor: Johanna Alemán
   Archivo: public/css/app.css
========================================================= */


/* =========================================================
   VARIABLES DE MARCA
   Fuente única de verdad (hub-*)
========================================================= */
:root {
  /* Marca */
  --hub-blue: #220E7A;
  --hub-turq: #13E8A5;
  --hub-gold: #F5A608;

  /* Fondos */
  --hub-bg-main: #020617;
  --hub-bg-soft: #0f172a;
  --hub-bg-card: rgba(255,255,255,0.04);

  /* Texto */
  --hub-text-main: #e5e7eb;
  --hub-text-muted: #94a3b8;

  /* UI */
  --hub-radius-lg: 18px;
  --hub-radius-md: 14px;
  --hub-border-soft: rgba(255,255,255,0.12);

  /* Glass / Glow */
  --hub-turq-soft: rgba(19,232,165,0.08);
  --hub-turq-glow: rgba(19,232,165,0.18);

  /* Motion */
  --hub-ease: cubic-bezier(.4,0,.2,1);
}


/* =========================================================
   VARIABLES ALIAS (MULTIPROYECTO)
========================================================= */
:root {
  --bg-main: var(--hub-bg-main);
  --bg-soft: var(--hub-bg-soft);
  --bg-card: var(--hub-bg-card);

  --text-main: var(--hub-text-main);
  --text-muted: var(--hub-text-muted);

  --accent: var(--hub-turq);

  --hub-header-h: 78px;
}


/* =========================================================
   RESET + BASE (STICKY SAFE)
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main#contenido{
  padding-inline: clamp(1rem, 4vw, 3rem) !important;
}

#contenido > .full-bleed{
  margin-inline: calc(clamp(1rem, 4vw, 3rem) * -1);
}

html {
  font-size: 100%;          /* Desktop real */
  overflow-x: hidden;       /* 🔑 el scroll vive aquí */
}

body {
  font-family: 'Open Sans', sans-serif;

  background:
    radial-gradient(
      720px at 50% 14%,
      rgba(19,232,165,0.045),
      transparent 42%
    ),
    var(--bg-main);

  background-color: var(--bg-main) !important;
  color: var(--text-main);

  /* ❌ NO overflow aquí */
}

/* Media */
img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   ACCESIBILIDAD / SEO
========================================================= */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================
   TITULOS
========================= */
.title-main {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  margin: 0 0 3.5rem;
  position: relative;
}

.title-main::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0.75rem auto 0;
  background: #13E8A5;
  border-radius: 2px;
}

/* =========================================================
   INTRO / SPLASH
========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-main);

  display: flex;
  flex-direction: column;        /* 🔑 CLAVE */
  align-items: center;
  justify-content: center;

  text-align: center;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px at 50% 35%,
    rgba(19,232,165,0.08),
    transparent 45%
  );
}

.intro-logo {
  width: 300px;
  max-width: 80vw;
  margin-bottom: 1.4rem;  
  opacity: 0;
  transform: scale(1.08);
  animation: introEnter .85s ease-out forwards;
}

.intro-tag {
  margin-top: 1.4rem;
  font-size: 1rem;
  text-transform: uppercase;
  opacity: .85;
  animation: introFade .9s ease-out .25s forwards;
}

@keyframes introEnter { to { opacity: 1; transform: scale(1); } }
@keyframes introFade  { to { opacity: .85; } }

.intro.hide {
  animation: introOut .55s ease forwards;
}

@keyframes introOut {
  to { opacity: 0; transform: translateY(-6px); }
}


/* =========================================================
   PAGE TRANSITION
========================================================= */
.page {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

.page.show {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   HERO (DESKTOP FIRST)
========================================================= */
.hero {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

.hero-logo {
  width: 260px;
  margin-bottom: 2rem;
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-eyebrow {
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 1.4rem;
}

.hero-eyebrow::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  margin: 1rem auto 0;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.hero-description {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  opacity: .95;
}

.hero-divider {
  width: 160px;
  height: 1px;
  margin: 3.5rem auto;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.18), transparent);
}


/* =========================================================
   CARDS
========================================================= */
.section-cards {
  padding-top: 1.2rem;
  padding-bottom: 2rem; /* menos aire abajo */
}

.info-card {
  height: 100%;
  padding: 2.4rem;
  border-radius: var(--hub-radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--hub-border-soft);
  backdrop-filter: blur(6px);
  transition: all .4s var(--hub-ease);
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 30px 70px var(--hub-turq-glow);
}

.info-card.featured {
  background: linear-gradient(145deg, rgba(19,232,165,0.14), rgba(2,6,23,0.9));
}



/* =========================================================
   CTA – BLOQUE REAL (DESKTOP FIRST)
========================================================= */
.cta-section {
  text-align: center;
  padding: 2.2rem 1.5rem 2.6rem; /* antes 3.8rem */
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

/* CTA principal – vuelve a ser BOTÓN */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 220px;
  padding: 1rem 2.8rem;

  font-size: 1rem;
  font-weight: 600;

  border-radius: 999px;
  border: 1px solid var(--accent);

  background: linear-gradient(
    180deg,
    rgba(19,232,165,0.18),
    rgba(19,232,165,0.06)
  );

  backdrop-filter: blur(6px);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    0 18px 50px rgba(19,232,165,0.28);

  transition: all .25s ease;
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.25),
    0 26px 70px rgba(19,232,165,0.35);
}

/* CTA secundario – link elegante */
.cta-secondary {
  font-size: .85rem;
  color: var(--text-muted);
}

.cta-secondary:hover {
  color: var(--text-main);
}

/* Mantra final */
.mantra {
  margin-top: 1rem;        /* se separa del CTA */
  padding-bottom: .6rem;     /* no se pega al borde */
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: .35;
}

.mantra::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 1.4rem;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );
}



/* =========================================================
   RESPONSIVE – SOLO AJUSTES (BOOTSTRAP)
========================================================= */
@media (max-width: 992px) {
  .hero { min-height: 64vh; }
  .hero-logo { width: 220px; }
}

@media (max-width: 576px) {
  .hero { min-height: 56vh; padding-top: 3rem; }
  .hero-logo { width: 180px; }
  .hero-description { font-size: 1rem; }
  .info-card { padding: 1.6rem; }
}



/* =========================================================
   HEADER – LOGOS HUB
========================================================= */


.hub-header{
  position: fixed;              /* 🔥 en vez de sticky */
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;               /* arriba de TODO */
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Logo */
.hub-header-logo {
  max-height: 42px;
  width: auto;
}

/* Links */
.hub-header .nav-link {
  color: #e5e7eb;
  font-weight: 500;
  margin: 0 0.6rem;
  position: relative;
  transition: color 0.2s ease;
}

.hub-header .nav-link:hover {
  color: #13E8A5;
}

/* Estado activo */
.hub-header .nav-link.active,
.hub-header .nav-link[aria-current="page"] {
  color: #13E8A5;
}

.hub-header .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #13E8A5;
  border-radius: 2px;
}

/* OJO: tu HTML NO tiene .hub-navbar, por eso ese padding no aplicaba */
.hub-header .navbar{
  min-height: var(--hub-header-h);
  padding: .9rem 0;
}

/* Espaciador para que el contenido no quede debajo del header */
.hub-header-spacer{
  height: var(--hub-header-h);
}

/* Mobile tweak */
@media (max-width: 576px){
  :root{ --hub-header-h: 72px; }
}

/* CTA */
.btn-hub-primary {
  background: linear-gradient(135deg, #13E8A5, #0fd1a0);
  color: #020617;
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 18px rgba(19,232,165,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hub-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(19,232,165,0.35);
  color: #020617;
}

/* Mobile */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Menú mobile */
@media (max-width: 991px) {
  .hub-header .navbar-collapse {
    background: rgba(2, 6, 23, 0.95);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.8rem;
  }

  .hub-header .nav-link {
    margin: 0.6rem 0;
  }

  .btn-hub-primary {
    width: 100%;
    text-align: center;
    margin-top: 0.6rem;
  }
}




/* ===============================
   BOTÓN WHATSAPP FLOTANTE
================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  z-index: 999;
  transition: transform .2s ease, box-shadow .2s ease;
}

.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,.3);
  color: #fff;
}


.btn-wa-info{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.6rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(19,232,165,.45);
  background: transparent;
  color: #13E8A5;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
}

.btn-wa-info i{
  font-size: 1.1rem;
}

.btn-wa-info:hover{
  background: rgba(19,232,165,.12);
  transform: translateY(-1px);
  color: #13E8A5;
}



.hub-footer{
  background: radial-gradient(1200px 500px at 10% -20%, rgba(19,232,165,.08), transparent 40%),
              linear-gradient(180deg, #020617 0%, #010314 100%);
  color: #E5E7EB;
  padding: 4.5rem 0 2rem;
}

.hub-footer-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: auto;
}

/* BRAND */
.hub-footer-logo{
  height: 46px;
}

.hub-footer-claim{
  margin-top: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hub-footer-claim span{
  display: block;
  margin-top: .4rem;
  font-size: .95rem;
  color: #94A3B8;
}

.hub-footer-social{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.6rem;
  color: #13E8A5;
  text-decoration: none;
  font-weight: 600;
}

/* NAV */
.hub-footer-nav h6,
.hub-footer-contact h6{
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #CBD5F5;
  margin-bottom: 1.2rem;
}

.hub-footer-nav a{
  display: block;
  margin-bottom: .7rem;
  color: #E5E7EB;
  text-decoration: none;
  font-weight: 500;
  opacity: .85;
}

.hub-footer-nav a:hover{
  opacity: 1;
  color: #13E8A5;
}

/* CONTACT */
.hub-footer-location{
  color: #94A3B8;
  margin-bottom: .6rem;
}

.hub-footer-mail{
  display: block;
  color: #E5E7EB;
  text-decoration: none;
  margin-bottom: 1.2rem;
}

.hub-footer-whatsapp{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.1rem;
  border: 1px solid rgba(19,232,165,.35);
  border-radius: 999px;
  color: #13E8A5;
  text-decoration: none;
  font-weight: 600;
  transition: background .25s ease, transform .2s ease;
}

.hub-footer-whatsapp:hover{
  background: rgba(19,232,165,.12);
  transform: translateY(-1px);
}

/* BOTTOM */
.hub-footer-bottom{
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148,163,184,.15);
  text-align: center;
  font-size: .85rem;
  color: #94A3B8;
}




@media (max-width: 768px){

  :root{
    --hub-header-h: 68px;
  }

  .hub-header-logo{
    max-height: 34px;
  }

  .hub-header .navbar{
    padding: .6rem 0;
  }
}

@media (max-width: 991px){

  .hub-header .navbar-collapse{
    position: relative;
    background: rgba(2,6,23,.97);
    padding: 1.2rem 1.2rem 1.4rem;
    border-radius: 16px;
    margin-top: .8rem;

    box-shadow:
      0 20px 60px rgba(0,0,0,.55),
      inset 0 0 0 1px rgba(255,255,255,.06);
  }

  .hub-header .navbar-nav{
    align-items: stretch;
  }

  .hub-header .nav-link{
    padding: .8rem .6rem;
    margin: 0;
    font-size: 1.05rem;
  }

  .hub-header .nav-link::after{
    display: none;
  }
}


@media (max-width: 991px){

  .hub-header .nav-item:last-child{
    margin-top: 1rem;
  }

  .btn-hub-primary{
    width: 100%;
    padding: .75rem 1rem;
    font-size: 1rem;
  }
}

.navbar-toggler{
  padding: .25rem .4rem;
}

.navbar-toggler-icon{
  width: 1.4em;
  height: 1.4em;
}





@media (max-width: 992px){

  .hub-footer{
    padding: 3.5rem 0 2rem;
  }

  .hub-footer-grid{
    grid-template-columns: 1fr;
    gap: 2.8rem;
    text-align: left;
  }

  .hub-footer-logo{
    height: 40px;
  }
}

@media (max-width: 768px){

  /* Reordenamos SOLO el bloque brand */
  .hub-footer-brand{
    display: flex;
    flex-direction: column;
  }

  /* Claim arriba */
  .hub-footer-claim{
    order: 1;
  }

  /* Redes al final como cierre */
  .hub-footer-social{
    order: 4;
    margin-top: 2.4rem;
    padding-top: 1.6rem;

    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .95rem;
    opacity: .9;
  }

  .hub-footer-social i{
    font-size: 1.2rem;
  }
}

@media (max-width: 576px){

  .hub-footer-claim{
    font-size: 1rem;
    line-height: 1.7;
  }

  .hub-footer-claim span{
    font-size: .9rem;
  }

  .hub-footer-nav a{
    margin-bottom: .6rem;
  }

  .hub-footer-bottom{
    font-size: .8rem;
    margin-top: 2.5rem;
  }
}


/* ==================================================
   FIX ÚNICO – ESPACIO BLANCO AL FINAL (iOS / Mobile)
   NO altera layout existente
================================================== */

/* Evita que iOS agregue altura fantasma al documento */
@media (max-width: 768px) {

  html,
  body {
    height: auto;
    min-height: 100%;
  }

  body {
    overflow-y: auto;
  }

  /* Safari/WebKit calcula mal vh cuando hay fixed */
  .hero,
  [class*="hero"] {
    min-height: auto;
  }

}

/* Prevención específica WebKit */
@supports (-webkit-touch-callout: none) {
  html,
  body {
    overscroll-behavior-y: none;
  }
}