/* Variables CSS para colores CMYK y modos */
:root {
    --cmyk-cyan: #009FE3;
    --cmyk-magenta: #E6007E;
    --cmyk-yellow: #FFF100;
    --cmyk-black: #1a1a1a;
    --cmyk-cyan-desaturated: #57d2ff;
    --cmyk-magenta-desaturated: #ff57c0;
    --cmyk-yellow-desaturated: #fff557;


    /* Modo Claro */
    --background-color: #fee440;
    --text-color: var(--cmyk-black);
    --header-bg: #ffffff;
    --footer-bg: var(--cmyk-black);
    --footer-text: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: #e0e0e0;
    --button-bg: var(--cmyk-cyan);
    --button-text: #ffffff;
    --link-color: var(--cmyk-cyan);
    --link-hover-color: var(--cmyk-magenta);
    --section-bg-light: transparent;
    --section-bg-dark: transparent;
    --accordion-header-bg: #eee;
    --accordion-border: #ddd;
    --h1-font-size: 4em;
    --h2-font-size: 1.5em;
}

/* Modo Oscuro */
/* Modo Oscuro - Asegúrate de que los colores sean consistentes */
body.dark-mode {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    /* ¡Cambio Clave! Texto blanco puro para contraste */
    --header-bg: #2a2a2a;
    --footer-bg: #101010;
    --footer-text: #cccccc;
    --card-bg: rgba(51, 51, 51, 0.8);
    --card-border: #444444;
    --button-bg: var(--cmyk-magenta);
    --button-text: #ffffff;
    --link-color: var(--cmyk-yellow);
    --link-hover-color: var(--cmyk-cyan);
    --section-bg-light: transparent;
    --section-bg-dark: transparent;
    --accordion-header-bg: #3a3a3a;
    --accordion-border: #555;
    --cmyk-cyan: #66c2ff;
    --cmyk-magenta: #ff66c2;
    --cmyk-yellow: #fff866;
    --cmyk-black: #ffffff;
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: var(--base-font-size);
    /* Usa la variable base */
    transition: background-color 0.3s ease, color 0.3s ease, font-size 0.3s ease;
}

/* --- ESTILOS DEL NUEVO FONDO ANIMADO EN SVG --- */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.out-top {
    animation: rotate 20s linear infinite;
    transform-origin: 13px 25px;
}

.in-top {
    animation: rotate 10s linear infinite;
    transform-origin: 13px 25px;
}

.out-bottom {
    animation: rotate 25s linear infinite;
    transform-origin: 84px 93px;
}

.in-bottom {
    animation: rotate 15s linear infinite;
    transform-origin: 84px 93px;
}

svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* ----------------------------------------------- */

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

/* Typography */
h1 {
    font-size: var(--h1-font-size);
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #ffffff;
    /* Color del H1 en Hero siempre blanco para contraste */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Sombra para mejor legibilidad en hero */
    transition: font-size 0.3s ease;
}

h2 {
    font-size: var(--h2-font-size);
    font-weight: 600;
    margin-bottom: 1em;
    text-align: center;
    color: var(--text-color);
    transition: font-size 0.3s ease;
}

h3 {
    font-size: var(--h3-font-size);
    font-weight: 500;
    margin-bottom: 0.8em;
    color: var(--text-color);
    transition: font-size 0.3s ease;
}

p {
    font-size: var(--p-font-size);
    margin-bottom: 1em;
    transition: font-size 0.3s ease;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 2px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;
}

/* Estilos para el logo que cambia según el modo */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 100%;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo .logo-oscuro {
    display: none;
}

body.dark-mode .logo .logo-claro {
    display: none;
}

body.dark-mode .logo .logo-oscuro {
    display: block;
}


.main-nav .nav-list {
    list-style: none;
    display: flex;
}

.main-nav .nav-list li {
    position: relative;
    margin-left: 30px;
}

.main-nav .nav-list a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-nav .nav-list a:hover {
    color: var(--cmyk-magenta);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--header-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 180px;
    top: 100%;
    left: 0;
    border-radius: 5px;
    overflow: hidden;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px 15px;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--section-bg-light);
    color: var(--cmyk-magenta);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Espacio entre los botones */
}

