/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #4A6741;
    --color-primary-dark: #3a5233;
    --color-accent: #8B6F47;
    --color-accent-light: #A68A64;
    --color-bg-light: #F5F3EE;
    --color-bg-cream: #EDE8DF;
    --color-text-dark: #2C3E2A;
    --color-text-body: #4A5D47;
    --color-quote-bg: #C8D5B9;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-bg-light);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-dark);
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    background-color: var(--color-bg-light);
    border-bottom: 1px solid rgba(74, 103, 65, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex; 
    align-items: center;
    gap: 10px;

    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.logo span {
    font-family: inherit;
    font-size: inherit; 
    font-weight: inherit;
    line-height: 1;
}

.logo:hover {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--color-text-body);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: all 0.3s ease;
}


/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../media/images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 103, 65, 0.85) 0%, rgba(74, 103, 65, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.3;
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-white);
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.services-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.service-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.service-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--color-quote-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.service-content h3 {
    font-size: 1.125rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.6;
}

/* ===== Carrusel ===== */
/* Contenedor principal */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    margin: 0 50px; /* Espacio para los botones */
}

.carousel-track {
    display: flex;
    /* La transición se activa por JS para controlar el reset infinito */
}

/* Slide Individual */
.carousel-slide {
    flex: 0 0 33.333%; /* 3 imágenes en desktop */
    position: relative;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 400px; /* Ajustar según necesidad */
    object-fit: cover;
    display: block;
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Capa de Información (Overlay) */
.slide-info {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    pointer-events: none; /* Evita interferencia con el hover del padre */
}

/* Estado Activo (Hover) */
.carousel-slide:hover img {
    filter: blur(8px) brightness(0.7);
}

.carousel-slide:hover .slide-info {
    opacity: 1;
}

/* Media Queries: Ajuste de resolución espacial */
@media (max-width: 992px) {
    .carousel-slide { flex: 0 0 50%; } /* 2 imágenes en tablet */
}

@media (max-width: 576px) {
    .carousel-slide { flex: 0 0 100%; } /* 1 imagen en mobile */
    .carousel-track-container { margin: 0 30px; }
}

/* Botones */
.carousel-btn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    border-radius: 50%;
}
.prev-btn { left: 0; }
.next-btn { right: 0; }

/* ===== WORKS/PORTFOLIO MASONRY SECTION ===== */
.works {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg-cream);
}

.works-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-body);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.works-masonry {
    column-count: 3;
    column-gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.work-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.work-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.work-item:hover img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 62, 42, 0.95) 0%, rgba(44, 62, 42, 0.7) 60%, transparent 100%);
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.work-location {
    font-size: 0.9rem;
    color: var(--color-white);
    font-weight: 500;
}

.work-type {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-info {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    justify-content: center;
}

.lightbox-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
}

.lightbox-type {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    width: fit-content;
    margin-bottom: var(--spacing-sm);
}

.lightbox-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-body);
}


/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    margin-top: var(--spacing-lg);
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    display: flex;
    flex-direction: column;
    /* Ajuste 1: Menos espacio entre bloques de párrafo */
    gap: var(--spacing-sm); 
}

.intro-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs); 
}

.about-text p {
    font-size: 1rem;
    line-height: 1.5; 
    color: var(--color-text-body);
}

.quote {
    background-color: var(--color-quote-bg);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
    border-left: 4px solid var(--color-primary);
}

.quote p {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text-dark);
    font-weight: 500;
}

/* ==========================================================================
SECCIÓN CURSOS Y LIGHTBOX TÉCNICO
========================================================================== */

/* 1. Contenedor de la Sección */
.courses-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

/* 2. Tarjetas de Cursos (Cards) */
.course-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--color-quote-bg);
}

.card-body {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.card-body h3 {
    font-size: 1.5rem;
    color: var(--color-text-dark);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: var(--spacing-xs) 0;
}

/* 3. Botones de Acción en Card */
.btn-primary-course {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--color-bg-cream);
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-course:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-buy-direct {
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: var(--spacing-xs);
}

.btn-buy-direct:hover {
    text-decoration: underline;
}

/* 4. Lightbox Modificado (Ficha Técnica) */
.lightbox {
    display: none;
    position: fixed;
    inset: 0; /* top, left, right, bottom = 0 */
    background-color: rgba(44, 62, 42, 0.95); /* Overlay con tono corporativo */
    z-index: 9999;
    padding: var(--spacing-md);
    backdrop-filter: blur(5px); /* Efecto Glassmorphism */
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    background: var(--color-white);
    max-width: 1000px;
    width: 100%;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr; /* División simétrica imagen/texto */
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 600px;
}

.lightbox-info {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-md);
}

