/* ==========================================================
   1. VARIABLES Y CONFIGURACIÓN GENERAL (VALOR ALTIPLANO)
   ========================================================== */
:root {
    --primary: #000000;         /* Negro puro tipográfico */
    --accent: #E50020;          /* Rojo vivo de la marca */
    --accent-light: #FCDADF;    /* Rosa suave secundario */
    --accent-hover: #c4001b;    /* Rojo oscuro para hover */
    --highlight: #E50020;
    --bg-light: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --radius-md: 16px;
    --radius-full: 9999px;
    --font: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    position: relative;
}

/* ==========================================================
   2. LOGOS Y ENCABEZADO
   ========================================================== */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-desktop {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: none; /* Oculto en móvil por defecto */
}

.logo-mobile {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block; /* Visible en móvil por defecto */
}

/* Barra Superior */
.top-bar {
    display: none;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 8px 16px;
    width: 100%;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    gap: 12px;
}

.top-bar a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

/* Header Cápsula Flotante (Sticky en Móvil y Laptop) */
.header {
    position: -webkit-sticky;
    position: sticky;
    top: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-full);
    width: 92%;
    max-width: 1280px;
    margin: 10px auto 20px auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.nav-desktop {
    display: none;
    gap: 24px;
    align-items: center;
}

.mobile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-cta-btn {
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(229, 0, 32, 0.3);
}

.menu-toggle {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Menú Lateral Desplegable */
.nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.nav-mobile.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.mobile-menu-header strong {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 800;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.nav-cta-full {
    background: var(--accent);
    color: #fff !important;
    text-align: center;
    border-radius: var(--radius-full);
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    margin-top: auto;
}

/* ==========================================================
   3. HERO SECTION Y ELEMENTOS DE PÁGINA
   ========================================================== */
.hero-split {
    padding: 1rem 0.75rem 2.5rem;
    background-color: var(--bg-light);
    max-width: 1280px;
    margin: 0 auto;
}

.split-container {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    width: 100%;
}

.split-right {
    padding: 0 8px;
}

.eyebrow {
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 12px;
}

.split-right h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 8px 0 14px;
}

.split-right h1 span {
    color: var(--accent);
}

.hero-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    font-weight: 800;
    text-decoration: none;
    font-size: 1rem;
}