.header-actions button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-actions button:hover {
    color: var(--cmyk-yellow);
}

.whatsapp-button {
    position: fixed;
    /* Para que el botón se quede fijo en la pantalla */
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    /* Color verde de WhatsApp */
    color: white;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /* Para que esté por encima de otros elementos */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    /* Un tono más oscuro al pasar el ratón */
}

.whatsapp-button i {
    font-size: 1.5em;
}


.hamburger-menu {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    /* Esto ya lo tienes, pero es clave */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Agrega esta regla para asegurar que los párrafos dentro del banner también sean blancos */
.hero-section p {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* ... el resto de tu código para el banner ... */

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Usa un color que combine con tu paleta, por ejemplo, un azul oscuro o un gris. */
    background-color: rgba(0, 0, 0, 0.5);
    /* Overlay negro semitransparente */
}

/* Asegura que el contenido del banner esté por encima del overlay */
.hero-content {
    position: relative;
    z-index: 2;
    /* Mayor que el z-index del ::before */
    padding: 20px;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

@keyframes animated-border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animación para el texto del Hero */
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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


.scroll-down-arrow {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2em;
    color: var(--cmyk-yellow);
    animation: bounce 2s infinite;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Section Common Styles */
section {
    padding: 50px 0;
    /* AUMENTADO EL ESPACIO VERTICAL */
    transition: background-color 0.3s ease;
}

section:nth-of-type(even) {
    background-color: transparent;
}

section:nth-of-type(odd) {
    background-color: transparent;
}

.section-title {
    margin: 60px auto;
    /* CAMBIO REALIZADO AQUÍ: Aplica 60px de margen arriba y abajo */
    position: relative;
    display: block;
    padding: 8px 30px;
    border-radius: 50px;
    background: linear-gradient(90deg,
            var(--cmyk-cyan-desaturated),
            var(--cmyk-magenta-desaturated),
            var(--cmyk-yellow-desaturated));
    background-size: 300% 100%;
    animation: title-gradient-animation 5s ease infinite;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
}

.section-title::after {
    content: none;
}

@keyframes title-gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Rubros Section */
.rubros-section .service-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Cambio clave: Forzar 2x2 */
    gap: 2rem;
    padding-top: 2rem;
}

/* Estilos para cada tarjeta de servicio */
.service-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: var(--cmyk-cyan);
    color: white;
}

.service-card:hover .card-text h3,
.service-card:hover .card-text p,
.service-card:hover .rubro-icon-claro,
.service-card:hover .rubro-icon-oscuro {
    color: white;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
}

/* Contenedor para el texto */
.card-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.card-text h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.card-text p {
    font-size: 0.9em;
    margin-bottom: 0;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* Estilos para el ícono dentro de la tarjeta */
.service-card img {
    width: 60px;
    /* Tamaño del ícono */
    height: 60px;
    flex-shrink: 0;
    /* Evita que el ícono se encoja */
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* Oculta los íconos de modo oscuro en modo claro y viceversa */
body:not(.dark-mode) .service-card .rubro-icon-oscuro {
    display: none;
}

body.dark-mode .service-card .rubro-icon-claro {
    display: none;
}




/* Rubros Section */
.rubros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Cards de Rubros */
.rubro-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    min-height: 0;
    aspect-ratio: 1 / 1;
}

.rubro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--cmyk-cyan);
}

.rubro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cmyk-cyan);
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.5s ease-in-out;
    z-index: 1;
}

.rubro-card:hover::before {
    clip-path: circle(100% at 50% 50%);
}

.rubro-card h3,
.rubro-card .rubro-icon-claro,
.rubro-card .rubro-icon-oscuro {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.rubro-card:hover h3 {
    color: var(--button-text);
    /* ¡Cambio! Usa la variable del botón para el texto hover */
}

/* El resto del código de esta sección ya está correcto */

/* Estilos para los íconos de rubros que cambian según el modo */
.rubro-card .rubro-icon-claro,
.rubro-card .rubro-icon-oscuro {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.1));
    transition: opacity 0.3s ease;
}