.lightbox-info h3 {
    font-size: 2.2rem;
    line-height: 1.2;
    color: var(--color-text-dark);
    border-bottom: 3px solid var(--color-quote-bg);
    padding-bottom: 10px;
}

.lightbox-type {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
}

.lightbox-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-body);
}

/* 5. Controles y Animaciones */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 6. Responsividad del Modal */
@media (max-width: 850px) {
    .lightbox-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }

    .lightbox-content img {
        height: 250px;
    }
    
    .lightbox-info {
        padding: var(--spacing-lg);
    }

    .lightbox-info h3 {
        font-size: 1.7rem;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg-cream);
}

.contact-label {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-body);
    margin-bottom: var(--spacing-xl);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs);
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-body);
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.required {
    color: #D64545;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1.5px solid #D9D5CC;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A39E93;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-submit:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #405f26;
    color: #F5F3EE;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    color: #F5F3EE;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(245, 243, 238, 0.9);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: rgba(245, 243, 238, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #F5F3EE;
    transform: translateX(4px);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
    color: rgba(245, 243, 238, 0.9);
}

.footer-contact a,
.footer-contact a:visited {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-contact a:active,
.footer-contact a:focus {
    color: #F5F3EE;
    opacity: 1;
    transform: none;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0;
    color: #C8D5B9;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #F5F3EE;
    border-radius: 50%;
    color: #405f26;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-link:hover {
    background-color: #C8D5B9;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: rgba(245, 243, 238, 0.85);
}

.footer-hours p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.footer-hours strong {
    color: #F5F3EE;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 243, 238, 0.2);
    padding-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(245, 243, 238, 0.8);
}

.footer-col:last-child {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-col:last-child h4 {
    margin-bottom: 0;
}

.footer-social-hours {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.footer-credit {
    margin-top: var(--spacing-xs);
    font-style: italic;
}


/* ===== RESPONSIVE DESIGN (Consolidado) ===== */

@media (max-width: 968px) {
    /* --- NAVBAR (Lógica del Menú Móvil) --- */
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        background-color: var(--color-bg-light);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transition: left 0.3s ease;
        gap: var(--spacing-md);
    }
    .nav-menu.active {
        left: 0;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* --- FOOTER (2 Columnas) --- */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    } 

    /* --- LAYOUTS PRINCIPALES (Pasan a 1 Columna) --- */
    .works-grid,
    .services-content,
    .about-content,
    .form-row,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    /* --- PORTFOLIO/MISCELÁNEOS --- */
    .works-masonry {
        column-count: 2;
    }
    .lightbox-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    .lightbox-content img {
        max-height: 50vh;
    }
    .lightbox-info {
        padding: var(--spacing-md);
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
    .form-container {
        padding: var(--spacing-md);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .works-masonry {
        column-count: 1;
    }
}

/* ===== WHATSAPP BUTTON ===== */
.btn-wsp {
    position: fixed; /* Saca el elemento del flujo y lo fija a la ventana */
    width: 60px;     /* Ancho estandarizado para pulgares */
    height: 60px;    /* Alto igual al ancho */
    bottom: 30px;    /* Margen inferior desde el borde de la pantalla */
    right: 30px;     /* Margen derecho desde el borde de la pantalla */
    z-index: 9999;   /* Capa superior: asegura que flote sobre todo lo demás */
}

/* La imagen dentro del botón */
.btn-wsp img {
    width: 100%;     /* Ocupa el 100% del contenedor padre (.btn-wsp) */
    height: 100%;    
    transition: transform 0.3s ease; /* Suavizado de animación */
}

/* Efecto al pasar el mouse (Hover) */
.btn-wsp:hover img {
    transform: scale(1.1); /* Efecto de "latido" o zoom leve */
}


/* ===== END OF STYLE.CSS ===== */