/* === SHELL: NAV | CONTENIDO | FOOTER dentro del viewport === */
html, body { height: 100%; }

body.app-shell{
  display: grid;
  grid-template-rows: auto 1fr auto;   /* NAV | MAIN | FOOTER */
  min-height: 100svh;                   /* robusto en mobile */
  overflow: hidden;                     /* no scrollea el body */
}

main{
  min-height: 0;                        /* permite que el 1fr encoja */
  overflow: hidden;                     /* sin scroll acá */
  padding-top: 3% !important;
}

/* Navbar sticky no interfiere con el grid */
.custom-navbar { position: sticky; top: 0; }

/* ===== Utilidades y colores existentes ===== */
.bg-white-app { background-color:#FFF; color:#02558b; }

.bg-gradient-app{
  background: linear-gradient(to bottom, #02558b, #026792);
}

.fit-container { max-width: 820px; }

.remove-margin-bottom { margin-bottom: 0 !important; }
.remove-border-bottom { border-bottom: none !important; }
.remove-border-top    { border-top: none !important; }

/* ===== HERO que ocupa TODO el alto del main ===== */
.hero-simple-splash{
  box-sizing: border-box;               /* padding incluido en el 100% */
  min-height: 100%;                     /* llena la pista del main */
  padding: clamp(12px, 3vh, 32px) 20px; /* padding vertical responsivo */
  display: grid;
  place-items: stretch;
  text-align: center;
}

/* 3 filas: título | zona flexible (imagen) | acciones (botón) */
.hero-simple-splash__inner{
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0,auto) minmax(0,1fr) minmax(0,auto);
  align-items: center;
  justify-items: center;
  gap: clamp(8px, 2vh, 20px);
}

/* Título: escala con la pantalla (se ajusta, no empuja) */
.hero-simple-splash__title{
  margin: 0;
  line-height: 1.05;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2rem, 7svmin, 30rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(255,255,255,0.14);
}

.hero-simple-splash__title__invert{
  margin: 0;
  line-height: 1.05;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2.5rem, 7svmin, 30rem);
  color: #02558b;
  text-shadow: 0 2px 6px rgba(255,255,255,0.14);
}


/* Imagen: limitada por el espacio flexible central */
.hero-simple-splash__img{
  max-height: 100%;                     /* nunca se pasa del 1fr */
  max-width: min(80vw, 350px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
  transform: scale(var(--splash-scale, 1));
  transform-origin: center;
}

/* Acciones: ancladas al final del centro si sobra espacio */
.hero-actions{
  align-self: end;
  /*gap: clamp(8px, 2vmin, 16px);     */    /* separaciones que también escalan */
}

/* ===== Botón (ahora también AJUSTA por alto) ===== */
.custom-splash-btn{
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;

  /* Tamaño de fuente y padding que ESCALAN con el viewport */
  font-size: clamp(0.95rem, 1.8vmin, 1.15rem);
  padding: clamp(.8rem, 2.4vmin, .1rem) clamp(1rem, 3.2vmin, 1.6rem);

  /* Bordes y radios también responden */
  border-radius: clamp(14px, 2.2vmin, 24px);
  border: 1px solid #026792;

  /* Ancho responsivo (sin bloquear con min-width fija) */
  width: clamp(120px, 30vw, 320px) !important;

  /* Colores y sombras originales */
  color: #026792;
  background: #fff;
  box-shadow: 0 0 18px rgba(0,174,217,.35);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .03s ease;
}

/* Mantengo tus estados */
.custom-splash-btn:hover{
  color:#fff; background:#3193bd; box-shadow:0 0 22px rgba(0,174,217,.45);
}
.custom-splash-btn:active{
  color:#fff; background:#015374; border-color:#015374;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.18), 0 0 16px rgba(0,174,217,.35);
  transform: translateY(1px);
}
.custom-splash-btn:focus,
.custom-splash-btn:focus-visible{ outline: none !important; }

/* En pantallas muy chicas, que el botón pueda ocupar casi todo el ancho */
@media (max-width: 576px){
  .custom-splash-btn{ width: 90%; }

  .hero-simple-splash {
    padding: 80px 20px !important;         /* ahora entra dentro del alto */
}
}
