/* ==========================================================================
   RESET & CONFIGURACIÓN GLOBAL
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d97706;         /* Amber / Calidez construcción */
    --primary-hover: #b45309;   /* Oscuro para hover */
    --dark-bg: #0f172a;        /* Azul pizarra muy oscuro */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --body-bg: #f8fafc;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HERO / HEADER
   ========================================================================== */
.hero-impacto {
    position: relative;
    background: url("img/OIP.webp") center/cover no-repeat;
    color: #ffffff;
    padding: 140px 20px 100px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-impacto .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid rgba(217, 119, 6, 0.5);
    color: #fef3c7;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-grande {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-subheading {
    font-size: 1.35rem;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}

.hero-pills span {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f1f5f9;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.35);
    transition: var(--transition);
}

.btn-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(217, 119, 6, 0.45);
}

/* ==========================================================================
   NAVEGACIÓN STICKY
   ========================================================================== */
.nav-sticky-top {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    padding: 12px 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.nav-btn-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 20px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links a.nav-btn-highlight:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ==========================================================================
   ESTRUCTURA PRINCIPAL Y SECCIONES
   ========================================================================== */
.contenedor-landing {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.seccion-bloque {
    margin-bottom: 90px;
}

.seccion-header {
    text-align: center;
    margin-bottom: 45px;
}

.subtitulo-tag {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}

.seccion-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-bg);
    letter-spacing: -0.5px;
}

/* ==========================================================================
   GRID VENTAJAS
   ========================================================================== */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.box-ventaja {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.box-ventaja:hover {
    top: -6px;
    box-shadow: var(--shadow-md);
    border-color: rgba(217, 119, 6, 0.3);
}

.icono-box {
    width: 55px;
    height: 55px;
    background: #fef3c7;
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.box-ventaja h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.box-ventaja p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.servicios-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tarjeta-horizontal {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: var(--transition);
}

.tarjeta-horizontal:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
    border-left: 5px solid var(--primary);
}

.tarjeta-icono {
    min-width: 60px;
    height: 60px;
    background: var(--dark-bg);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.tarjeta-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 6px;
}

.tarjeta-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   GALERÍA
   ========================================================================== */
.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.galeria-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 240px;
    box-shadow: var(--shadow-sm);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.galeria-overlay span {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.galeria-item:hover img {
    transform: scale(1.08);
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

/* ==========================================================================
   BOX CONTACTO
   ========================================================================== */
.box-contacto {
    background: var(--dark-bg);
    color: #ffffff;
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    box-shadow: var(--shadow-lg);
}

.contacto-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.contacto-info > p {
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.items-contacto {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-c {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-c i {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.item-c strong {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.item-c p {
    color: #ffffff;
    font-weight: 600;
}

.contacto-cta-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contacto-cta-card i.fa-calculator {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.contacto-cta-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.contacto-cta-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #090d16;
    color: #64748b;
    text-align: center;
    padding: 35px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content p {
    font-size: 0.95rem;
}

.footer-content strong {
    color: #cbd5e1;
}

.footer-sub {
    font-size: 0.8rem !important;
    margin-top: 5px;
    color: #475569;
}

/* ==========================================================================
   RESPONSIVE (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 850px) {
    .box-contacto {
        grid-template-columns: 1fr;
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .hero-impacto {
        padding: 100px 15px 70px;
    }

    .logo-grande {
        font-size: 2.6rem;
    }

    .hero-subheading {
        font-size: 1.1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tarjeta-horizontal {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .seccion-header h2 {
        font-size: 1.75rem;
    }
}
/* ==========================================================================
   ESTILOS DE FILTROS Y LIGHTBOX (JS)
   ========================================================================== */

/* Botones de Filtro */
.filtros-galeria {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.btn-filtro {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-filtro:hover,
.btn-filtro.active {
    background: var(--dark-bg);
    color: #ffffff;
    border-color: var(--dark-bg);
    box-shadow: var(--shadow-sm);
}

/* Transición suave para ocultar/mostrar elementos */
.galeria-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.galeria-overlay i {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 8px;
    display: block;
}

.icono-play {
    font-size: 2rem !important;
    color: #ffffff !important;
}

/* Modal Lightbox */
.modal-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.contenido-modal {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
}

.contenido-modal img,
.contenido-modal video {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

#caption-modal {
    color: #ffffff;
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.cerrar-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.cerrar-modal:hover {
    color: var(--primary);
}
/* Botón Cargar Más */
.contenedor-cargar-mas {
    text-align: center;
    margin-top: 35px;
}

.btn-secundario {
    background: transparent;
    border: 2px solid var(--dark-bg);
    color: var(--dark-bg);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-secundario:hover {
    background: var(--dark-bg);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Transición suave cuando se agregan nuevos elementos a la grid */
.galeria-item {
    animation: fadeIn 0.4s ease forward;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}