/* --- REGISTRO BASE RESPONSIVO --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Anima el desplazamiento suave en toda la web */
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    background-color: #0d0d0d;
    color: #f5f5f5;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ESTRUCTURAS GENERALES */
.header {
    text-align: center;
    padding: 4rem 1rem 2rem;
    border-bottom: 1px solid #222;
}

.header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #888;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
}

.intro h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #1a1a1a;
}

/* --- ESTILOS DE LA BARRA DE NAVEGACIÓN (ESCRITORIO) --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    height: 70px;
    background-color: #121212;
    border-bottom: 1px solid #222;
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    white-space: nowrap;
}

.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(145px);
}

.nav-logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cccccc;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
    background-color: #222222;
    border: 1px solid rgba(212, 175, 55, 0.6);
}

/* ==========================================
   ESTILOS GENERALES Y BOTONES
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #d4af37;
    color: #0d0d0d;
}

.btn-primary:hover {
    background-color: #f3c83c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.text-center {
    text-align: center;
}

/* ==========================================
   HERO SECTION (BANNER/VÍDEO)
   ========================================== */
.services-hero {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    overflow: hidden;
    padding: 4rem 1.5rem;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.35);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13,13,13,0.4) 0%, rgba(13,13,13,0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
}

.badge {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 0.3rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.15rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

/* ==========================================
   FILTRO INTERACTIVO DE SERVICIOS
   ========================================== */
.services-filter-section {
    padding: 3rem 1.5rem 1rem;
    text-align: center;
}

.services-filter-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #1a1a1a;
    color: #aaaaaa;
    border: 1px solid #333333;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #d4af37;
    color: #0d0d0d;
    border-color: #d4af37;
}

/* ==========================================
   REJILLA DE TARJETAS DE SERVICIOS
   ========================================== */
.services-grid-section {
    padding: 2rem 1.5rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #141414;
    border: 1px solid #222222;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.card-media {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #222222;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-media img {
    transform: scale(1.08);
}

.card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #d4af37;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.card-body p {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.service-features {
    list-style: none;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #222222;
}

.service-features li {
    font-size: 0.88rem;
    color: #dddddd;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

/* ==========================================
   ESPECIFICACIONES TÉCNICAS (4 EN LÍNEA)
   ========================================== */
.tech-spec-section {
    background-color: #111111;
    border-top: 1px solid #222222;
    border-bottom: 1px solid #222222;
    padding: 4rem 1.5rem;
}

.tech-spec-section .container {
    max-width: 1300px;
    margin: 0 auto;
}

.tech-spec-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #888888;
    margin-bottom: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.tech-item {
    background-color: #181818;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #252525;
    text-align: center;
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech-item h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tech-item p {
    color: #999999;
    font-size: 0.88rem;
}

/* ==========================================
   SECCIÓN CTA / PRESUPUESTO
   ========================================== */
.cta-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #0d0d0d 0%, #161512 100%);
}

.cta-section h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #bbbbbb;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* ==========================================
   REGLAS MÓVILES Y MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        flex-direction: column;
        padding: 10px 8px !important;
        gap: 10px;
    }

    .nav-left {
        width: 100%;
        justify-content: center;
        min-width: auto;
        gap: 8px;
    }

    .nav-title {
        font-size: 0.8rem !important;
    }

    .nav-center {
        display: none !important;
    }

    .nav-menu {
        display: flex;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 2px !important;
        padding: 0;
    }

    .nav-menu a {
        font-size: 0.65rem !important;
        padding: 5px 3px !important;
        white-space: nowrap;
        text-align: center;
        flex: 1;
        box-sizing: border-box;
    }

    .custom-player-bar,
    .spotify-container, 
    iframe[src*="spotify"],
    div[class*="spotify"],
    .footer-spotify,
    .spotify-player {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SECCIÓN ZIG-ZAG (FEATURE SECTION)
   ========================================== */
.about-zigzag-section {
    padding: 5rem 1.5rem;
    background-color: #0d0d0d;
}

.about-zigzag-section .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.zigzag-item {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* Invierte el orden para el segundo bloque */
.zigzag-item.reverse {
    flex-direction: row-reverse;
}

.zigzag-text {
    flex: 1;
}

.zigzag-text h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.zigzag-text p {
    color: #bbbbbb;
    font-size: 1.05rem;
    line-height: 1.7;
}

.zigzag-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.zigzag-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.zigzag-image:hover img {
    transform: scale(1.03);
}

/* Adapta la disposición para móviles y tablets */
@media (max-width: 768px) {
    .zigzag-item,
    .zigzag-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .zigzag-image img {
        height: 250px;
    }

    .zigzag-text h2 {
        font-size: 1.6rem;
    }
}