﻿:root {
    --yellow: #FFC400;
    --black: #111;
    --gray: #666;
    --shadow: 0 20px 50px rgba(0,0,0,.18);
    --radius: 22px;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    /* ✅ Desktop: se ve como mock (llena toda la pantalla) */
    background: #fff url("/img/brand/fondo.jpg") no-repeat top center;
    background-size: cover;
}

button,
input,
textarea,
select {
    font-family: inherit;
}



h1, h2, h3 {
    font-weight: 800;
}

h4, h5 {
    font-weight: 700;
}

p, label, input {
    font-weight: 400;
}

.small, .hint, .footer-note {
    font-weight: 300;
}



/* Contenedor */
.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(1180px, 96vw);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
}

/* Slider */
.hero {
    position: relative;
    min-height: 420px;
    background: #000;
}

.slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .7s ease, transform .9s ease;
}

    .slide.active {
        opacity: 1;
        transform: scale(1);
    }

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.60) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.05) 100%);
}

.hero::after {
    pointer-events: none;
}
/* por si el overlay intercepta clicks */
.dots {
    position: relative;
    z-index: 5;
}

.dot {
    cursor: pointer;
}

.hero {
    touch-action: pan-y;
}
/* permite scroll vertical pero captura swipe horizontal */


.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.hero-title h2 {
    margin: 0 0 6px 0;
    color: #fff;
    font-size: 32px;
    font-weight: 900;
}

.hero-title p {
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    max-width: 420px;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #fff;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.35);
}

    .dot.active {
        width: 16px;
        background: #fff;
    }

/* Panel */
.panel {
    padding: 32px;
    display: flex;
    align-items: stretch;
}

.panel-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.panel-mid {
    flex: 1; /* ✅ zona del medio (crece) */
    display: flex;
    align-items: center; /* ✅ centra vertical */
    justify-content: flex-start;
    flex-direction: column;
}

.panel h3 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 6px;
}

.panel p {
    font-size: 12.5px;
    color: var(--gray);
    margin-bottom: 18px;
}

.btn-main {
    width: 100%;
    border-radius: 14px;
    padding: 14px;
    font-weight: 900;
    border: none;
    box-shadow: 0 10px 22px rgba(0,0,0,.15);
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-black {
    background: #111;
    color: #fff;
}

.btn-yellow {
    background: var(--yellow);
    color: #111;
}

.btn-main + .btn-main {
    margin-top: 14px;
}

.footer-note {
    text-align: center;
    font-size: 11px;
    color: rgba(0,0,0,.45);
    padding-top: 10px;
}

/* ✅ RESPONSIVE */
@@media (max-width: 992px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 320px;
    }

    .panel {
        padding: 20px;
    }
}

/* ✅ MÓVIL: aquí está la magia para NO perder los logos del fondo */
@@media (max-width: 600px) {
    body {
        /* En móvil NO recortamos el header: */
        background-size: contain; /* ✅ muestra completo */
        background-position: top center; /* ✅ prioriza logos */
        background-attachment: scroll;
    }

    .page {
        /* deja espacio arriba para que se vean logos del fondo */
        padding: 18px 14px 24px 14px;
        /*padding-top: clamp(110px, 22vw, 160px);  ✅ ajusta según pantalla */
        padding-top: clamp(140px, 28vw, 190px); /* ✅ ajusta según pantalla */
        place-items: start center; /* card arriba, no al centro */
    }

    .login-card {
        width: 100%;
        border-radius: 18px;
    }

    .hero-content {
        padding: 18px;
    }

    .hero-title h2 {
        font-size: 26px;
    }
}
