*{
    margin: 0;
}
.header{
    font-size: 30px;
    background-color: #0F2E4A;
    color: white;
    display: flex;
    align-items: center;
    padding: 5px 20px;
    flex-direction: row;
    text-align: center;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    top: 0;
    z-index: 1000;
}

.header img{
    width: 120px;
    height: 100px;
}

.linea{
    width: 2px;
    height: 50px;
    background: black;
}

.btn-login{
    margin-left: auto;
    text-decoration: none;
    background-color: #2E7C88;
    color: white;
    padding: 20px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-login-mobile {
    display: none;
}

.btn-login:hover{
    background-color: #24626c;
    transform: scale(1.1);
}

.contenedor{
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.hero{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.contenedor::before{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: -1;
    pointer-events: none;
}

.contenido{
    position: relative;
    z-index: 1;
    padding: 160px 60px 60px;
}

.contenido h1{
    font-family: 'Poppins', sans-serif;
    font-size: 78px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;

}

.contenido p{
    font-family: 'Poppins', sans-serif;
    font-size: 33px;
    margin-top: 13px;
    color: #e5e7eb;
    font-weight: 400;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
}


.titulo-saga{
    font-family: 'Poppins', sans-serif;
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 50px;
    color: #2E7C88;
    text-shadow: 1px 1px 8px rgba(53, 53, 53, 0.6);
}

.cards{
    display:flex;
    justify-content:flex-start;
    gap:25px;
    padding:40px 0;
    flex-wrap:wrap;
}

/* tarjeta */
.card{
    width:260px;
    height:200px;
    border-radius:20px;

    background: rgba(255,255,255,0.3); /* transparencia */
    backdrop-filter: blur(10px);

    border:1px solid rgba(255,255,255,0.2);

    text-align:center;
    padding:30px;

    color:white;

    transition: all 0.4s ease;
}

/* icono */
.icono{
    height: 50px;
    margin-top: 20px;
    transition: transform 0.4s;
    font-size: 40px;
    line-height: 1;
    color: var(--verde-acento, #3eb489);
}

/* titulo */
.card h3{
    margin-top: 40px;
    font-size:20px;
    margin-bottom:20px;
}

/* texto */
.card p{
    font-size: 20px;
    opacity:0.8;
}

/* animacion */
.card:hover{
    transform: translateY(-10px) scale(1.03);
    background: rgba(255,255,255,0.15);
    box-shadow:0 10px 25px rgba(0,0,0,0.3);
}

/* animacion icono */
.card:hover .icono{
    transform: scale(1.2);
}

.btn-demo{
    display: inline-block;
    max-width: 400px;
    width: 90%;
    height: 70px;
    text-decoration: none;
    background-color: #2E7C88;
    color: white;
    padding: 20px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    line-height: 30px;
    margin-top: 10px;
}

.btn-demo:hover{
    background-color: #24626c;
    transform: scale(1.1);
}

.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    justify-content:center;
    align-items:center;
    z-index:999;
}

.modal-content{
    background:#f4f6f8;
    padding:40px;
    border-radius:25px;
    width:380px;
    position:relative;
}

.cerrar{
    position:absolute;
    right:20px;
    top:15px;
    font-size:22px;
    cursor:pointer;
    color:#5f6b7a;
}

.formulario{
    text-align:center;
}

.logo{
    font-size:40px;
    background:#294a63;
    width:70px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    margin:auto;
    color:white;
}

.formulario h1{
    margin-top:15px;
    color:#2c3e50;
}

.formulario p{
    color:#6c7a89;
    margin-bottom:25px;
}

/* INPUTS */

form{
    text-align:left;
}

label{
    font-size:13px;
    font-weight:bold;
    color:#3b4a5a;
}

input{
    width:92%;
    padding:12px;
    border-radius:10px;
    border:2px solid #d5dde5;
    margin-top:5px;
    margin-bottom:15px;
}

input:focus{
    outline:none;
    border-color:#46b08a;
}

.input-pass{
    position:relative;
}

/* BOTON */

.btn-login2{
    width:100%;
    padding:14px;
    background:#2E7C88;
    border:none;
    border-radius:10px;
    color:white;
    font-weight:bold;
    letter-spacing:1px;
    cursor:pointer;
    transition:0.3s;
}

.btn-login2:hover{
    background-color: #24626c;
    transform: scale(1.1);
}

/* ESTADO INICIAL */

.animacion{
    opacity: 0;
    transform: translateY(40px);
    animation: aparecer 1s ease forwards;
}

/* DELAYS PARA EFECTO CASCADA */

.a1{
    animation-delay: 0.3s;
}

.a2{
    animation-delay: 0.8s;
}

.a3{
    animation-delay: 1.3s;
}

.a4{
    animation-delay: 1.8s;
}

.a5{
    animation-delay: 2.3s;
}

/* ANIMACION */

@keyframes aparecer{

    from{
        opacity: 0;
        transform: translateY(40px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}

/* ========== DOTS DEL CARRUSEL ========== */
.carrusel-dots {
    display: none;          /* solo visible en mobile via media query */
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.dot.activo {
    background: #3eb489;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carrusel-dots {
        display: flex;
    }
}

/* ════════════════════════════════════════════════════════════════════
   AGREGAR ESTE CSS A TU ARCHIVO: assets/css/home.css
   ════════════════════════════════════════════════════════════════════ */

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .contenido {
        padding: 140px 40px 40px;
    }

    .contenido h1 {
        font-size: 56px;
    }

    .contenido p {
        font-size: 26px;
    }

    .titulo-saga {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    /* ── Header: logo izquierda, título centrado ── */
    .header {
        justify-content: flex-start;
        position: fixed;
        width: 100%;
        top: 0;
        padding: 8px 16px;
        height: auto;
        min-height: 70px;
        gap: 10px;
    }

    .header img {
        width: 70px;
        height: 60px;
        position: static;
        flex-shrink: 0;
    }

    .header h2 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .linea {
        display: none;
    }

    /* Ocultar botón del header en móvil */
    .btn-login:not(.btn-login-mobile) {
        display: none;
    }

    /* Botón dentro del contenido */
    .btn-login-mobile {
        display: block;
        width: 80%;
        max-width: 360px;
        margin: 30px auto 0;
        text-align: center;
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 10px;
    }

    .contenido {
        padding: 110px 20px 60px;
    }

    .contenido h1 {
        font-size: 48px;
    }

    .contenido p {
        font-size: 22px;
    }

    .titulo-saga {
        font-size: 32px;
    }

    /* ── Carrusel táctil ── */
    .cards {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 30px 16px 28px 0;
        scrollbar-width: none;
        margin-top: 30px;
    }

    .cards::-webkit-scrollbar {
        display: none;
    }

    .card {
        flex: 0 0 calc(100vw - 56px);
        box-sizing: border-box;
        height: auto;
        padding: 28px 20px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .card h3 {
        font-size: 24px;
    }

    .card p {
        font-size: 20px;
    }

    .icono {
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    .header img {
        width: 55px;
        height: 50px;
    }

    .header {
        font-size: 22px;
    }

    .contenido {
        padding: 100px 16px 100px;
    }

    .contenido h1 {
        font-size: 36px;
    }

    .contenido p {
        font-size: 18px;
    }

    .titulo-saga {
        font-size: 26px;
    }

    .card {
        flex: 0 0 calc(100vw - 48px);
        box-sizing: border-box;
    }

    .modal {
        align-items: flex-start;
        padding-top: 150px;
        padding-bottom: 20px;
        overflow-y: auto;
    }

    .modal-content {
        width: 82%;
        padding: 36px 20px;
    }
}

/* Mensaje de alerta de error en el modal de login */
.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}
