/* ========================================
   Frontal Trust - Global & Layout Setup
   ======================================== */

:root {
    --ft-primary: #234351;
    --ft-primary-light: #48727d;
    --ft-accent: #df855b;
    --ft-bg-dark: #142832;
    --ft-text: #ffffff;
    --ft-text-muted: #b0c4cc;
    --ft-border: rgba(255,255,255,0.2);
    --ft-radius: 25px;
}

html, body {
    height: 100vh;
    width: 100vw;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--ft-bg-dark);
    display: flex;
    flex-direction: column;
}

.container, .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}

/* --- HEADER & FOOTER --- */
.header {
    background-color: var(--ft-primary) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 90px;
    flex-shrink: 0;
    z-index: 10;
}

.logo-container h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0;
}

.logo-container p {
    font-size: 10px;
    letter-spacing: 1px;
    border-top: 1px solid var(--ft-border);
    padding-top: 4px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 18px;
    color: var(--ft-accent);
}

.lang-selector {
    border: 1px solid #ffffff;
    padding: 4px 10px;
    font-size: 13px;
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-selector form {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.lang-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.lang-btn:hover { opacity: 1; }

.lang-btn.active {
    font-weight: 700;
    opacity: 1;
}

.lang-sep {
    color: #ffffff;
    opacity: 0.6;
}

.footer {
    background-color: var(--ft-primary-light) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 75px;
    flex-shrink: 0;
    border: none !important;
}

.ft-icon {
    border: 2px solid #ffffff;
    padding: 4px 8px;
    font-weight: 800;
    font-size: 20px;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 12px;
}

    .social-icons a {
        background-color: #ffffff;
        color: var(--ft-primary-light);
        width: 32px;
        height: 32px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        text-decoration: none;
        font-size: 14px;
        transition: 0.3s;
    }

        .social-icons a:hover {
            transform: scale(1.2);
        }

/* --- HERO SECTION --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.hero-section {
    flex: 1;
    /* Combinamos el gradiente y la imagen en la misma propiedad */
    background-image: linear-gradient(to right, rgba(20, 40, 50, 0.95) 0%, rgba(20, 40, 50, 0.75) 100%), url('../images/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ¡ESTO ES LA MAGIA! Hace que el fondo nunca se mueva al hacer scroll */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: calc(100vh - 90px - 75px);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    text-align: center;
    color: var(--ft-text);
}

.main-title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 300;
    margin-bottom: 15px;
}

    .main-title strong {
        font-weight: 700;
        font-size: 1.1em;
        color: var(--ft-accent);
    }

.subtitle {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 0 10%;
    color: var(--ft-text-muted);
}

.highlight {
    color: var(--ft-accent);
    font-weight: 700;
}

/* --- VALIDACIÓN GLOBAL --- */
.text-danger, .field-validation-error {
    display: inline-block !important;
    color: #ff8080 !important;
    font-size: 12px;
    font-weight: 600;
    margin-top: -12px;
    margin-bottom: 20px;
    background: rgba(255, 128, 128, 0.15);
    padding: 6px 15px;
    border-radius: 8px;
    border-left: 4px solid #ff8080;
    animation: errorShake 0.4s ease-in-out;
}

    .text-danger:empty, .field-validation-valid {
        display: none !important;
    }

@keyframes errorShake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(5px);
    }

    50% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* --- ESTRUCTURA COMPARTIDA (Landing & Auth) --- */
.forms-container { 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    gap: 60px; 
    text-align: left; 
}
.forms-centered { 
    margin-top: 20px; 
}
.form-column { 
    flex: 1; 
    max-width: 500px; 
    width: 100%; 
}

/* --- BOTONES GLOBALES --- */
.btn-landing-primary {
    width: 100%; 
    background-color: var(--ft-accent); 
    color: #ffffff; 
    border: none; 
    padding: 16px 20px;
    border-radius: var(--ft-radius); 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 700; 
    transition: transform 0.2s, background-color 0.3s; 
    box-sizing: border-box;
}
.btn-landing-primary:hover { 
    background-color: #c7714a; 
    transform: translateY(-2px); 
}


/* --- MÓVIL GLOBAL --- */
@media (max-width: 850px) {
    html, body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
    }

    .hero-section {
        height: auto;
        padding: 40px 20px;
        overflow-x: hidden;
    }

    .header, .footer {
        padding: 15px 20px;
        flex-direction: column;
        height: auto;
    }

    .header-actions {
        margin-top: 10px;
    }
}
