/* Variables y Configuración Inicial */
:root {
    --primary-blue: #103b5d;
    --primary-blue-light: #1e5a8c;
    --primary-gold: #d49c3a;
    --primary-gold-hover: #c48c2c;
    --green-teal: #197b7b;
    --text-dark: #333333;
    --text-gray: #555555;
    --bg-light: #fbf9f4; /* Fondo crema muy suave */
    --white: #ffffff;
    --whatsapp-color: #25d366;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    --font-cursive: 'Alex Brush', cursive;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tipografía Compartida */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    line-height: 1.2;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.section-title.text-left {
    text-align: left;
}

.cursive-text {
    font-family: var(--font-cursive);
    color: var(--primary-gold);
    font-size: 2.5rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-gold-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* --- Header --- */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 100px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-blue);
    position: relative;
}

.nav-list a.active::after, .nav-list a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(245,248,250,1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--green-teal);
}

.subtitle-serif {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.hero-desc {
    margin: 1.5rem 0 2rem;
    font-size: 1.05rem;
}

.hero-trust {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.hero-image {
    flex: 1;
    position: relative;
}

/* --- Pilares Section --- */
.bg-light {
    background-color: var(--bg-light);
}

.pillars {
    padding: 5rem 0;
}

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

.card-pillar {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-wrapper.color-green { border: 2px solid var(--green-teal); }
.icon-wrapper.color-blue { border: 2px solid var(--primary-blue); }
.icon-wrapper.color-gold { border: 2px solid var(--primary-gold); }

.card-pillar h3 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.card-pillar h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.card-pillar p {
    font-size: 0.9rem;
}

/* --- Especialidades --- */
.specialties {
    padding: 5rem 0;
}

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

@media(min-width: 1024px) {
    .grid-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

.card-specialty {
    text-align: center;
    background: var(--white);
    padding-bottom: 1.5rem;
}

.card-specialty img {
    border-radius: 12px;
    margin-bottom: 1rem;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-specialty h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-specialty p {
    font-size: 0.85rem;
    padding: 0 10px;
}

/* --- Nuestro Espacio --- */
.our-space {
    padding: 5rem 0;
}

.space-container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.space-text {
    flex: 1;
}

.space-list {
    margin: 2rem 0;
}

.space-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--primary-blue);
}

.small-cursive {
    font-size: 1.8rem;
}
.color-green-dark {
    color: var(--green-teal);
}

.space-gallery {
    flex: 1;
}

.gallery-grid {
    display: flex;
    gap: 1rem;
}

.gallery-main {
    width: 50%;
    border-radius: 12px;
    object-fit: cover;
}

.gallery-subgrid {
    width: 50%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gallery-subgrid img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Contacto --- */
.contact-info {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item img {
    width: 24px;
    margin-top: 5px;
}

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 0.9rem;
}

.contact-map img {
    border-radius: 12px;
    width: 100%;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0;
}

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

.footer-logo img {
    height: 97px;
}

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

.footer-cursive {
    color: #cca85e;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social img {
    width: 24px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-social a:hover img {
    opacity: 1;
}

/* --- Botón WhatsApp Flotante --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Responsive (Móviles y Tablets) --- */
@media (max-width: 992px) {
    .hero-container, .space-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-menu {
        display: none; /* Oculto en móvil por defecto */
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

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

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        flex-direction: column;
    }
    .gallery-main, .gallery-subgrid {
        width: 100%;
    }
}