/* --- Variables y Reset --- */
:root {
    --primary-blue: #0B1B3D; /* Azul profundo del logo */
    --accent-gold: #F5B041; /* Dorado del logo */
    --accent-green: #2ECC71; /* Verde del logo */
    --accent-red: #E74C3C; /* Rojo del logo */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navegación --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--primary-blue);
}

.navbar.scrolled .nav-title,
.navbar.scrolled .nav-links a {
    color: var(--bg-white);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px;
}

.nav-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.btn-nav {
    background-color: var(--accent-gold);
    color: var(--primary-blue) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s, background-color 0.3s !important;
}

.btn-nav:hover {
    background-color: #e09e2f;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    color: var(--bg-white);
    z-index: 2;
}

.hero-logo {
    width: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.lema {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    border-left: 3px solid var(--accent-gold);
    border-right: 3px solid var(--accent-gold);
    padding: 0 1rem;
    display: inline-block;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 176, 65, 0.4);
}

.btn-primary:hover {
    background-color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* --- Secciones Generales --- */
.section-padding {
    padding: 6rem 2rem;
}

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.bg-dark { 
    background-color: var(--primary-blue); 
    color: var(--bg-white);
}

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

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.section-title.text-white { color: var(--bg-white); }

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold);
    margin: 0 auto 3rem auto;
    border-radius: 2px;
}

.divider-white { background-color: var(--accent-gold); margin: 0 0 2rem 0; }

/* --- Misión y Visión --- */
.glass-card {
    background: var(--bg-white);
    padding: 4rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 5px solid var(--accent-gold);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.icon-large {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.text-large {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* --- Valores Grid --- */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.valor-card {
    background: var(--bg-white);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid transparent;
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top-color: var(--accent-green); /* Usando verde del logo */
}

.valor-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.valor-card:hover i {
    color: var(--accent-gold);
}

.valor-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-blue);
}

.valor-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- Contacto --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-lema {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-list i {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-list strong {
    display: block;
    margin-bottom: 0.2rem;
}

.contact-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 4px solid var(--bg-white);
}

/* --- Footer --- */
footer {
    background-color: #050d1f;
    padding: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 50px;
    opacity: 0.8;
}

/* --- Animaciones --- */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

.hero h1 { animation-delay: 0.2s; }
.lema { animation-delay: 0.4s; }
.btn-primary { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .glass-card { padding: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Aquí se activaría el menú hamburguesa con JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger { display: block; }
    
    .nav-title { display: none; }
    
    .hero h1 { font-size: 2rem; }
    .lema { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .section-padding { padding: 4rem 1.5rem; }
}