@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;700&display=swap');

body {
    margin: 0;
    background: url('../img/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem; /* margen interno constante lateral */
    box-sizing: border-box;
}

/* Main container estilo card */
.main-container {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
    border: 2px solid #222;
    width: 100%; /* antes 95vw */
    max-width: 1400px;
    margin: 0 auto; /* centra dentro del padding del body */
    min-height: 80vh;
    padding: 3.5rem 3rem 2rem 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* antes: center */
}

/* Logo esquina superior izquierda */
.logo {
    position: static; /* Anular posicionamiento absoluto del logo para respetar padding */
    top: auto;
    left: auto;
    height: 90px;
    width: 160px;
    margin: 0 0 1.4rem 0; /* separación inferior */
}

/* Nuevo: mensaje confidencial separado del logo */
.confidencial-msg {
    font-weight: bold;
    color: #666;
    font-size: 1rem;
    text-align: center;
    margin-top: 0; /* antes ~1rem, ahora despeja el logo */
    font-style: italic;
    padding: 0 2rem;
}

/* Menú superior derecha */
.menu {
    position: absolute;
    top: 2.5rem;
    right: 3rem;
    display: flex;
    gap: 2.5rem;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
}
.menu a {
    color: #d10000;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-transform: uppercase;
    padding: 0.5em 1.2em;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s, transform 0.2s;
    display: inline-block;
    border: none;
}
.menu a.active,
.menu a:hover {
    color: #fff;
    background: #d10000;
    font-weight: bold;
    border-bottom: none;
    transform: scale(1.08);
}

/* Título principal */
.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #222;
    margin-top: 6rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Subtítulo */
.hero-subtitle {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2.5rem;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Botón principal */
.hero-btn {
    display: inline-block;
    background: #ededed;
    color: #d10000;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin-bottom: 2.5rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, transform 0.2s;
    text-decoration: none;
}

.hero-btn:hover {
    color: #fff;
    background: #d10000;
    transform: scale(1.08);
}

/* Enlaces secundarios */
.hero-links {
    margin-top: 2.5rem;
    font-size: 1rem;
    color: #222;
    display: flex;
    gap: 1.5rem;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.hero-links a {
    color: #222;
    text-decoration: underline;
    margin: 0 0.5rem;
    transition: color 0.2s;
}
.hero-links a:hover {
    color: #000;
}

/* Scroll down vertical */
.scroll-down {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    writing-mode: vertical-rl;
    text-align: right;
    font-size: 0.95rem;
    color: #222;
    letter-spacing: 2px;
}

/* Créditos */
.creditos {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    color: #888;
    font-family: 'Segoe UI', Arial, sans-serif;
    letter-spacing: 1px;
}

/* Popup */
.estatus-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.estatus-popup-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    border: 2px solid #d10000;
    padding: 2.5rem 2.2rem 2rem 2.2rem;
    min-width: 340px;
    max-width: 95vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.estatus-popup-close {
    position: absolute;
    top: 1.1rem;
    right: 1.3rem;
    font-size: 2.2rem;
    color: #d10000;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
    z-index: 1;
}
.estatus-popup-close:hover {
    color: #ff9000;
}
.estatus-popup-input {
    font-size: 1.1rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 0.7rem;
    background: #f6f6f6;
    box-sizing: border-box;
    width: 100%;
    outline: none;
    transition: border 0.2s;
}
.estatus-popup-input:focus {
    border: 2px solid #d10000;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 10000;
    transition: background .25s, transform .25s;
}
.whatsapp-float:hover {
    background: #7a7a7a;
    transform: scale(1.08);
}
.whatsapp-float img {
    width: 60%;
    height: 60%;
    display: block;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
    .main-container {
        padding: 2rem 1rem;
        min-height: 90vh;
        width: 100%;
        margin: 0 auto;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .logo {
        position: static;
        top: auto;
        left: auto;
        height: 60px;
        width: 110px;
        margin: 0 0 1.2rem 0;
    }
    .menu {
        top: 1.2rem;
        right: 1rem;
        gap: 1.2rem;
        font-size: 1rem;
    }
    /* Ajuste móvil: menos separación */
    .confidencial-msg {
        margin-top: 0;
    }
    body {
        padding: 1rem; /* mantiene margen lateral en móviles */
    }
    .main-container {
        width: 100%;
        margin: 0 auto;
    }
}

nav {
    background: #fff;
    color: #111;
    padding: 1em 0 1em 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Crimson Text', serif;
    font-size: 1.7rem;
    text-transform: uppercase;
    margin-bottom: 0;
}

footer {
    background: #fff;
    color: #111;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 80%;
    justify-content: flex-start;
    position: relative;
}

.nav-logo {
    height: 70px;
    margin-right: 0rem;
    margin-left: 2rem;
    margin-bottom: -1rem;
    position: static;
}

.nav-links {
    display: flex;
    gap: 2em;
    justify-content: left;
    width: 100%;
    margin-left: 4rem;
    margin-right: 0;
    border-bottom: none;
}

.nav-links a {
    color: #d10000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, background 0.2s, transform 0.2s, padding 0.2s;
    font-size: 20px;
    font-family: 'Crimson Text', serif;
    text-transform: uppercase;
    padding-bottom: 0;
    border-bottom: none;
    display: inline-block;
}
.nav-links a:hover {
    color: #fff;
    background: #d10000;
    border-radius: 4px;
    border-bottom: none;
    transform: scale(1.1);
    padding: 0.3em 0.8em;
}

.nav-links a {
    color: #d10000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, background 0.2s, transform 0.2s, padding 0.2s;
    font-size: 20px;
    font-family: 'Crimson Text', serif;
    text-transform: uppercase;
    padding-bottom: 0;
    border-bottom: none;
    display: inline-block;
}
.nav-links a:hover {
    color: #fff;
    background: #d10000;
    border-radius: 4px;
    border-bottom: none;
    transform: scale(1.1);
    padding: 0.3em 0.8em;
}

