/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Segoe UI', sans-serif;
}

body{
    background:#f4f6f9;
    color:#333;
}

/* =========================
   HERO / BANNER (RESPONSIVE)
========================= */
.hero{
    position: relative;
    /* altura adaptable: mínimo 220px, ideal 38% de alto de pantalla, máximo 420px */
    min-height: 220px;
    height: clamp(220px, 38vh, 420px);

    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:white;
    overflow:hidden;

    padding: 24px 16px;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;

    background-image: url("img/header.jpg");
    background-size: cover;
    /* ajusta el encuadre (sube o baja el foco) */
    background-position: center 30%;
    background-repeat: no-repeat;

    filter: brightness(0.6);
    z-index:0;

    animation: zoomHero 18s ease-in-out infinite alternate;
}

.hero::after{
    content:"";
    position:absolute;
    inset:0;
    /* overlay sutil para legibilidad */
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.45));
    z-index:1;
}

.hero-content{
    position: relative;
    z-index:2;
    max-width: 900px;
    width: 100%;
}

.hero-content h1{
    font-size: clamp(26px, 4.2vw, 46px);
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.hero-content p{
    font-size: clamp(14px, 1.8vw, 18px);
    margin-top: 10px;
    opacity: 0.95;
    text-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Animación suave */
@keyframes zoomHero{
    from{ transform: scale(1); }
    to{ transform: scale(1.06); }
}

/* =========================
   CONTENEDOR
========================= */

.container{
    max-width:500px;
    margin:-70px auto 60px;
    padding:20px;
}

/* =========================
   CARD
========================= */

.card{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 25px 60px rgba(0,0,0,0.18);
    transition:0.3s;
}

.card:hover{
    transform: translateY(-5px);
}

.card h2{
    text-align:center;
    margin-bottom:25px;
    font-size:24px;
}

/* =========================
   INPUTS
========================= */

input{
    width:100%;
    padding:14px;
    margin-bottom:15px;
    border-radius:10px;
    border:1px solid #ddd;
    font-size:16px;
    transition:0.3s;
}

input:focus{
    border-color:#d62828;
    box-shadow:0 0 8px rgba(214,40,40,0.3);
    outline:none;
}

/* =========================
   RESUMEN DINÁMICO
========================= */

.resumen{
    background:#fff3cd;
    padding:15px;
    border-radius:12px;
    text-align:center;
    font-weight:bold;
    margin-bottom:15px;
    display:none;
    font-size:16px;
}

/* =========================
   BOTÓN PRINCIPAL
========================= */

.btn-principal{
    width:100%;
    padding:16px;
    background:linear-gradient(45deg,#d62828,#f77f00);
    border:none;
    border-radius:12px;
    color:white;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.btn-principal:hover{
    transform:scale(1.05);
    box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

/* =========================
   INFO EXTRA
========================= */

.info{
    margin-top:25px;
    font-size:14px;
    text-align:center;
    line-height:1.6;
    color:#555;
}

.info strong{
    color:#000;
}

/* =========================
   FOOTER
========================= */

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:20px;
    font-size:14px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .hero{
        height:60vh;
    }

    .hero-content h1{
        font-size:32px;
    }

    .hero-content p{
        font-size:16px;
    }

    .card{
        padding:25px;
    }

}

/* =========================
   HERO: Ajuste móvil (banner responsive)
========================= */
@media (max-width: 600px){
  .hero{
    height: clamp(180px, 28vh, 260px);
  }

  .hero::before{
    /* Ajusta el foco del banner en celular */
    background-position: center 20%;  /* prueba 10%, 15%, 25% según tu imagen */
  }

  .hero-content{
    padding: 0 12px;
  }
}

/* =========================
   LOGIN (estética + responsive)
   Pegar al final del style.css
========================= */

/* Fondo elegante para páginas de auth */
body.login-page{
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(247,127,0,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(214,40,40,.18), transparent 60%),
    #0b0f1a;
  color: #e5e7eb;
}

/* Contenedor centrado */
.login-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 14px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

/* Panel visual (opcional) */
.login-hero{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 25px 70px rgba(0,0,0,.45);
  background: linear-gradient(135deg, rgba(214,40,40,.18), rgba(247,127,0,.18)),
              url("img/header.jpg") center/cover no-repeat;
  position: relative;
  min-height: 520px;
}

.login-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.70));
}

.login-hero-content{
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 26px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap: 10px;
}

.login-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  border-radius: 999px;
  width: fit-content;
  backdrop-filter: blur(6px);
  font-weight: 700;
  font-size: 14px;
}

.login-title{
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.05;
  font-weight: 800;
  text-shadow: 0 12px 30px rgba(0,0,0,.55);
}

.login-subtitle{
  color: rgba(255,255,255,.85);
  font-size: 15px;
  line-height: 1.5;
  max-width: 52ch;
  text-shadow: 0 10px 25px rgba(0,0,0,.50);
}

/* Card login */
.login-card{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%), #0f172a;
  box-shadow: 0 25px 70px rgba(0,0,0,.45);
  padding: 24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height: 520px;
}

.login-card h1, .login-card h2{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.login-muted{
  color: rgba(229,231,235,.70);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Inputs dentro del login (sin romper tu estilo global) */
.login-card input{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  color: #e5e7eb;
}

.login-card input:focus{
  border-color: rgba(247,127,0,.55);
  box-shadow: 0 0 0 4px rgba(247,127,0,.16);
}

/* Botón: reutiliza tu .btn-principal pero lo hace elegante aquí */
.login-card .btn-principal{
  margin-top: 6px;
}

/* Mensaje de error */
.login-alert{
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Link inferior */
.login-link{
  color: rgba(255,255,255,.90);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.40);
}
.login-link:hover{ opacity: .9; }

/* Responsive */
@media (max-width: 900px){
  .login-wrap{
    grid-template-columns: 1fr;
  }
  .login-hero{
    min-height: 320px;
  }
  .login-card{
    min-height: auto;
  }
}

@media (max-width: 420px){
  .login-card{ padding: 18px; }
  .login-hero-content{ padding: 18px; }
}