:root {
    --primary: #1a2c4e; /* Deep Navy */
    --secondary: #0089a7; /* Darker Cyan */
    --accent: #8b5e34; /* Terracotta/Earth tone */
    --background: #faf8f5; /* Off-white linen */
    --text-dark: #1a2c4e;
    --text-light: #5c6c80;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.7; /* Increased for better readability */
    overflow-x: hidden;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

nav.scrolled {
    background: var(--white);
    padding: 0.8rem 5%;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

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

.logo span {
    color: var(--secondary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a.btn {
    color: var(--white);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%), url('../images/cultural-bg.png');
    background-size: cover;
    background-position: center right;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding-top: 4rem; /* Safe space for fixed navbar */
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem; /* Reduced from 4.8rem to prevent overlap */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary);
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.5;
    max-width: 650px;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), #2c457d);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px -5px rgba(26, 44, 78, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

/* Services */
.services {
    padding: 8rem 5%;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

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

.service-card {
    padding: 4rem 3rem;
    background: var(--white);
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

/* Contact Section Styles */
.contacto {
    padding: 8rem 5%;
    background-color: var(--background);
}

.contact-card {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--white);
    padding: 4rem;
    border-radius: 40px;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.06);
}

.contact-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.contact-item i {
    color: var(--secondary);
    width: 24px;
}

#contact-form input, 
#contact-form textarea {
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

#contact-form input:focus, 
#contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 162, 199, 0.1);
}

@media (max-width: 991px) {
    .contact-card {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 2rem;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:nth-child(2)::before { background: var(--secondary); }
.service-card:nth-child(3)::before { background: var(--accent); }

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Feature Sections (Nosotros) */
.nosotros {
    padding: 8rem 5%;
    background-color: var(--white);
}

.feature {
    display: flex;
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature.reverse {
    flex-direction: row-reverse;
}

.feature > div {
    flex: 1;
}

.feature-img {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 30px;
}

.feature-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
}

.feature-img img:hover {
    transform: scale(1.02);
}

.feature-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-content p {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary);
}

/* --- Responsive Improvements --- */

/* Tablas y Laptops Pequeñas (1024px) */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .feature { gap: 4rem; }
}

/* Tablets (992px) */
@media (max-width: 991px) {
    .menu-toggle { display: block !important; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a { font-size: 1.5rem; }

    .feature {
        flex-direction: column !important;
        text-align: center;
        gap: 3rem;
    }

    .feature-content h2 {
        font-size: 2.2rem; /* Reduced from 3rem */
    }

    .feature-img, .feature-content {
        width: 100%;
        max-width: 100%;
    }

    .feature.reverse .feature-content { text-align: center; }
    .feature-list { justify-content: center; display: flex; flex-direction: column; align-items: center; }

    #contacto .grid {
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
    }
}

/* Móviles (768px) */
@media (max-width: 767px) {
    .hero { text-align: center; justify-content: center; padding: 0 5%; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { margin: 0 auto 2.5rem auto; }
    .hero-btns { flex-direction: column; width: 100%; gap: 1rem; }
    .hero-btns .btn { width: 100%; }

    .section-title h2 { font-size: 2rem; }
    .services { padding: 5rem 5%; }

    #stats div { width: 100%; }
    #stats h3 { font-size: 2.5rem; }

    #banner h2 { font-size: 2.2rem; }

    footer { text-align: center; }
    footer > div:first-child { flex-direction: column; align-items: center; }
    footer .links-container { flex-direction: column; gap: 2rem !important; }
}

/* Teléfonos Pequeños (480px) */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
}
