/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    
    --navy: #002D62;         
    --gold: #D4AF37;        
    --blue-accent: #4C8CE4;  
    
    /* Colores UI */
    --bg-light: #F8FAFC;
    --text-main: #334155;
    --text-muted: #64748B;
    --white: #ffffff;
    --overlay: rgba(12, 20, 35, 0.85); /* Capa oscura para el Hero */
    
    /* Tipografía */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* =========================================
   NAVEGACIÓN (Con tu Logo)
   ========================================= */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    max-width: 240px; /* Tamaño del logo */
    height: auto;
}

.logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo a { transition: transform 0.3s ease; display: block; }
.logo a:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 32px; }

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--navy);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover { color: var(--gold); }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: var(--transition); background-color: var(--navy); }

/* =========================================
   HERO SECTION (DISEÑO IMAGEN)
   ========================================= */
.hero-section {
    position: relative;
    min-height: 90vh;
    background-image: url('img/doqsl.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    z-index: 1;
}


.hero-container {
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.hero-tagline {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--white);
}

.gold-text { color: var(--gold); }

.hero-description {
    font-family: var(--font-main);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-solid-gold {
    background-color: var(--gold);
    color: var(--navy);
    border: 2px solid var(--gold);
}

.btn-solid-gold:hover {
    background-color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--navy);
}

/* =========================================
   COMPONENTES GENERALES DE SECCIONES
   ========================================= */
.section-padding { padding: 100px 0; }

.section-header span {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--navy);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 700px;
    margin-bottom: 60px;
}

.section-header.text-center p { margin-left: auto; margin-right: auto; }

/* =========================================
   SERVICIOS
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 45, 98, 0.08);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    color: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--navy);
    color: var(--gold);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================================
   POR QUÉ ELEGIRNOS
   ========================================= */
.why-us {
    background-color: var(--navy);
    color: var(--white);
}

.why-us h2 { color: var(--white); }
.why-us p { color: rgba(255, 255, 255, 0.8); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2); /* Borde dorado sutil */
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    transform: scale(1.02);
}

.feature-item i {
    color: var(--gold);
    font-size: 1.5rem;
}

/* =========================================
   NUESTRO EQUIPO
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-card {
    text-align: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--gold);
}

.team-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-light);
    transition: var(--transition);
}

.team-card:hover .team-avatar { border-color: var(--gold); }

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.team-role {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* =========================================
   CONTACTO
   ========================================= */
.contact-section { background-color: var(--bg-light); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 { font-size: 2.75rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 40px; }

.contact-details { display: flex; flex-direction: column; gap: 24px; }

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--navy);
    font-weight: 500;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.contact-detail-item:hover { border-color: var(--gold); transform: translateX(5px); }
.contact-detail-item i { color: var(--gold); font-size: 1.25rem; width: 20px; text-align: center; }

/* Formulario */
.contact-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--navy);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.btn-submit { width: 100%; }

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-footer { max-width: 120px; filter: brightness(0) invert(1); /* Pone el logo en blanco */ }
footer p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.social-links a:hover { background-color: var(--gold); color: var(--navy); transform: scale(1.1); }

/* =========================================
   ANIMACIONES SCROLL
   ========================================= */
.section-animate, .animate-card { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.section-animate.in-view, .animate-card.in-view { opacity: 1; transform: translateY(0); }
.services-grid .animate-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .animate-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .animate-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .animate-card:nth-child(4) { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-header h2 { font-size: 2.25rem; }
    
    /* Nav Móvil */
    nav { height: 80px; }
    .logo { max-width: 120px; }
    .nav-links {
        position: absolute; right: 0px; height: 100vh; top: 80px;
        background-color: var(--white);
        display: flex; flex-direction: column; align-items: center;
        width: 100%; padding: 50px 0;
        transform: translateX(100%); transition: transform 0.4s ease-in;
        border-top: 1px solid #e2e8f0; z-index: 1000;
    }
    .nav-links li { opacity: 0; margin-bottom: 30px; }
    .nav-links a { font-size: 1.25rem; }
    .menu-toggle { display: block; }
    .nav-active { transform: translateX(0%); }
    @keyframes navLinkFade { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0px); } }
    .toggle .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .bar:nth-child(2) { opacity: 0; }
    .toggle .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    /* Hero Móvil */
    .hero-title { font-size: 2.8rem; }
    .hero-content { text-align: center; }
    .hero-buttons { justify-content: center; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-wrapper { padding: 30px; }

    /* Footer */
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}