:root {
    --bg-color: #ffffff;
    --bg-secondary: #f9f9f9;
    --text-main: #1a1a1a;
    --text-light: #666666;
    --accent: #a39e8c;
    /* Beige Dorado */
    --accent-dark: #8c8775;
    --black: #000000;
    --white: #ffffff;
    --header-height: 100px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Fuentes Variables */
    --font-titles: 'DM Serif Text', serif;
    --font-body: 'Merriweather Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* --- SCROLLBAR MINIMALISTA --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent);
}

body {
    font-family: var(--font-body);
    /* Aplicada fuente para textos generales */
    background-color: transparent; /* Transparente para ver las partículas */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    /* Merriweather Sans se ve muy bien en light/regular */
}

/* Regla global para Títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titles);
    font-weight: 400;
    /* DM Serif Text suele ser bold por defecto, ajustamos si es necesario */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
    margin: 0 auto;
}

/* --- PARTICLES BACKGROUND --- */
#particles-js {
    position: fixed; /* Fijo para que cubra todo al hacer scroll */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #ffffff; /* El fondo blanco base */
    background-image: url("");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    z-index: -1; /* Detrás de todo el contenido */
}

#particles-js canvas {
    display: block;
    vertical-align: bottom;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.section {
    padding: 50px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.section-reduced {
    padding: 15px 0 100px;
}

@media (max-width: 768px) {
    .section-reduced {
        padding: 30px 0 100px;
    }
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    /* Botones en sans-serif para legibilidad */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--black);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}



/* --- HEADER STICKY --- */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #1a1a1a;
    z-index: 1000;
    border-bottom: none;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
    position: relative; /* Necesario para centrar el logo en móvil */
}

.hamburger {
    display: none; /* Oculto por defecto en PC */
}

.logo-container {
    justify-self: center;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    max-height: 70px;
    width: auto;
    display: block;
    filter: invert(1);
}

.logo-container a {
    cursor: pointer;
}

/* --- DESKTOP NAVIGATION --- */
.desktop-nav {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    font-family: var(--font-titles); /* Misma fuente elegante del sidebar */
    font-size: 1.1rem;
    color: #ffffff; /* Un gris claro elegante, no blanco puro */
    position: relative;
    letter-spacing: 1px;
    transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--accent); /* Color dorado al pasar el mouse */
}

/* Pequeña línea animada debajo de los links en PC */
.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

/* --- SOCIAL DROPDOWN (DESKTOP) --- */
.social-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.social-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px); /* Empieza un poco más abajo */
    background-color: #1a1a1a;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid #333;
}

.social-menu-item:hover .social-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px); /* Sube suavemente a su posición */
}

/* Estilos específicos para los iconos dentro del dropdown (para no heredar la línea de abajo) */
.desktop-nav .social-dropdown a {
    font-size: 1.3rem;
    color: #ffffff;
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}

.desktop-nav .social-dropdown a::after {
    display: none; /* Quitamos la línea subrayada de los links normales */
}

.desktop-nav .social-dropdown a:hover {
    color: var(--accent);
    transform: translateY(-3px); /* Pequeño saltito al pasar el mouse */
}

/* --- MOBILE HEADER ADJUSTMENTS (Max 768px) --- */
@media (max-width: 768px) {
    .desktop-nav {
        display: none; /* Ocultar menú de texto en móvil */
    }

    .hamburger {
        display: block; /* Mostrar hamburguesa en móvil */
        cursor: pointer;
        font-size: 1.8rem;
        color: var(--white);
        background: none;
        border: none;
        z-index: 1001;
    }

    /* Centrar el logo absolutamente en móvil */
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Alinear hamburguesa a la izquierda */
    .header-content {
        justify-content: flex-start; 
    }
}

/* --- SIDEBAR NAVIGATION (Slide-out) --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background-color: #1a1a1a;
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    /* Allow scrolling if content overflows */
}

.sidebar.active {
    transform: translateX(0);
}

/* Mobile adjustments for sidebar */
@media (max-width: 768px) {
    .sidebar {
        height: calc(100vh - 20px);
        padding-bottom: 60px;
        /* Extra padding for mobile devices to ensure footer is visible */
        max-height: calc(100vh - 20px);
    }
}

.close-btn {
    align-self: flex-end;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 40px;
    color: var(--white);
}