.rubro-card .rubro-icon-oscuro {
    display: none;
}

body.dark-mode .rubro-card .rubro-icon-claro {
    display: none;
}

body.dark-mode .rubro-card .rubro-icon-oscuro {
    display: block;
}

/* CSS para el carrusel de logos sin JS (Quienes Confían) */
.logo-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    background-color: transparent;
}

.logo-carousel-track {
    display: inline-block;
    animation: scroll-logos 30s linear infinite;
}

.logo-carousel-track:hover {
    animation-play-state: paused;
}

.logo-item {
    display: inline-block;
    margin: 0 40px;
    vertical-align: middle;
}

.logo-item img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Definición de la animación */
@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Estilos para el Carrusel de Testimonios (Sin Swiper.js) */
/* === Carrusel de Testimonios === */
.testimonial-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-carousel-track {
    position: relative;
    /* necesario para superponer las cards */
}

.testimonial-card {
    opacity: 0;
    /* oculto por defecto */
    position: absolute;
    /* se superponen en el mismo lugar */
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: opacity 1s ease;
    /* fade */
}

/* Testimonio visible */
.testimonial-card.active {
    opacity: 1;
    position: relative;
    /* el activo se ubica en el flujo normal */
}

.testimonial-card .comment {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-color);
}


.testimonial-card .author {
    font-weight: bold;
    color: var(--cmyk-magenta);
}

/* Eliminados: .carousel-button, .carousel-pagination, .carousel-pagination-dot */
/* Estos estilos ya no son necesarios porque los elementos HTML han sido eliminados */

/* Gallery Section (Nuestros Trabajos) - Ahora centrada */
.gallery-container {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}


/* Contact Section */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    font-size: 1em;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cmyk-cyan);
}

.submit-button {
    display: inline-block;
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background-color: var(--link-hover-color);
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0;
    text-align: center;
    transition: background-color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--footer-text);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--cmyk-yellow);
}



/* --- Nuevos Estilos para Animaciones con Scroll --- */

/* Estilo base para elementos que se animarán */
[data-scroll] {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.5, 0, 0, 1), transform 1s cubic-bezier(0.5, 0, 0, 1);
}

/* Animación de entrada por desvanecimiento y subida */
[data-scroll="fade-up"].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll="fade-up"] {
    transform: translateY(20px);
}

/* Estilos para el contenedor de texto en la sección de "Nosotros" */
.about-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    /* Espaciado interno para el texto */
    border-radius: 20px;
    /* Bordes redondeados */
    background-color: rgba(255, 255, 255, 0.9);
    /* Fondo blanco semi-transparente para alto contraste */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Sombra sutil para darle profundidad */
    backdrop-filter: blur(5px);
    /* Efecto de desenfoque para que el fondo sea menos intrusivo */
}

