/*
Colores rellenos
azul: #171c8f
Negro plomo: #060e00
Celeste: #cdeefb
Gris claro form: #f8f9fa
*/

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-VariableFont.ttf') format('truetype');
}
@font-face {
  font-family: 'Urbanist';
  src: url('../fonts/Urbanist-VariableFont_wght.ttf') format('truetype');
}
@font-face {
  font-family: 'FrauncesBlack';
  src: url('../fonts/Fraunces_72pt-Black.ttf') format('truetype');
}
@font-face {
  font-family: 'UrbanistExtraBold';
  src: url('../fonts/Urbanist-ExtraBold.ttf') format('truetype');
}
@font-face {
  font-family: 'UrbanistBold';
  src: url('../fonts/Urbanist-Bold.ttf') format('truetype');
}

/* --- RESET & BASICS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Urbanist', sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- HEADER & NAVIGATION (SOBREPUESTO AL HERO BANNER) --- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 22px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    transition: color 0.3s ease;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.6);
}

.main-nav a:hover,
.main-nav a.active {
    color: #cdeefb;
}

/* --- HERO BANNER (IMAGEN COMPLETA CON PROPORCIÓN 1921x541) --- */
.hero-banner {
    position: relative;
    width: 100%;
    line-height: 0;
    background-color: #ffffff;
    overflow: hidden;
}

.hero-banner .banner-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1921 / 541;
    object-fit: cover;
}

/* Título centrado dentro de la imagen */
.hero-title-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding-top: 40px; /* Compensa la presencia de la barra de navegación */
}

.hero-banner h1 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 0 15px;
    font-family: 'FrauncesBlack', serif;
    text-shadow: 0px 3px 8px rgba(0, 0, 0, 0.5);
}

/* --- MAIN CONTENT & FORM LAYOUT --- */
.main-content {
    background-color: #ffffff; /* Fondo blanco */
    padding: 50px 0 70px 0;
    position: relative;
    z-index: 10;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.info-column h2 {
    font-size: 2rem;
    color: #171c8f;
    margin-bottom: 15px;
    font-family: 'FrauncesBlack', serif;
}

.intro-text {
    font-size: 1.05rem;
    color: #444444;
    margin-bottom: 25px;
}

.commitment-box {
    background-color: #cdeefb;
    border-left: 5px solid #171c8f;
    padding: 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #060e00;
    line-height: 1.5;
}

/* --- FORM STYLES (FONDO GRIS CLARO) --- */
.contact-form {
    background: #f8f9fa; /* Fondo gris claro */
    padding: 35px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #171c8f;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Urbanist', sans-serif;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #171c8f;
}

.btn-submit {
    width: 100%;
    background-color: #171c8f;
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #10146b;
}

/* --- ALERTS --- */
.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- FOOTER (COLOR #171c8f) --- */
.site-footer {
    background-color: #171c8f; /* Azul pedido */
    color: #ffffff;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 20px;
    font-family: 'FrauncesBlack', serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.footer-col a:hover {
    color: #cdeefb;
}

.cert-img {
    max-width: 100%;
    height: auto;
}

.footer-bottom {
    background-color: #10146b; /* Un tono ligeramente más oscuro para el copyright */
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #cdeefb;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .site-header {
        position: relative;
        background-color: #171c8f;
    }

    .main-nav {
        display: none;
    }

    .hero-title-container {
        padding-top: 0;
    }

    .hero-banner h1 {
        font-size: 1.8rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .hero-banner h1 {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 400px) {
    .hero-banner h1 {
        font-size: 1.1rem;
    }
}

/* --- RESPONSIVE DESIGN --- */
.menu-toggle {
    display: none; /* Oculto en pantallas grandes */
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .site-header {
        position: relative;
        background-color: #171c8f;
    }

    /* Mostrar botón hamburguesa a la derecha */
    .menu-toggle {
        display: block;
    }

    /* Ocultar menú por defecto y configurarlo como desplegable */
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #F8F8F8;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* Clase activa para abrir el menú */
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-title-container {
        padding-top: 0;
    }

    .hero-banner h1 {
        font-size: 1.8rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.main-nav .has-dropdown {
            position: relative;
        }

        .main-nav .has-dropdown > a {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .main-nav .arrow {
            font-size: 0.7rem;
            transition: transform 0.3s ease;
        }

        /* Menú flotante para Escritorio */
        .main-nav .dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
			color: #1E1E1E;
            background-color: #f8f8f8;
            min-width: 180px;
            list-style: none;
            padding: 10px 0;
            border-radius: 0 0 6px 6px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            z-index: 1001;
        }

        .main-nav .dropdown li {
            width: 100%;
        }

        .main-nav .dropdown a {
            display: block;
            padding: 8px 18px;
            font-size: 0.85rem;
            white-space: nowrap;
        }

        .main-nav .dropdown a:hover {
            background-color: #f8f8f8;
            color: #5E5D5D;
        }

        /* Hover en escritorio */
        @media (min-width: 901px) {
            .main-nav .has-dropdown:hover .dropdown {
                display: block;
            }
            .main-nav .has-dropdown:hover .arrow {
                transform: rotate(180deg);
            }
        }

        /* Desplegable en Celulares / Responsive */
        @media (max-width: 900px) {
            .main-nav .dropdown {
                position: static;
                box-shadow: none;
                background-color: #10146b;
                width: 100%;
                padding: 5px 0;
            }

            .main-nav .has-dropdown.open .dropdown {
                display: block;
            }

            .main-nav .has-dropdown.open .arrow {
                transform: rotate(180deg);
            }

            .main-nav .dropdown a {
                padding: 10px 20px;
                text-align: center;
                font-size: 0.85rem;
            }
        }