/* Botón principal con degradado basado en los tonos del logotipo */
.btn-primary {
    background: linear-gradient(135deg, #E30613 0%, #F58282 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.25);
    transition: all 0.3s ease;
}

/* Efecto al pasar el cursor */
.btn-primary:hover {
    background: linear-gradient(135deg, #cc0511 0%, #e06d6d 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(227, 6, 19, 0.35);
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    margin-left: -10px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.avatar:first-child {
    margin-left: 0;
}

.proof-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

/* Carrusel Diagonal */
.slanted-carousel-container {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.slanted-carousel-track {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.25);
}

.slanted-card {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slanted-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.slanted-card.active .slanted-bg {
    transform: scale(1.06);
}

.slanted-card.pos-left {
    left: 0;
    width: 35%;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
    opacity: 0.75;
}

.slanted-card.pos-center {
    left: 10%;
    width: 80%;
    z-index: 3;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
    opacity: 1;
}

.slanted-card.pos-right {
    right: 0;
    width: 35%;
    z-index: 1;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    opacity: 0.75;
}

.slanted-content {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 5;
    text-align: center;
}

.slanted-tag {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-block;
}

.slanted-btn {
    position: absolute;
    bottom: 16px;
    background: #ffffff;
    color: var(--primary);
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.slanted-btn.prev { left: 16px; }
.slanted-btn.next { right: 16px; }

.slanted-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.slanted-dots .dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slanted-dots .dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 10px;
}

/* Métricas */
.stats {
    padding: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-card {
    background: #fff;
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 800;
}

.stat-card span {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Servicios Secundarios */
.services-carousel-section {
    padding: 24px 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-head-center {
    text-align: center;
    margin-bottom: 20px;
}

.section-head-center h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.carousel-container {
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}


.carousel-card {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    padding: 12px;
}

.card-badge {
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-body p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Cobertura */
.coverage-section {
    background: var(--primary);
    color: #fff;
    padding: 20px 16px;
    margin: 16px;
    border-radius: var(--radius-md);
    max-width: 1280px;
}

.coverage-split-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coverage-map-wrapper {
    width: 100%;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.eyebrow-purple {
    color: var(--accent-light);
    font-size: 0.7rem;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}

.coverage-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
}

.coverage-header h2 span {
    color: var(--accent);
}

.coverage-selector {
    display: flex;
    gap: 6px;
    margin: 14px 0;
    background: rgba(255,255,255,0.08);
    padding: 4px;
    border-radius: var(--radius-full);
}

.btn-estado {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-weight: 700;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-estado.active {
    background: var(--accent);
    color: #fff;
}

.state-card {
    background: #fff;
    color: var(--text-main);
    padding: 14px;
    border-radius: 12px;
}

.state-badge {
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.city-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.city-tags li {
    background: var(--bg-light);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* FAQ & Footer */
.faq-section {
    padding: 24px 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}

.faq-item summary {
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.faq-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.footer {
    background: var(--primary);
    color: #fff;
    padding: 24px 16px;
    text-align: center;
    font-size: 0.8rem;
}

.footer p {
    color: #94a3b8;
    margin-top: 4px;
    font-size: 0.75rem;
}

.footer-bottom {
    margin-top: 16px;
    font-size: 0.7rem;
    color: #64748b;
}

/* ==========================================================
   4. REGLAS EXCLUSIVAS PARA COMPUTADORA (> 768px)
   ========================================================== */
@media (min-width: 769px) {
    .carousel-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .carousel-track {
    justify-content: center;
    width: 100%;
}

    .carousel-card {
        width: 280px;
        flex: 0 0 280px;
    }
    /* Alternancia de Logos: Muestra el Horizontal */
    .logo-desktop {
        display: block !important;
    }
    
    .logo-mobile {
        display: none !important;
    }

    .top-bar {
        display: block;
    }

    .mobile-controls, 
    .nav-mobile, 
    .nav-mobile-overlay { 
        display: none !important; 
    }
    
    .nav-desktop { 
        display: flex !important; 
    }

    .header {
        top: 12px;
        padding: 10px 24px;
    }

    .nav-desktop a {
        text-decoration: none;
        color: var(--text-main);
        font-weight: 600;
        font-size: 0.9rem;
    }

    .btn-nav-desktop {
        background: var(--accent);
        color: #fff !important;
        padding: 8px 18px;
        border-radius: var(--radius-full);
        font-weight: 700;
    }

    .hero-split {
        padding: 4rem 1.5rem;
    }

    .split-container {
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        align-items: center;
        gap: 40px;
    }

    .split-left { order: 2; }
    .split-right { order: 1; }

    .split-right h1 {
        font-size: 2.8rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .slanted-carousel-track {
        height: 480px;
    }

    .slanted-card.pos-center {
        width: 60%;
        left: 20%;
    }

    .btn {
        width: auto;
        padding: 14px 32px;
    }

    .stats-inner {
        grid-template-columns: repeat(4, 1fr);
    }

    .coverage-section {
        margin: 40px auto;
        padding: 40px;
    }

    .coverage-split-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: center;
    }

    .coverage-map-wrapper {
        height: 100%;
        min-height: 380px;
    }

    
    /* Carrusel de servicios: corrección definitiva */
    
/* Contenedor del carrusel */
.carousel-container {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding: 10px 0 18px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
}

/* Fila de tarjetas */
.carousel-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
    width: max-content;
    min-width: 100%;
}

/* Cada tarjeta */
.carousel-card {
    display: block;
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    box-sizing: border-box;
    scroll-snap-align: start;
}


.services-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 42px;
    box-sizing: border-box;
}

.services-carousel-wrapper .carousel-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #16834a;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.carousel-prev {
    left: 2px;
}

.carousel-next {
    right: 2px;
}

.carousel-arrow:hover {
    background: #106638;
}



/* CONTENEDOR DEL CARRUSEL Y FLECHAS */
.services-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

/* Carrusel */
#serviciosCarrusel {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

#serviciosCarrusel::-webkit-scrollbar {
    display: none;
}

/* Flechas */
.services-carousel-wrapper .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;

    background: #E30613;
    color: #fff;
    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.services-carousel-wrapper .carousel-arrow:hover {
    background: #b80510;
    transform: translateY(-50%) scale(1.08);
}

/* Flecha izquierda */
.services-carousel-wrapper .carousel-prev {
    left: 0;
}

/* Flecha derecha */
.services-carousel-wrapper .carousel-next {
    right: 0;
}

/* Ajustes de tarjetas */
.services-carousel-section .carousel-track {
    display: flex;
    gap: 20px;
    width: 100%;
}

.services-carousel-section .carousel-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    box-sizing: border-box;
}

/* Tablets */
@media (max-width: 900px) {
    .services-carousel-section .carousel-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

/* Celulares */
@media (max-width: 600px) {
    .services-carousel-wrapper {
        padding: 0 35px;
    }

    .services-carousel-wrapper .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 17px;
    }

    .services-carousel-section .carousel-card {
        flex-basis: 100%;
    }
}



}