.about-text h3 {
    color: var(--cmyk-magenta);
    /* Color destacado para el título */
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    color: var(--cmyk-black);
    /* Color de texto principal, con buen contraste */
    line-height: 1.8;
    /* Aumenta el espaciado entre líneas para una lectura más cómoda */
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Estilos para el modo oscuro */
body.dark-mode .about-text {
    background-color: rgba(26, 26, 26, 0.9);
    /* Fondo negro semi-transparente */
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

body.dark-mode .about-text h3 {
    color: var(--cmyk-yellow);
    /* Color destacado para el título en modo oscuro */
}

body.dark-mode .about-text p {
    color: white;
}



.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mission-vision-section {
    padding: 60px 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.vision-card,
.mission-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.vision-card h3,
.mission-card h3 {
    color: var(--cmyk-magenta);
    font-size: 1.5em;
    margin-top: 15px;
}

.vision-card .icon-color,
.mission-card .icon-color {
    color: var(--cmyk-cyan);
    font-size: 3em;
}


/* --- Estilos para la Página de Contacto --- */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
    align-items: flex-start;
}

.contact-form-container,
.contact-info {
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info .section-title {
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-color);
}

.contact-details li i {
    font-size: 1.5em;
    color: var(--cmyk-cyan);
    min-width: 25px;
}

.contact-unified-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-unified-container .contact-form-container,
.contact-unified-container .contact-info {
    /* Restablece cualquier estilo de ancho que pueda estar afectando */
    width: 100%;
    box-shadow: none;
    /* Elimina la sombra de las sub-cajas */
    background-color: transparent;
    /* Hace que el fondo sea transparente para que se vea el del contenedor principal */
    border: none;
    padding: 0;
}

.contact-form-container .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Esto centrará todo el contenido horizontalmente */
    text-align: center;
}

.contact-form-container .section-title .icon-color {
    margin-right: 10px;
    /* Esto agrega espacio entre el ícono y el texto */
}


.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 2px solid var(--cmyk-cyan);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.social-links-contact {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.social-links-contact a {
    color: var(--cmyk-cyan);
    font-size: 1.8em;
    transition: color 0.3s ease;
}

.social-links-contact a:hover {
    color: var(--cmyk-magenta);
}



/* --- Estilos para los íconos de servicio de la página principal --- */
.service-card .service-icon {
    position: absolute;
    top: 0.5rem;
    right: 2rem;
    font-size: 3.5em;
    /* Tamaño del ícono, ajusta si lo necesitas */
    color: var(--cmyk-cyan);
    z-index: 2;
    transition: transform 0.3s ease;
}

/*
 * Selector: Aplica estilos a los elementos que tienen las clases 'service-detail-section', 'container' y 'animated'.
 */
.service-detail-section.container.animated {
    /* Layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


    /* Apariencia */
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* igual que .testimonial-card */
    min-height: 200px;
    padding: 30px;
    text-align: center;
    color: var(--text-color);

    /* Transiciones */
    transition: background-color 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease,
        opacity 1s ease;
    /* fade como testimonios */
}

.service-detail-section.container {
    margin-bottom: 40px;
    /* separa los recuadros entre sí */
}

.service-detail-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Estilos de Lightbox (modal) */
.lightbox {
    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);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 12px;
    color: white;
    font-size: 2em;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: background 0.3s;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* --- Estilos para la galería desplegable --- */
/* Contenedor de la mini-galería */
.mini-gallery {
    margin-top: 40px;
}

/* Título de la galería */
.mini-gallery h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* --- Estilos para la galería desplegable (FAQ) --- */
/* Ítem de la FAQ/Galería */
.faq-item {
    border: 1px solid var(--card-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

/* Botón que despliega la galería/respuesta */
/* Acordeón de preguntas frecuentes */
.faq-question {
    background: var(--accordion-header-bg);
    /* ¡Cambio! Usa la variable del header */
    color: var(--text-color);
    /* ¡Cambio! Usa la variable del texto principal */
    padding: 12px 20px;
    border: 1px solid var(--accordion-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--link-hover-color);
    /* Puedes usar esta variable para un color de hover que cambie */
    color: var(--text-color);
}

/* Contenedor de la respuesta */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--card-bg);
    /* ¡Cambio! Usa la variable del fondo de la tarjeta */
    color: var(--text-color);
    /* ¡Cambio! Usa la variable del texto */
    backdrop-filter: blur(5px);
}

/* Clase que se activa con JavaScript para desplegar el contenido */
.faq-answer.active {
    max-height: 500px;
    /* Suficiente altura para el contenido */
    padding: 15px;
    transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

/* Estilos para el texto dentro del faq-answer */
.faq-answer p {
    padding: 18px 0;
}

/* Contenedor de miniaturas */
.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery-thumbs .thumb {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-thumbs .thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Estilos para el contenedor del portafolio que tendrá el scroll */
.web-portfolio-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos pasen a la siguiente línea */
    justify-content: space-between; /* Distribuye el espacio entre los logos */
    max-height: 400px; /* Define la altura máxima para que el scroll se active */
    overflow-y: scroll; /* Agrega un deslizador vertical si el contenido excede la altura */
    padding-right: 15px; /* Deja espacio para la barra de scroll */
}

/* Estilos para cada enlace de logo */
.web-link {
    display: flex; /* Utiliza flexbox para alinear el logo y el texto */
    flex-direction: column; /* Coloca el logo arriba del texto */
    align-items: center; /* Centra los elementos */
    flex: 1 0 48%; /* Ocupa casi la mitad del ancho del contenedor */
    max-width: 48%;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}

.web-link:hover {
    transform: translateY(-5px); /* Pequeña animación al pasar el mouse */
}

/* Estilos para los logos */
.web-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.web-name {
    width: 100%;
    padding: 5px 0;
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    color: var(--text-color);
    background-color: var(--card-bg);
}

/* Estilo para el menú desplegable del formulario */
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background-color: var(--header-bg);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.contact-form select:focus {
    outline: none;
    border-color: var(--link-hover-color);
    box-shadow: 0 0 0 2px rgba(230, 0, 126, 0.2);
}

.contact-form select:hover {
    cursor: pointer;
}

/* --- Estilos para los íconos de servicio --- */
.service-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-content: center;
}

.service-list ul li {
    display: flex;
    flex-direction: column;
    /* Apila el ícono y el texto */
    align-items: center;
    /* Centra los elementos horizontalmente */
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    transition: transform 0.3s ease;
}

.service-list ul li:hover {
    transform: translateY(-5px);
    /* Efecto de elevación */
}

.service-list ul li i {
    font-size: 3em;
    color: var(--cmyk-cyan);
    margin-bottom: 10px;
    /* Espacio entre el ícono y el texto */
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-list ul li:hover i {
    transform: scale(1.1);
    color: var(--cmyk-magenta);
}

.service-list ul li span {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--text-color);
    /* Se adapta al modo claro/oscuro */
}


/* --- Mejora para el botón de Contacto en la página de Servicios --- */
.service-cta-faq .cta-button {
    /* Aumenta el tamaño del botón */
    padding: 5px 10px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-align: center;

    /* Colores y transiciones */
    background-color: var(--cmyk-magenta);
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-cta-faq .cta-button:hover {
    background-color: var(--cmyk-cyan);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Animación para el botón, para que se mueva sutilmente */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
}

.service-cta-faq .cta-button {
    animation: pulse 2s infinite ease-in-out;
}

/* Ajustes para el modo oscuro */
body.dark-mode .service-cta-faq .cta-button {
    background-color: var(--cmyk-yellow);
    color: var(--cmyk-black);
}

body.dark-mode .service-cta-faq .cta-button:hover {
    background-color: var(--cmyk-cyan);
    color: white;
}

/* Estilos para los íconos dentro del botón de contacto */
.service-cta-faq .cta-button .button-icon-left {
    margin-right: 10px;
    /* Espacio a la derecha del ícono izquierdo */
    font-size: 1em;
    /* Asegura que el ícono tenga el mismo tamaño que el texto */
    vertical-align: middle;
    /* Alinea verticalmente con el texto */
}

.service-cta-faq .cta-button .button-icon-right {
    margin-left: 10px;
    /* Espacio a la izquierda del ícono derecho */
    font-size: 1em;
    /* Asegura que el ícono tenga el mismo tamaño que el texto */
    vertical-align: middle;
    /* Alinea verticalmente con el texto */
}

/* Ajustes para el tamaño del ícono en hover si se desea un efecto */
.service-cta-faq .cta-button:hover .button-icon-right {
    transform: translateX(5px);
    /* Pequeño movimiento hacia la derecha al pasar el ratón */
    transition: transform 0.3s ease;
}

/* Estilos para la página Nosotros */
.about-section {
    padding: 60px 0;
    /* Nuevo estilo para dar un fondo diferente */
    background-color: var(--card-bg);
}

/* Animación para la imagen de la oficina */
@keyframes imageFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: translateY(-5px) rotate(-1deg);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

    100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* Aplicar la nueva animación */
    animation: imageFloat 4s ease-in-out infinite;
}



/* Estilos para el contenedor de texto en la sección de "Nosotros" */
.about-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    /* Espaciado interno para el texto */
    border-radius: 20px;
    /* Bordes redondeados */
    background-color: rgba(255, 255, 255, 0.9);
    /* Fondo blanco semi-transparente para alto contraste */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Sombra sutil para darle profundidad */
    backdrop-filter: blur(5px);
    /* Efecto de desenfoque para que el fondo sea menos intrusivo */
}

.about-text h3 {
    color: var(--cmyk-magenta);
    /* Color destacado para el título */
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    color: var(--cmyk-black);
    /* Color de texto principal, con buen contraste */
    line-height: 1.8;
    /* Aumenta el espaciado entre líneas para una lectura más cómoda */
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Estilos para el modo oscuro */
body.dark-mode .about-text {
    background-color: rgba(26, 26, 26, 0.9);
    /* Fondo negro semi-transparente */
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

body.dark-mode .about-text h3 {
    color: var(--cmyk-yellow);
    /* Color destacado para el título en modo oscuro */
}

body.dark-mode .about-text p {
    color: white;
}

/* --- Estilos para la sección de íconos de servicios --- */
#galeria {
    position: relative;
    /* Esencial para el pseudo-elemento */
    z-index: 1;
    /* Para que esté por encima del fondo de la página */
    padding: 60px 20px;
    /* Ajusta el padding para que el contenido no se pegue a los bordes */
    margin: 40px auto;
    /* Centra la sección y le da margen */
    max-width: 1200px;
}



/* Estilos de la lista que ya tenías */
.service-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columnas */
    gap: 30px;
    justify-content: center;
}

.service-list ul li {
    display: flex;
    flex-direction: column;
    /* Apila el ícono y el texto */
    align-items: center;
    /* Centra los elementos horizontalmente */
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    transition: transform 0.3s ease;
}

.service-list ul li:hover {
    transform: translateY(-5px);
    /* Efecto de elevación */
}

.service-list ul li i {
    font-size: 3em;
    color: var(--cmyk-cyan);
    margin-bottom: 10px;
    /* Espacio entre el ícono y el texto */
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-list ul li:hover i {
    transform: scale(1.1);
    color: var(--cmyk-magenta);
}

.service-list ul li span {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--text-color);
}


/* Estilos para el banner de contacto */
.section-title-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.section-title-link .section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
}

