﻿:root {
    --dark-navy: #0A1F44;
    --navy-deep: #081735;
    --gold: #C6A64A;
    --gold-soft: #E3C46B;
    --green: #03b715;
    --white: #F8F8F8;
    --gray-light: #E5E5E5;
    --text-dark: #1A1A1A;
}

/* =============================
   RESET BÁSICO
============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    background-image: linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* TIPOGRAFÍA */

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--dark-navy);
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    font-weight: 400;
}

.elegant-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--gold);
}

/* CONTENEDOR GLOBAL */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */

.header {
    background-color: var(--dark-navy);
    padding: 0;
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Navegación Desktop */
.nav-desktop a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;
    padding-bottom: 6px;
}

    .nav-desktop a:hover {
        color: var(--gold-soft);
    }

    .nav-desktop a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background-color: var(--gold);
        transition: width 0.3s ease;
    }

    .nav-desktop a:hover::after {
        width: 100%;
    }

    .nav-desktop a.active::after {
        width: 100%;
    }

/* Botón Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--white);
}

/* Navegación Mobile */
.nav-mobile {
    position: absolute;
    top: 90px; /* altura del header */
    right: 0;
    width: 260px;
    background-color: var(--navy-deep);
    padding: 25px;
    display: none;
    flex-direction: column;
    gap: 20px;
    box-shadow: -10px 20px 40px rgba(0,0,0,0.35);
    border-bottom-left-radius: 12px;
    z-index: 999;
}

    .nav-mobile a {
        color: var(--white);
        text-decoration: none;
        padding: 0.8rem 0;
    }

/* HERO */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(8, 23, 53, 0.95) 0%, rgba(10, 31, 68, 0.85) 40%, rgba(10, 31, 68, 0.75) 100% );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 60px 70px;
    background: rgba(10, 31, 68, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 40px;
    color: white;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 35px;
    color: rgba(255,255,255,0.9);
    opacity: 0.9;
}


/* BOTONES */

.btn-primary {
    display: inline-block;
    background-color: var(--gold);
    color: var(--dark-navy);
    padding: 0.9rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-primary::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(227,196,107,0.4) 0%, rgba(198,166,74,0.2) 40%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .btn-primary:hover::before {
        opacity: 1;
    }

/* SECCIONES */

section {
    padding: 80px 0;
}

 /* LÍNEA INSTITUCIONAL BAJO TÍTULOS */

    section h2 {
        position: relative;
        display: inline-block;
        padding-bottom: 12px;
    }

        section h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 60px;
            height: 2px;
            background-color: var(--gold);
        }

        .about h2,
        .services h2,
        .why-us h2,
        .contact h2 {
            text-align: center;
        }

            .about h2::after,
            .services h2::after,
            .why-us h2::after,
            .contact h2::after {
                left: 50%;
                transform: translateX(-50%);
            }


/* ABOUT PRODUCCIÓN */

.about {
    background: white;
}

.about-container {
    text-align: center;
}

.about-content {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.about-stats {
    background: var(--dark-navy);
    padding: 50px 40px;
    border-radius: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
}

.about-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2px;
}

    .about-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(198,166,74,0.08), transparent );
        pointer-events: none;
    }


    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(20%) contrast(105%);
        transition: transform 0.6s ease;
    }

        .about-image img:hover {
            transform: scale(1.05);
        }


.about-stats .stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

    .stats-row .stat {
        flex: 1;
        text-align: center;
    }


.stat h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat p {
    font-size: 0.85rem;
    opacity: 0.85;
    letter-spacing: 1px;
}

/* Services */
.services {
    background-color: var(--gray-light);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

    .service-card i {
        font-size: 2rem;
        color: var(--gold);
        margin-bottom: 1rem;
    }

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
        border-bottom: 3px solid var(--gold);
    }

    /* porque nosotros */
.why-us {
    background: var(--dark-navy);
    color: white;
    text-align: center;
}

    .why-us h2 {
        color: white;
    }

.why-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.why-card {
    padding: 40px 30px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .why-card i {
        font-size: 2rem;
        color: var(--gold);
        margin-bottom: 20px;
    }

    .why-card h4 {
        margin-bottom: 15px;
        color: var(--gold-soft);
    }

    .why-card:hover {
        transform: translateY(-6px);
        background: rgba(255,255,255,0.08);
    }


/* FORMULARIO */

.contact {
    background-color: var(--gray-light);
}

.contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact form {
    width: 100%;
    max-width: 520px;
    background-color: white;
    padding: 40px;
    margin-top: 40px;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border-top: 4px solid var(--gold);
}

.form-group {
    margin-top: 18px;
}

input, textarea{
    width: 100%;
    padding: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    input:focus,
    textarea:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 2px rgba(198,166,74,0.15);
    }

/* Ocultar badge flotante de reCAPTCHA */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* aviso de recaptcha */
.recaptcha-notice {
    margin-top: 18px;
    font-size: 0.75rem;
    color: #484848;
    line-height: 1.6;
    opacity: 0.75;
    text-align: center;
    max-width: 420px;
}

    .recaptcha-notice a {
        color: var(--gold);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .recaptcha-notice a:hover {
            color: var(--dark-navy);
            text-shadow: 0 0 8px var(--dark-navy);
        }

.bi-shield-check {
    color: var(--green);
}

/* =============================
   FOOTER
============================= */

.footer {
    background-color: var(--navy-deep);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* =============================
   RESPONSIVE
============================= */

@media (max-width: 768px) {

    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 75vh;
        background-attachment: scroll;
        padding: 40px 25px;
        backdrop-filter: blur(10px);
    }

        .hero h1 {
            font-size: 2.2rem;
        }

        .hero p {
            font-size: 1rem;
        }

    .about-content {
        gap: 35px;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-stats {
        padding: 40px 25px;
        border-radius: 16px;
    }

    .about-image {
        aspect-ratio: 1 / 1;
        border-radius: 10px;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 25px;
        justify-content: center;
    }

        .stats-row .stat {
            flex: 0 0 45%;
        }

            .stats-row .stat:last-child {
                flex: 0 0 100%;
            }

    .stat h3 {
        font-size: 1.9rem;
    }

    .stat p {
        font-size: 0.8rem;
    }

}

/* ==============================
   ABOUT RESPONSIVE
============================== */

@media (max-width: 1024px) {

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        text-align: left;
    }

    .about-stats {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}