.nav-links li {
    margin-bottom: 25px;
}

.nav-links a {
    font-family: var(--font-titles);
    /* Usamos la fuente Serif para el menú para elegancia */
    font-size: 1.8rem;
    /* Un poco más grande para DM Serif */
    color: var(--white);
    position: relative;
}

.nav-links a.active {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 10px;
    font-style: italic;
    font-weight: bold;
    border-left: 3px solid var(--accent);
}

.nav-links a:hover {
    color: var(--accent);
    padding-left: 10px;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.sidebar-socials {
    display: flex;
    justify-content: space-around;
}

.sidebar-socials a {
    flex: 1;
    text-align: center;
    font-size: 1.8rem;
    color: var(--white);
}

.sidebar-socials a:hover {
    color: var(--accent);
}

/* --- SCROLL ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Estilo para títulos de página --- */
.page-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

/* --- PAGE LOGIC (SPA View Switching) --- */
.page-view {
    display: none;
    animation: fadeIn 0.6s ease;
    transform: translateZ(0); /* Force hardware acceleration */
}

.page-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HERO SECTION (Index) --- */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    overflow: hidden;
}

.hero-bg-animate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Más alto que el contenedor para permitir movimiento */
    background-image: url('media/inicio/fondo-inicio.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Aquí está la magia: animación suave e infinita */
    animation: scrollBg 15s linear infinite alternate;
}

/* Imagen vertical para móviles */
@media (max-width: 768px) {
    .hero-bg-animate {
        background-image: url('media/inicio/fondo-inicio-movil.webp');
    }
}

/* Capa oscura para leer el texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
    z-index: 2;
}

/* Contenido del Hero (Texto) */
.hero .container {
    position: relative;
    z-index: 3;
    /* Asegura que el texto esté encima de todo */
}

/* Definición de la animación Minimalista */
@keyframes scrollBg {
    0% {
        transform: translateY(0);
    }

    100% {
        /* Se mueve sutilmente hacia arriba */
        transform: translateY(-10%);
    }
}

.hero h1 {
    font-family: var(--font-titles);
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h2 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ddd;
    letter-spacing: 4px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

/* --- ABOUT (Nosotros) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.about-text {
    margin-bottom: 10px;
    color: var(--text-main);
    text-align: center;
}

@media (max-width: 768px) {
    .about-text {
        text-align: justify;
    }
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-card {
    background: var(--bg-secondary);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    min-height: 280px;
}

.service-card:hover, .service-card.active {
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: transparent;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.service-icon .material-symbols-outlined {
    font-size: 4rem;
    vertical-align: middle;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- SERVICE MODAL (DINÁMICO & RESPONSIVO) --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 10px;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    z-index: 10;
    transition: 0.3s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.modal-close-btn:hover {
    background-color: #f0f0f0;
    color: var(--black);
}

/* Grid layout del modal */
.modal-body-grid {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 850px) {
    .modal-body-grid {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
        gap: 50px;
        align-items: start;
        padding: 50px;
    }

    .modal-right {
        align-self: center;
    }
}

/* Columna Izquierda */
.modal-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-title {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .modal-title {
        font-size: 2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .modal-left {
        padding: 20px 20px 0 20px;
    }
}

.modal-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Caja de Entregables (Fondo Gris + Línea Lateral - CORREGIDO) */
.deliverables-box {
    background-color: #f7f7f7;
    padding: 25px;
    border-radius: 0 12px 12px 0;
    border-left: 5px solid var(--accent);
}

.deliverables-title {
    font-family: var(--font-titles);
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 15px;
    display: block;
}

.deliverables-list {
    list-style: none;
    padding: 0;
}

.deliverables-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.deliverables-list li i {
    color: var(--accent);
    margin-right: 12px;
    font-size: 0.8rem;
}

/* Botón WhatsApp Modal */
.modal-cta-btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    width: fit-content;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    text-decoration: none;
}

.modal-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.modal-cta-btn i {
    font-size: 1.2rem;
}

/* Columna Derecha */
.modal-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    position: relative;
    aspect-ratio: 16/9; /* Mantiene la forma rectangular */
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Transición suave */
    cursor: zoom-in;
    z-index: 1;
}

.carousel-img.active {
    opacity: 1;
    z-index: 2;
}