.section-title-link .section-title i {
    font-size: 2em;
    /* Tamaño del icono */
    margin-bottom: 5px;
    /* Espacio entre el icono y el texto */
}

/* --- FOOTER STYLES --- */

footer {
    padding: 30px 0;
    background-color: var(--color-background-tertiary);
    /* Color de fondo del footer */
    color: var(--color-text-inverted);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    /* Por defecto apilados en móvil */
    align-items: center;
    gap: 15px;
}
/*
 * New CSS rules for the social media icons next to the gallery title.
 */
.gallery-header {
    display: flex; /* Use Flexbox for side-by-side alignment */
    align-items: center; /* Vertically centers the items */
    justify-content: space-between; /* Puts space between the title and the icons */
    margin-bottom: 10px;
}

.gallery-header h4 {
    margin-bottom: 0; /* Remove the bottom margin from the title to align it correctly */
}

.gallery-header .social-icons {
    display: flex;
    gap: 15px; /* Adds space between the icons */
}

.gallery-header .social-icons a {
    color: var(--text-color); /* Inherit the text color from the body */
    font-size: 1.5em; /* Adjust the icon size */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.gallery-header .social-icons a:hover {
    color: var(--cmyk-magenta); /* Change color on hover to your magenta variable */
}

/* You might need to adjust the margin on the mini-gallery container if the new layout causes spacing issues */
.mini-gallery {
    margin-top: 40px;
}

/* ========================================================== */
/* Media Queries (Responsive Design)                          */
/* ========================================================== */

/* Estilos para pantallas de hasta 992px (tablets y laptops) */
@media (max-width: 992px) {

    /* Menú Hamburguesa */
    .main-nav .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .main-nav .nav-list.active {
        display: flex;
    }

    .hamburger-menu {
        display: block;
    }

    .rubros-section .service-mosaic {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .service-card img {
        margin-bottom: 1rem;
    }

    .card-text {
        margin-right: 0;
    }
}

/* Estilos para pantallas de hasta 768px (tablets y móviles) */
@media (max-width: 768px) {

    /* Ajustes generales */
    .container {
        padding: 0 15px;
    }

    .hero-section {
        min-height: 450px;
        padding: 80px 20px;
    }

    .hero-content p {
        font-size: 1em;
    }

    .section-title {
        font-size: 2.2em;
        padding: 6px 20px;
        margin-bottom: 20px;
    }

    /* Ajustes específicos para la sección de servicios integrales */
    .rubros-section .service-mosaic {
        grid-template-columns: 1fr;
        /* Una sola columna en móvil */
    }

    .rubros-section .service-card {
        height: 200px;
        flex-direction: row;
        /* Apila los elementos horizontalmente */
        align-items: center;
        text-align: left;
        padding: 0;
    }

    .rubros-section .service-icon {
        font-size: 3rem;
        padding: 0 20px;
    }

    .rubros-section .card-overlay {
        position: relative;
        opacity: 1;
        background: none;
        box-shadow: none;
        padding: 10px;
        display: block;
        height: auto;
    }

    .rubros-section .card-overlay h3 {
        margin: 0;
        transform: translateY(-30px);
    }



    .rubros-section .service-card:hover {
        transform: none;
        /* Desactiva el efecto de elevación en móvil */
    }

    /* Mantenemos el estilo de la cuadrícula de iconos de "Nuestros Servicios Gráficos" */
    .service-list ul {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas en móvil */
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .faq-question {
        font-size: 0.95em;
        padding: 15px 18px;
    }

    /* Carrusel de logos */
    .logo-item {
        margin: 0 25px;
    }

    .logo-item img {
        max-width: 100px;
    }

    .logo-carousel-track {
        animation-duration: 20s;
    }

    .logo-carousel::before,
    .logo-carousel::after {
        width: 50px;
    }

    /* Sección Nosotros */
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    /* Sección de Contacto */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-container,
    .contact-info {
        padding: 20px;
    }

    .section-title-link .section-title {
        flex-direction: column;
        font-size: 2em;
        gap: 5px;
    }

    #galeria {
        padding: 40px 15px;
    }

    .footer-content p {
        margin: 0;
        font-size: 0.9rem;
    }

    /* Estilo para los íconos sociales */
    .social-links a {
        color: var(--color-text-inverted);
        text-decoration: none;
        margin: 0 10px;
        transition: color 0.3s ease;
    }

    .social-links a:hover {
        color: var(--cmyk-yellow);
        /* Color de hover para contraste */
    }
     .contact-unified-container {
        padding: 20px;
    }

    .map-container {
        height: 150px;
    }
      /* Reduce el espacio entre cada campo del formulario */
    .form-group {
        margin-bottom: 12px;
    }
}


/* Estilos para pantallas de hasta 600px */
@media (max-width: 600px) {
    .whatsapp-button span {
        display: none;
    }

    .whatsapp-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .whatsapp-button i {
        font-size: 2em;
    }
}

/* Estilos para pantallas de hasta 480px (móviles) */
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .header-actions button {
        margin-left: 10px;
        font-size: 1.1em;
    }

    .hero-section {
        min-height: 400px;
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: var(--h1-font-size);
    }

    .hero-content p {
        font-size: 0.95em;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .rubro-card {
        padding: 20px;
    }

    .rubro-card img {
        width: 60px;
        height: 60px;
    }

    .testimonial-card {
        padding: 20px;
        min-height: 180px;
    }

    .testimonial-card .comment {
        font-size: 1em;
    }

    .faq-question {
        font-size: 0.9em;
    }

    .contact-form-container {
        padding: 10px;
    }

    .about-image {
        margin-left: 30px;
    }

    .about-image img {
        animation: none;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: var(--h1-font-size);
    }
}