/* Nueva Paleta de Colores: Limpia, Profesional, Alta Visibilidad */
:root {
    --bg-light: #FFFFFF;      /* Fondo principal: Blanco */
    --bg-section-light: #F8F9FA; /* Fondo para secciones alternas: Gris muy claro */
    --text-dark: #343A40;    /* Color de texto principal: Charcoal */
    --primary-blue: #007BFF; /* Azul Brillante (Accent/Action): Limpio y Profesional */
    --secondary-purple: #6F42C1; /* Violeta Profundo (Secondary Accent/Arte): Sofisticado */
    --border-color: #DEE2E6; /* Borde gris claro */
    --white: #ffffff;
}

/* Base y Tipografía */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); 
    background-color: var(--bg-light); 
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Montserrat', 'Arial Black', sans-serif;
    font-weight: 900;
    color: var(--text-dark); 
    text-transform: uppercase;
}

h2 {
    color: var(--primary-blue);
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
}

/* Botones (Llamadas a la Acción) */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3; 
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.btn-nav {
    background-color: var(--secondary-purple);
    color: var(--white);
    padding: 8px 15px;
}

.btn-nav:hover {
    background-color: #5b36a1;
}

/* Botón CTA dentro de la caja de servicios */
.btn-cta {
    background-color: var(--secondary-purple);
    color: var(--white);
    font-size: 1em;
}

.btn-cta:hover {
    background-color: #5b36a1;
}


/* 01. Header y Navegación */
#header {
    background-color: var(--bg-light); 
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 0 0;
}

#header .logo img {
    height: 100px;
}

#header nav a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9em;
    transition: color 0.2s;
}

#header nav a:hover {
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--text-dark);
}

/* 02. Sección HERO */
.hero {
    background: url('../images/hero_bg.png') no-repeat center center/cover; 
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65); 
}

.hero .container {
    z-index: 1;
}

.hero h1, .hero .subtitle {
    color: var(--white); 
}

.hero .subtitle {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #b3d9ff; 
}

/* 03. Secciones de Contenido */
.section {
    padding: 80px 0;
    position: relative;
}

.dark {
    background-color: var(--bg-section-light); 
    color: var(--text-dark);
}

.white {
    background-color: var(--bg-light); 
    color: var(--text-dark);
}

.white h2, .white h3 {
    color: var(--primary-blue);
    background: none;
    -webkit-text-fill-color: inherit;
}

.intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de Servicios */
.service-grid {
    display: grid;
    /* Ajuste para 3 columnas en desktop y autoajuste para menos */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-top: 5px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    border-top-color: var(--secondary-purple);
}

.service-item h3 {
    font-size: 1.3em;
    margin-top: 0;
    color: var(--primary-blue);
}

.tag {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.8em;
    background-color: var(--secondary-purple);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 700;
}

/* Estilos para la Caja CTA */
.service-cta-box {
    background-color: var(--secondary-purple);
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    border-top-color: var(--primary-blue);
}

.service-cta-box h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.service-cta-box p {
    color: var(--gray-light);
    margin-bottom: 20px;
}

/* 04. Proceso (Sin Cambios) */
.process-steps {
    display: flex;
    gap: 40px;
    text-align: center;
    margin-top: 60px;
}

.process-steps .step {
    flex: 1;
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.process-steps .step:last-child {
    border-right: none;
}

.white .step h3 {
    color: var(--secondary-purple);
}

/* 05. Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer; /* Indica que es clickable */
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.9); 
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h4 {
    margin-top: 0;
    color: var(--white);
    font-size: 1.4em;
}

.overlay p {
    font-size: 0.9em;
}

/* LIGHTBOX STYLES */
.lightbox-modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    transition: opacity 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

@keyframes zoom {
    from {transform: scale(0.1)} 
    to {transform: scale(1)}
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
}

/* 06. Contacto (Sin Cambios) */
.contact-section {
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info p {
    font-size: 1.1em;
    margin: 15px 0;
    color: var(--text-dark);
}

.contact-info a {
    color: var(--secondary-purple);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* 07. Footer */
footer {
    background-color: var(--text-dark); /* Fondo oscuro */
    color: var(--white); 
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

footer p {
    color: var(--white); /* Asegura que el párrafo legal sea blanco */
    margin: 5px 0;
}

footer a {
    color: var(--primary-blue);
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary-purple);
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    /* Estilos para los íconos de redes sociales (Font Awesome) */
    font-size: 1.6em; /* Tamaño ajustado para iconos de Font Awesome */
    text-decoration: none;
    margin: 0 10px;
    color: var(--white); /* El color base de los íconos es blanco */
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary-blue); /* Color de hover azul */
}

/* Media Queries remain the same */

@media (max-width: 900px) {
    .process-steps {
        flex-direction: column;
    }
    .process-steps .step {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 30px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-content {
        width: 95%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2em;
    }
    #header .container {
        flex-wrap: wrap;
    }
    #header nav {
        width: 100%;
        display: none;
        flex-direction: column;
        text-align: center;
        padding-bottom: 10px;
    }
    #header nav.active {
        display: flex;
    }
    #header nav a {
        margin: 10px 0;
    }
    .menu-toggle {
        display: block;
    }
}