.modal-video-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    position: relative;
    background: black;
    border-radius: 12px;
    overflow: hidden;
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.video-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- PORTFOLIO --- */
.portfolio-grid {
    column-count: 1;
    column-gap: 15px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 15px;
    cursor: pointer;
    border-radius: 4px;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px 25px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-overlay h3 {
    color: var(--white);
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 1.3rem;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay p {
    color: var(--accent);
    font-size: 0.75rem;
    margin-top: 2px;
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.portfolio-item.active .portfolio-overlay {
    opacity: 1;
}

.portfolio-item.active .portfolio-overlay h3,
.portfolio-item.active .portfolio-overlay p {
    transform: translateY(0);
}

.portfolio-item.active img {
    transform: scale(1.05);
}

/* --- EFECTO HOVER EXCLUSIVO PARA PC (Mouse) --- */
@media (hover: hover) {
    .portfolio-item:hover .portfolio-overlay {
        opacity: 1;
    }

    .portfolio-item:hover .portfolio-overlay h3,
    .portfolio-item:hover .portfolio-overlay p {
        transform: translateY(0);
    }

    .portfolio-item:hover img {
        transform: scale(1.05);
    }
}

.testimonials {
    background: var(--bg-secondary);
    margin-top: 80px;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.testimonial-text {
    font-family: var(--font-titles);
    /* Usamos serif para la cita */
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.4;
}

.client-name {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--accent);
}

@media (min-width: 768px) {
    .portfolio-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        column-count: 3;
    }
}

/* --- CONTACT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #000000;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    width: 100%;
}

.info-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
}

.info-item i {
    flex-shrink: 0; /* EVITA QUE EL CÍRCULO SE COMPRIMA O SE MUEVA A LA IZQUIERDA */
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px; /* Espacio consistente */
    margin-top: 4px; /* Centra el icono visualmente con la primera línea de texto */
    transition: var(--transition);
}

.info-item:hover i {
    background: var(--accent);
    color: var(--white);
}

.map-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    color: #999;
    margin-top: 0;
    font-family: var(--font-body);
    letter-spacing: normal;
    border-radius: 4px;
    overflow: hidden;
}

.map-placeholder h3 {
    color: #000000;
    font-weight: 400;
    line-height: 1.2;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- FOOTER --- */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 10px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-titles);
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    color: var(--white);
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    color: #999;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #555;
}

@media (max-width: 768px) {
    .copyright {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }

    .footer-socials {
        justify-content: flex-start;
    }
}

/* --- WAVE EFFECT ABOVE FOOTER --- */
.waves {
    position: relative;
    width: 100%;
    height: 100px;
    background: transparent;
    /* Importante: Transparente, NO blanco */
    overflow: hidden;
    margin-bottom: -2px;
    /* Soluciona espacio mínimo en algunos navegadores */
}

.waves .air {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' fill='%231a1a1a'%3E%3Cpath d='M0 50 Q 250 10 500 50 T 1000 50 V 100 H 0 Z' /%3E%3C/svg%3E");
    background-size: 1000px 100px;
}

.waves .air.air1 {
    animation: wave 30s linear infinite;
    z-index: 1000;
    opacity: 1;
    animation-delay: 0s;
    bottom: 0;
}

.waves .air.air2 {
    animation: wave2 15s linear infinite;
    z-index: 999;
    opacity: 0.2;
    animation-delay: -5s;
    bottom: 10px;
}

.waves .air.air3 {
    animation: wave 30s linear infinite;
    z-index: 998;
    opacity: 0.3;
    animation-delay: -2s;
    bottom: 15px;
}

.waves .air.air4 {
    animation: wave2 5s linear infinite;
    z-index: 997;
    opacity: 0.4;
    animation-delay: -5s;
    bottom: 20px;
}

@keyframes wave {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: 1000px;
    }
}

@keyframes wave2 {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: -1000px;
    }
}

.service-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--accent);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0;
}

.service-btn:hover {
    background-color: transparent;
    color: var(--accent);
}

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    /* Usamos el acento para elegancia */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #25D366;
    /* Verde oficial al hover */
    transform: translateY(-5px);
}

/* --- LIGHTBOX (VISOR DE IMAGEN) --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 4000; /* Mayor que el modal de servicios (3000) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 4001;
}