/* =========================================
   1. CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    /* --- COLOR PALETTE (Base) --- */
    --bg-color: #050507;
    --card-bg: #0f0f11;
    --card-hover: #141416;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(10, 10, 12, 0.6);
    --hero-glow-opacity: 0.8;

    /* Brand Colors */
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --pink: #ec4899;

    --font-main: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --card-bg: #f3f4f6;
    /* slate-100 */
    --card-hover: #e2e8f0;
    /* slate-200 */
    --text-main: #0f172a;
    /* slate-900 */
    --text-muted: #475569;
    /* slate-600 */
    --border-color: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --hero-glow-opacity: 0.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía Util */
.gradient-text {
    background: linear-gradient(90deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-blue {
    color: var(--blue);
}

.text-pink {
    color: var(--pink);
}

/* =========================================
   2. NAVBAR (EFECTO GLASS & BLUR EXACTO)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Fondo con transparencia alta para que se note el desenfoque */
    background: var(--nav-bg);
    /* EL SECRETO: Desenfoque fuerte detrás de la barra */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    /* Borde inferior casi invisible para separar sutilmente */
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    /* Un poco más de aire */
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 38px;
    /* Tamaño ajustado para que se vea nítido */
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(139, 92, 246, 0.3));
}

/* Enlaces del Menú (Centrados) */
.nav-links {
    display: flex;
    gap: 40px;
    /* Más separación entre palabras */
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    /* Adaptable */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* BOTÓN "CONTACTAR" (Gradiente de la imagen) */
.btn-nav {
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    border: none;
    /* Gradiente exacto: Morado (#8b5cf6) a Cyan/Turquesa (#06b6d4) */
    background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 100%);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
    /* Resplandor turquesa */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
    /* Resplandor morado al pasar */
}

/* THEME TOGGLE (Sleek Switch Style) */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    /* Squircle shape */
    margin-left: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--card-bg);
    border-color: var(--purple);
    color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* Active State (Light Mode) */
[data-theme="light"] .theme-toggle {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #f59e0b;
    /* Sun Color */
}

/* RESPONSIVE (Móvil) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

/* Corregir fondo de navbar en móvil para que cambie con el tema */
@media (max-width: 900px) {
    .navbar {
        background: var(--nav-bg) !important; /* Usa la variable adaptable en lugar de negro fijo */
        backdrop-filter: blur(15px);
    }

    /* Asegurar que el icono del menú hamburguesa sea visible en ambos modos */
    .menu-toggle {
        color: var(--text-main) !important;
    }
}

/* Ajuste extra: Si el menú móvil desplegable también se ve negro, añade esto: */
.mobile-menu {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a {
    color: var(--text-main);
}

/* =========================================
   3. HERO SECTION (FONDO CON GLOW AMBIENTAL)
   ========================================= */
.hero-section {
    position: relative;
    /* Ajuste de padding para que el contenido quede centrado verticalmente */
    padding: 220px 0 160px;
    text-align: center;
    overflow: hidden;
    /* Fondo base adaptable */
    background-color: var(--bg-color);
    z-index: 1;
}

/* EFECTO DE LUZ DE FONDO (Aurora) */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 500px;
    /* Degradado Radial Suave: Violeta al centro -> Transparente afuera */
    background: radial-gradient(ellipse at center,
            rgba(139, 92, 246, 0.18) 0%,
            /* Centro Violeta suave */
            rgba(59, 130, 246, 0.1) 40%,
            /* Halo Azulado */
            rgba(2, 2, 3, 0) 70%
            /* Desvanecido a negro */
        );
    /* Desenfoque extremo para suavizar los bordes */
    filter: blur(80px);
    z-index: -1;
    /* Detrás del texto */
    pointer-events: none;
    opacity: var(--hero-glow-opacity);
    /* Ajuste de intensidad por tema */
}

/* Badge / Etiqueta Superior */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a78bfa;
    /* Violeta claro */
    margin-bottom: 35px;
    backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
}

/* TÍTULO PRINCIPAL (Gigante y con Degradado) */
.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    /* Tamaño masivo como en la imagen */
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

/* El texto con degradado (Morado -> Celeste) */
.gradient-text {
    background: linear-gradient(90deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Asegura que el gradiente se aplique bien */
}

/* Subtítulo */
.hero-subtitle {
    color: var(--text-muted);
    /* Gris azulado */
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 50px;
    font-weight: 400;
}

/* Botones de Acción */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Botón "Ver Portafolio" (Estilo Gradiente Azul/Morado) */
.btn-primary {
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(90deg, #6366f1 0%, #0ea5e9 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.5);
}

/* Botón "Asesoría Gratis" (Estilo Dark Glass) */
.btn-secondary {
    padding: 14px 35px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--text-main);
}

/* RESPONSIVE HERO */
@media (max-width: 900px) {
    .hero-section {
        padding: 160px 20px 100px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    /* Ajuste para celular */
    .hero-glow {
        width: 100%;
        height: 400px;
        opacity: 0.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   4. SECCIONES COMUNES
   ========================================= */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tag-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple);
    display: block;
    margin-bottom: 10px;
}

.tag-label.blue {
    color: var(--blue);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-desc-sm {
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================================
   5. SERVICIOS (DISEÑO EXACTO CARDS DARK)
   ========================================= */
.services-section {
    position: relative;
    padding: 100px 0;
    background: var(--bg-color);
    /* Fondo adaptable */
}

.services-grid {
    display: grid;
    /* Forzamos 3 columnas iguales en PC */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--card-bg);
    /* Color de tarjeta variable */
    border: 1px solid var(--border-color);
    /* Borde sutil */
    padding: 40px 35px;
    /* Espacio interno amplio */
    border-radius: 24px;
    /* Bordes muy redondeados */
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Alineado a la izquierda */
    height: 100%;
}

/* Efecto hover elegante */
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple);
    background: var(--card-hover);
}

/* --- ICONOS CUADRADOS CON DEGRADADO --- */
.icon-sq {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    /* Cuadrado redondeado (Squircle) */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: white;
    /* Icono blanco */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Colores exactos de la imagen */
/* 1. Diseño Web (Rosa/Morado) */
.icon-sq.purple {
    background: linear-gradient(135deg, #d946ef, #8b5cf6);
    box-shadow: 0 8px 20px rgba(217, 70, 239, 0.25);
}

/* 2. Catálogos (Azul Cyan) */
.icon-sq.blue {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

/* 3. Marketing (Dorado/Naranja) */
.icon-sq.gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

/* --- TEXTOS --- */
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.service-card p {
    color: var(--text-muted);
    /* Gris legible */
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Estadísticas (Fila de abajo) */
.stats-row {
    display: flex;
    justify-content: space-between;
    padding: 40px 60px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* RESPONSIVE (Celulares) */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Una columna en móvil */
    }

    .service-card {
        padding: 30px;
        align-items: center;
        text-align: center;
        /* Centrado en móvil */
    }

    .stats-row {
        flex-direction: column;
        gap: 30px;
        padding: 30px 0;
    }
}

/* =========================================
   6. PORTFOLIO (CORREGIDO: 3 EN FILA Y MÁS PEQUEÑO)
   ========================================= */
.portfolio-grid {
    display: grid;
    /* AQUÍ ESTÁ LA CLAVE: Forzamos 3 columnas exactas */
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    /* Espacio equilibrado */
    margin-bottom: 50px;
}

.portfolio-card {
    position: relative;
    border-radius: 16px;
    /* Bordes redondeados pero no exagerados */
    overflow: hidden;
    height: 260px;
    /* MÁS PEQUEÑO: Antes 350px -> Ahora 260px */
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

/* Overlay oscuro compacto */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Degradado más suave para que no oscurezca toda la foto */
    background: linear-gradient(to top, #000 15%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    padding: 20px;
    /* Menos relleno para ahorrar espacio */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

/* Categoría más pequeña */
.card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-category.text-pink {
    color: #ec4899;
}

.card-category.text-blue {
    color: #3b82f6;
}

/* Título ajustado */
.portfolio-card h3 {
    font-size: 1.3rem;
    /* Letra más controlada */
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Píldoras compactas */
.card-pills {
    display: flex;
    gap: 8px;
}

.pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    /* Más pequeñito */
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* RESPONSIVE: Solo en celulares bajamos a 1 columna */
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* =========================================
   7. PRECIOS (ESTILO TABS)
   ========================================= */
.pricing-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.tabs-wrapper {
    background: var(--card-bg);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    display: inline-flex;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--bg-color);
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    color: var(--text-main);
}


/* Ocultar/Mostrar Contenido */
.pricing-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.pricing-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: flex-start;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
}

.price-card.featured {
    background: var(--card-hover);
    border-color: var(--purple);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pop-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.featured .pop-tag {
    background: linear-gradient(90deg, var(--purple), var(--blue));
}

.p-badge {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-main);
}

.p-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.p-features {
    margin-bottom: 30px;
}

.p-features li {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-features i {
    color: var(--text-main);
}

.p-features i.text-blue {
    color: var(--blue);
}

.p-features i.text-pink {
    color: var(--pink);
}

.btn-outline {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.payment-methods {
    text-align: center;
    margin-top: 50px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.payment-methods .icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
    font-size: 1.5rem;
}

.payment-methods .yape {
    color: #A061D1;
    font-weight: bold;
    font-size: 0.9rem;
}

.payment-methods .bank {
    color: #00C6AB;
    font-weight: bold;
    font-size: 0.9rem;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
    background: var(--bg-color);
    text-align: center;
}

.footer-logo {
    height: 30px;
    margin: 0 auto 15px;
    opacity: 0.8;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.footer-socials a:hover {
    background: var(--purple);
    color: white;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* =========================================
   9. WHATSAPP FLOTANTE
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
}

/* =========================================
   10. MODALES (DISEÑO PREMIUM DARK + DESENFOQUE)
   ========================================= */

/* FONDO CON DESENFOQUE FUERTE */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /* Color de fondo semitransparente oscuro */
    background-color: var(--nav-bg);
    /* EFECTO DESENFOQUE CLAVE (Soporte para todos los navegadores) */
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    backdrop-filter: blur(15px) saturate(120%);

    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* CONTENEDOR PRINCIPAL (LA TARJETA) */
.modal-container {
    background: var(--bg-color);
    /* Negro casi puro premium */
    width: 100%;
    max-width: 960px;
    border-radius: 24px;
    /* Bordes muy redondeados */
    border: 1px solid var(--border-color);
    /* Borde sutil */
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    /* Sombra profunda */
    position: relative;
    overflow: hidden;
    /* Animación de entrada */
    transform: scale(0.95) translateY(30px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* BOTÓN CERRAR (X) */
.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.modal-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

/* ESTRUCTURA DE 2 COLUMNAS (GRID) */
.modal-grid {
    display: grid;
    /* 55% Imagen | 45% Info -> Exacto como la referencia */
    grid-template-columns: 55% 45%;
    min-height: 550px;
    /* Altura mínima para presencia */
}

/* --- COLUMNA IZQUIERDA: IMAGEN --- */
.modal-media {
    background: var(--bg-color);
    position: relative;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

.modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: contrast(1.1);
    /* Imagen con más fuerza */
}

/* --- COLUMNA DERECHA: INFORMACIÓN --- */
.modal-details {
    padding: 50px 40px;
    /* Espaciado amplio interno */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-color);
}

/* Cabecera y Precio */
.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.modal-header-top h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin: 0;
}

.modal-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.15);
    padding: 6px 14px;
    border-radius: 14px;
}

/* Etiquetas */
.modal-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.m-tag {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Textos */
.modal-body-text h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-body-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 35px;
    font-size: 0.95rem;
}

/* Botón de Acción */
.btn-modal-action {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.5);
    transition: 0.3s;
    margin-bottom: 35px;
    display: block;
}

.btn-modal-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -5px rgba(99, 102, 241, 0.7);
}

/* Caja Testimonio */
.testimonial-box {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-box::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: rgba(99, 102, 241, 0.3);
    font-family: serif;
    line-height: 1;
}

.testimonial-box p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 10px 25px;
    z-index: 2;
    position: relative;
}

.client-label {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* --- RESPONSIVE (CELULARES) --- */
@media (max-width: 900px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal-container {
        border-radius: 16px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        /* Una columna en móvil */
    }

    .modal-media {
        height: 240px;
    }

    .modal-details {
        padding: 30px 25px;
    }

    .modal-header-top h2 {
        font-size: 1.6rem;
    }

    .modal-close-btn {
        top: 15px;
        right: 15px;
    }
}


/* =========================================
   SECCIÓN CARRUSEL DE PAGOS (IMÁGENES LOCALES)
   ========================================= */
.payment-ticker-section {
    padding: 60px 0;
    background: var(--bg-color);
    /* Fondo oscuro */
    border-top: 1px solid var(--border-color);
    overflow: hidden;
    text-align: center;
}

.ticker-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Contenedor con desvanecimiento a los lados */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* El riel animado */
.ticker-track {
    display: flex;
    gap: 70px;
    /* Espacio entre logos */
    width: max-content;
    align-items: center;
    /* Alinea verticalmente los logos */
    animation: scroll 25s linear infinite;
    /* Velocidad suave */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }

    /* Mueve 1/3 del total */
}

/* Estilo de cada ítem de imagen */
.ticker-item img {
    height: 45px;
    /* Altura fija para uniformidad */
    width: auto;
    /* El ancho se ajusta solo */
    object-fit: contain;

    /* EFECTO PROFESIONAL: Escala de grises y opaco al inicio */
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Hover: Recupera color y brillo */
.ticker-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
    /* Crece un poquito */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ticker-track {
        gap: 40px;
    }

    .ticker-item img {
        height: 35px;
    }

    /* Logos más pequeños en celular */
}


/* =========================================
   PREGUNTAS FRECUENTES (BRAND COLORS)
   ========================================= */
.faq-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

/* CORRECCIÓN: Degradado Morado -> Cyan (Marca) */
.faq-highlight {
    background: linear-gradient(90deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    /* Para que baje a la siguiente línea */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 10px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.accordion-header span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-display);
    transition: color 0.3s ease;
}

.icon-plus {
    font-size: 1.2rem;
    color: var(--text-muted);
    /* Gris apagado por defecto */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* --- ESTADO ACTIVO (AL ABRIR) --- */

.accordion-item.active .icon-plus {
    transform: rotate(45deg);
    /* CORRECCIÓN: Color Cyan Brillante al abrir */
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.accordion-item.active .accordion-header span {
    /* CORRECCIÓN: Color Morado claro al abrir */
    color: #a78bfa;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
}

.accordion-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: 25px;
    padding-left: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-title {
        font-size: 2.5rem;
    }

    .accordion-header span {
        font-size: 1rem;
    }
}


/* =========================================
   CSS ACTUALIZADO - LOGOS A COLOR
========================================= */

.tech-carousel-container {
    background-color: var(--bg-color);
    /* Fondo negro puro */
    padding: 50px 0 40px 0;
    text-align: center;
    overflow: hidden;
    position: relative;
    user-select: none;
    /* Un borde sutil arriba para separarlo del Hero */
    border-top: 1px solid var(--border-color);
}

/* Texto pequeño arriba de los logos */
.tech-subtitle {
    color: var(--text-muted);
    /* Gris un poco más claro para que contraste */
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    font-family: sans-serif;
    /* Usa tu fuente principal aquí */
}

/* Contenedor con bordes difuminados (mask-image) */
.carousel-track-window {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
    /* Un poco de aire arriba y abajo de los logos */
    /* El gradiente hace que se desvanezcan en los bordes */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
    display: flex;
    width: max-content;
    /* Velocidad: 40s. Aumenta para más lento, disminuye para más rápido */
    animation: scrollTech 40s linear infinite;
    align-items: center;
    /* Asegura que estén centrados verticalmente */
}

/* Pausar animación al pasar el mouse por la pista */
.carousel-track:hover {
    animation-play-state: paused;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 70px;
    padding-right: 70px;
}

/* --- ESTILO DE LOS LOGOS (AHORA A COLOR) --- */
.tech-logo {
    height: 40px;
    /* Un poco más grandes para que luzcan los colores */
    width: auto;
    object-fit: contain;

    /* === CAMBIO AQUÍ: Se eliminó el filtro de escala de grises y la opacidad baja === */
    opacity: 1;
    /* Sombra sutil para que los logos oscuros no se pierdan en el fondo negro */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));

    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Efecto rebote suave */
    cursor: pointer;
}

/* --- HOVER --- */
.tech-logo:hover {
    /* Al pasar el mouse, hacen un pequeño zoom y brillan un poco */
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

/* Animación */
@keyframes scrollTech {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Versión Móvil */
@media (max-width: 768px) {
    .tech-carousel-container {
        padding: 40px 0 30px 0;
    }

    .tech-logo {
        height: 30px;
    }

    .logo-group {
        gap: 40px;
        padding-right: 40px;
    }

    .tech-subtitle {
        font-size: 11px;
        margin-bottom: 25px;
    }
}


/* =========================================
   ESTILOS EXCLUSIVOS PARA LA SECCIÓN DE PRECIOS
   (No afecta al resto de la web)
========================================= */

/* Contenedor Principal */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Inter', system-ui, sans-serif;
    /* Aseguramos la fuente aquí */
}

/* Tarjetas */
.pricing-grid .pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-grid .pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple);
}

/* Tarjeta Destacada (Centro) */
.pricing-grid .pricing-card.featured {
    background-color: var(--card-hover);
    border: 1px solid #6366f1;
    /* Borde neón */
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.15);
    z-index: 2;
}

/* Badge "MÁS VENDIDO" */
.pricing-grid .popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6366f1, #a855f7);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Cabecera de la tarjeta */
.pricing-grid .card-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.pricing-grid .plan-subtitle {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.pricing-grid .plan-title {
    color: var(--text-main);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

/* Precios */
.pricing-grid .price-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--text-main);
    gap: 5px;
}

.pricing-grid .currency {
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
}

.pricing-grid .amount {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.pricing-grid .period {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Lista de características */
.pricing-grid .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
    text-align: left;
}

.pricing-grid .features-list li {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-grid .features-list li i {
    color: #6366f1;
    font-size: 14px;
    min-width: 20px;
    /* Alineación perfecta de íconos */
}

.pricing-grid .features-list li strong {
    color: var(--text-main);
    font-weight: 600;
}

/* --- BOTONES (Específicos para el grid) --- */

/* Botón Básico */
.pricing-grid .btn-outline {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s;
}

.pricing-grid .btn-outline:hover {
    border-color: var(--purple);
    background-color: transparent;
    color: var(--purple);
}

/* Botón Destacado (Gradiente) */
.pricing-grid .btn-primary {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border: none;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.pricing-grid .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding: 0 15px;
    }

    .pricing-grid .pricing-card.featured {
        transform: scale(1.02);
        margin: 15px 0;
    }
}




/* =========================================
   SECCIÓN PROPUESTAS (MONITOR REALISTA)
   ========================================= */
.proposals-section {
    padding: 100px 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.mockup-grid {
    display: grid;
    /* Grid flexible: se adapta a pantallas grandes y pequeñas */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.proposal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- EL MONITOR (CSS PURO) --- */
.monitor-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    /* Tamaño máximo del monitor */
    transition: transform 0.3s ease;
}

.monitor-wrapper:hover {
    transform: scale(1.02);
    /* Pequeño zoom al monitor completo */
}

/* El Marco (Borde negro) */
.monitor-bezel {
    background: #1d1d1f;
    /* Gris casi negro estilo Apple */
    padding: 12px 12px 0 12px;
    /* Borde superior y lados, abajo sin borde para la pantalla */
    border-radius: 16px 16px 0 0;
    /* Bordes redondeados solo arriba */
    border: 1px solid #333;
    border-bottom: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
}

/* La Pantalla (Vidrio) */
.monitor-screen {
    background: #000;
    width: 100%;
    height: 300px;
    /* Altura de la ventana visible */
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    /* Oculta lo que sobra de la imagen */
    position: relative;
}

/* La Cámara (Puntito arriba) */
.monitor-camera {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

/* El Soporte (Pie del monitor) */
.monitor-stand {
    height: 40px;
    width: 120px;
    background: linear-gradient(180deg, #2a2a2c 0%, #1d1d1f 100%);
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Base plana del soporte (opcional para look iMac) */
.monitor-stand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    width: 160px;
    height: 4px;
    background: #2a2a2c;
    border-radius: 4px;
}

/* --- LA IMAGEN SCROLLING --- */
.scrolling-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;

    /* Configuración de la animación */
    transform: translateY(0);
    transition: transform 6s ease-in-out;
    /* 6 segundos para bajar */
}

/* Efecto al pasar el mouse por el monitor */
.monitor-bezel:hover .scrolling-image {
    /* Sube la imagen hasta el final */
    transform: translateY(calc(-100% + 300px));
}

/* --- ETIQUETA 'PROPUESTA' --- */
.concept-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(99, 102, 241, 0.9);
    /* Morado semitransparente */
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    /* Para que no interfiera con el mouse */
}

/* --- DETALLES DEBAJO DEL MONITOR --- */
.proposal-details {
    margin-top: 25px;
    text-align: center;
}

.brand-name {
    color: var(--blue);
    /* Tu color azul */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 5px;
}

.proposal-details h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.proposal-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mockup-grid {
        grid-template-columns: 1fr;
        /* Una columna en móvil */
        gap: 50px;
    }

    .monitor-screen {
        height: 250px;
        /* Un poco más bajito en móvil */
    }
}


/* =========================================
   ESTILOS NUEVOS: BOTÓN "VER TODO" (HOME)
   ========================================= */
.view-all-container {
    text-align: center;
    margin-top: 60px;
}

.btn-glow-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border: 1px solid var(--border-color);
    /* Borde morado */
    border-radius: 50px;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-glow-outline:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
}

/* =========================================
   ESTILOS NUEVOS: PÁGINA CATALOGO (propuestas.html)
   ========================================= */

/* Navbar simple de retorno */
.btn-nav-simple {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-simple:hover {
    color: white;
}

.catalog-header {
    padding: 150px 0 80px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

/* Fila del Caso de Estudio */
.case-study-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Mitad Texto, Mitad Monitor */
    gap: 60px;
    align-items: center;
    padding: 40px 0;
}

/* Número grande (01, 02...) */
.case-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    display: block;
    margin-bottom: -20px;
    font-family: var(--font-display);
}

/* Cajas de Análisis (Problema vs Solución) */
.analysis-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.analysis-box {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.analysis-box.problem {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.analysis-box.solution {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.analysis-box h4 {
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.analysis-box.problem h4 {
    color: #ef4444;
}

/* Rojo */
.analysis-box.solution h4 {
    color: #10b981;
}

/* Verde */

.analysis-box p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

/* Botones Toggle (Antes / Propuesta) */
.toggle-controls {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.toggle-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-btn.active {
    background: #222;
    color: white;
    border-color: #555;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.toggle-btn:hover:not(.active) {
    color: #ccc;
    border-color: #444;
}

/* Divisor entre casos */
.case-divider {
    border: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 80px 0;
}

/* Responsive para la nueva página */
@media (max-width: 900px) {
    .case-study-row {
        grid-template-columns: 1fr;
        /* Una columna en móvil */
        gap: 40px;
    }

    .case-study-row:nth-child(even) .case-info {
        order: 2;
        /* Para alternar el orden si quisieras */
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }
}


/* Estilos adicionales para los nuevos planes de Mikey Design Studio */

.p-ideal-para {
    display: block;
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-card b {
    color: #61dafb;
    /* Resalta los dominios .com o .shop */
}

/* Mejora el contraste del botón "Solicitar" que era muy oscuro */
.btn-outline {
    border: 1px solid #444;
    background: #1a1a1a;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #333;
    border-color: #6e5af7;
    transform: translateY(-2px);
}

/* Animación sutil para el plan destacado */
.price-card.featured {
    transform: scale(1.05);
    z-index: 2;
}

@media (max-width: 768px) {
    .price-card.featured {
        transform: scale(1);
    }
}



/* --- NUESTRO PROCESO --- */
.process-section {
    padding: 100px 0;
    background: var(--bg-color);
}

/* --- NUESTRO PROCESO (4 EN FILA) --- */
.process-grid {
    display: grid;
    /* Forzamos 4 columnas iguales en escritorio */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.process-card {
    background: var(--card-bg);
    padding: 30px 20px;
    /* Reduje un poco el padding lateral para que quepa mejor */
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Ajuste para que se vea bien en Tablets (2 por fila) */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajuste para que se vea bien en Celulares (1 por fila) */
@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.process-card:hover {
    border-color: #6e5af7;
    transform: translateY(-5px);
}

.process-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(110, 90, 247, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.process-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- TESTIMONIOS ESTILO BURBUJA --- */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.testimonial-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.testimonial-bubble {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    /* Espacio para el pico de la burbuja */
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
}

/* El "pico" de la burbuja */
.testimonial-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--card-bg);
    z-index: 1;
}

.testimonial-bubble::before {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid var(--border-color);
    /* Color del borde */
}

.test-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #6e5af7;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.testimonial-bubble p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* --- CLIENT META (AVATAR Y NOMBRES) --- */
.client-meta {
    text-align: center;
}

.client-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 3px solid #6e5af7;
    padding: 5px;
    margin: 0 auto 15px;
    background: var(--bg-color);
}

.client-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.client-meta strong {
    display: block;
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.client-meta span {
    color: #6e5af7;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* =========================================
   PARCHE DE CORRECCIÓN: CABECERA Y BOTONES
   (Pegar al final del archivo)
   ========================================= */

/* 1. Forzamos la alineación de la navbar */
.nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* 2. Creamos el grupo de acciones para que el botón no flote */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    order: 3; /* Asegura que esté al final a la derecha */
}

/* 3. Ajustamos el botón de tema para que no tenga márgenes locos */
.theme-toggle {
    margin: 0 !important; 
    position: relative !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 4. Ajustes para celulares: Que el sol/luna no se pierda */
@media (max-width: 900px) {
    .nav-actions {
        gap: 10px;
    }
    
    .btn-nav {
        display: none !important; /* Ocultamos el botón largo para que entre el sol */
    }

    .theme-toggle {
        width: 38px !important;
        height: 38px !important;
    }
}

/* 5. Estilo específico para el icono en modo claro */
[data-theme="light"] .theme-toggle i {
    color: #f59e0b; /* Color naranja sol */
}



/* =========================================
   CORRECCIÓN FINAL: VISIBILIDAD MÓVIL
   ========================================= */

@media (max-width: 900px) {
    /* 1. Ocultamos los links de texto y el botón largo de Contactar */
    .nav-links, 
    .btn-nav {
        display: none !important;
    }

    /* 2. Nos aseguramos de que el botón de 3 rayitas sea visible */
    .menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        color: var(--text-main);
        background: none;
        border: none;
        cursor: pointer;
        order: 4; /* Lo posiciona al final de la derecha */
    }

    /* 3. Ajustamos el contenedor de acciones para que quepan el Sol y las Rayitas */
    .nav-actions {
        display: flex !important;
        align-items: center;
        gap: 15px;
    }

    /* 4. Forzamos que la navbar sea flexible y no amontone el logo */
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        width: 100%;
    }
}

/* ESTILOS DE PASARELA PROFESIONAL */
.portfolio-slider-container {
    padding: 40px 0;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    gap: 30px;
    scrollbar-width: none; /* Oculta barra en Firefox */
}

.portfolio-slider-container::-webkit-scrollbar {
    display: none; /* Oculta barra en Chrome/Safari */
}

.portfolio-track {
    display: flex;
    gap: 30px;
}

.portfolio-card-pro {
    flex: 0 0 400px; /* Ancho de cada tarjeta en la pasarela */
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    scroll-snap-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.portfolio-card-pro:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--purple);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.card-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card-pro:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--purple);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
}

.card-info-pro {
    padding: 25px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.05));
}

.card-info-pro h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-meta-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.card-meta-pro span:first-child {
    font-weight: 800;
    color: var(--purple);
    font-size: 1.1rem;
}

.card-meta-pro span:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}



/* ESTILOS DE CARRUSEL PREMIUM */
.portfolio-slider-container {
    padding: 60px 0;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory; /* Hace que las tarjetas se "peguen" al centro al deslizar */
    scrollbar-width: none; /* Oculta barra en Firefox */
    -ms-overflow-style: none; /* Oculta barra en IE/Edge */
}

.portfolio-slider-container::-webkit-scrollbar {
    display: none; /* Oculta barra en Chrome/Safari */
}

.portfolio-track {
    display: flex;
    gap: 40px;
    padding-right: 50px; /* Espacio final para que la última tarjeta no se corte */
}

.portfolio-card-pro {
    flex: 0 0 420px; /* Ancho profesional de cada tarjeta */
    background: var(--card-bg);
    border-radius: 32px; /* Bordes más redondeados para look 2026 */
    border: 1px solid var(--border-color);
    scroll-snap-align: center;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-card-pro:hover {
    transform: translateY(-20px);
    border-color: var(--purple);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-card-pro:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
}

.card-info-pro {
    padding: 30px;
    flex-grow: 1;
}

.card-info-pro h3 {
    margin: 10px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.card-info-pro p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
}

.card-meta-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.price-tag {
    color: var(--purple);
    font-weight: 900;
    font-size: 1.2rem;
}

.time-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Ajuste responsivo para celulares */
@media (max-width: 768px) {
    .portfolio-card-pro {
        flex: 0 0 85vw; /* Casi todo el ancho del celular */
    }
}

/* Cambia el cursor para indicar que es arrastrable */
.portfolio-slider-container {
    cursor: grab;
}

.portfolio-slider-container.active-drag {
    cursor: grabbing;
    user-select: none;
}

.portfolio-slider-container {
    width: 100%;
    overflow-x: auto; /* Esto permite el movimiento lateral */
    display: block;
    white-space: nowrap; /* Evita que las tarjetas bajen a la siguiente línea */
    padding: 40px 0;
}

.portfolio-track {
    display: flex; /* Esto alinea las 4 tarjetas en fila */
    gap: 30px;
}


/* Brillo especial para el avatar de éxito de Apuzen */
.testimonial-wrapper:hover .client-avatar {
    border-color: var(--blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Mejora el espaciado para que el texto largo no se amontone */
.testimonial-bubble p {
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}


/* Ajuste de cuadrícula para 6 servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en computadoras */
    gap: 30px;
    margin-bottom: 60px;
}

/* Colores de iconos nuevos */
.icon-sq.pink {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
}

.icon-sq.cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
}

/* Responsivo para tablets y celulares */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 columna en celulares */
    }
}
/* =========================================
   DISEÑO SPLIT SCREEN (50/50 FIJO)
   ========================================= */

.code-comparison-section {
    background-color: var(--bg-color);
    padding: 80px 0;
}

/* CAJA CONTENEDORA PRINCIPAL */
.split-box {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% y 50% */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    height: 550px; /* Altura fija para que se vea bien */
}

/* --- COLUMNA IZQUIERDA (CÓDIGO) --- */
.code-col {
    background: #1e1e1e; /* Fondo oscuro siempre para código */
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
}

.editor-header {
    padding: 12px 20px;
    background: #252526;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-controls { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.file-name {
    color: #ccc;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    opacity: 0.8;
}

.editor-content {
    padding: 25px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d4d4d4;
    overflow-y: auto; /* Scroll si el código es muy largo */
    flex-grow: 1;
}

/* Colores de Sintaxis */
.token-kw { color: #569cd6; } 
.token-func { color: #dcdcaa; } 
.token-str { color: #ce9178; } 
.token-comment { color: #6a9955; font-style: italic; }
.token-obj { color: #9cdcfe; }

.cursor {
    display: inline-block;
    width: 2px; height: 18px; background: #fff;
    animation: blink 1s infinite; margin-left: 2px; vertical-align: middle;
}

/* --- COLUMNA DERECHA (NAVEGADOR) --- */
.visual-col {
    background: #f0f2f5; /* Fondo gris claro detrás del navegador */
    padding: 20px; /* Margen interno para que el navegador "flote" */
    display: flex;
    flex-direction: column;
}

.browser-mockup {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.browser-bar {
    background: #ffffff;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-arrows i { color: #ccc; font-size: 0.8rem; margin-right: 8px; }

.address-bar {
    background: #f1f3f4;
    border-radius: 20px;
    padding: 5px 15px;
    flex-grow: 1;
    font-size: 0.8rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}
.address-bar i { color: #10b981; }

.iframe-container {
    flex-grow: 1;
    background: white;
    position: relative;
}

.live-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* RESPONSIVE: EN CELULAR UNO DEBAJO DE OTRO */
@media (max-width: 900px) {
    .split-box {
        grid-template-columns: 1fr; /* Una sola columna */
        height: auto;
    }
    .code-col { height: 350px; } /* Altura fija para el código */
    .visual-col { height: 400px; padding: 0; }
    .browser-mockup { border-radius: 0; border: none; }
}
/* =========================================
   ESTILO NAVEGADOR EN VIVO (IFRAME)
   ========================================= */

.visual-panel {
    background: var(--bg-color);
    padding: 20px; /* Un poco de margen para que se vea el marco */
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-mockup {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Barra superior del navegador */
.browser-bar {
    background: #f1f3f4; /* Gris navegador */
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #ddd;
}

.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: #ccc;
}
/* Colores tipo Mac si prefieres */
.browser-bar .dots span:nth-child(1) { background: #ff5f56; }
.browser-bar .dots span:nth-child(2) { background: #ffbd2e; }
.browser-bar .dots span:nth-child(3) { background: #27c93f; }

.address-bar {
    flex-grow: 1;
    background: white;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #555;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.address-bar i { color: #10b981; font-size: 0.7rem; }

/* El Iframe (La web real) */
.live-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* =========================================
   ESTILOS FINAL (AUTO-SCROLL + BIG CODE)
   ========================================= */

.code-comparison-section {
    background-color: var(--bg-color);
    padding: 80px 0;
}

.split-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 600px; /* Altura fija importante */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* --- IZQUIERDA: EDITOR --- */
.code-col {
    background: #1e1e1e; /* Fondo oscuro VS Code */
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
}

.editor-header {
    background: #252526;
    padding: 10px 20px;
    display: flex; align-items: center; gap: 15px;
    border-bottom: 1px solid #111;
}

.window-controls { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.file-name { color: #ccc; font-family: monospace; font-size: 0.8rem; }

.editor-content {
    padding: 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem; /* Letra un poco más chica para que quepa más */
    line-height: 1.5;
    color: #d4d4d4;
    overflow-y: auto; /* Permite scroll si el código es eterno */
    flex-grow: 1;
    scroll-behavior: smooth;
}

/* Colores Sintaxis HTML */
.tag { color: #569cd6; } /* Azul (<div, <header) */
.attr { color: #9cdcfe; } /* Celeste (class=, id=) */
.val { color: #ce9178; } /* Naranja ("hero", "btn") */
.content { color: #d4d4d4; } /* Blanco (Texto) */
.comment { color: #6a9955; font-style: italic; } /* Verde (Comentarios) */

.cursor {
    border-right: 2px solid white;
    animation: blink 0.8s infinite;
}

/* --- DERECHA: VISUAL SCROLL --- */
.visual-col {
    background: #f3f4f6;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.browser-mockup {
    background: white;
    height: 100%;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.browser-bar {
    background: white;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 15px;
}
.nav-arrows { color: #d1d5db; font-size: 0.8rem; letter-spacing: 5px; }
.address-bar {
    background: #f3f4f6; flex-grow: 1;
    padding: 6px 15px; border-radius: 20px;
    font-size: 0.75rem; color: #6b7280;
    display: flex; align-items: center; gap: 8px;
}
.address-bar i { color: #10b981; }

/* VENTANA MÁGICA DE SCROLL */
.scroll-window {
    flex-grow: 1;
    overflow: hidden; /* Oculta lo que se sale */
    position: relative;
    background: #fff;
}

.scrolling-web {
    width: 100%;
    height: auto;
    display: block;
    /* LA ANIMACIÓN */
    animation: autoScroll 15s linear infinite; 
}

/* Pausa al pasar el mouse para ver detalles */
.visual-col:hover .scrolling-web {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% { transform: translateY(0); }
    15% { transform: translateY(0); } /* Espera un poco arriba */
    100% { transform: translateY(calc(-100% + 500px)); } /* Sube hasta el final */
}

/* Responsive */
@media (max-width: 900px) {
    .split-box { grid-template-columns: 1fr; height: auto; }
    .code-col { height: 400px; }
    .visual-col { height: 400px; }
}

/* =========================================
   FIX LAYOUT & COLORES (Agregar al final)
   ========================================= */

/* Arreglo para que la grilla no se deforme */
.split-box {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% exacto */
    height: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.split-col {
    min-width: 0; /* ¡IMPORTANTE! Evita que el contenido ensanche la columna */
}

/* Arreglo del área de código */
.editor-content {
    padding: 20px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #d4d4d4;
    overflow-y: auto;
    flex-grow: 1;
}

/* Esto hace que si la línea es larga, baje al siguiente renglón en vez de empujar */
.editor-content pre {
    white-space: pre-wrap; 
    word-break: break-all;
    margin: 0;
}

/* COLORES DE SINTAXIS (Mejorados para fondo oscuro) */
.tag-name { color: #569cd6; font-weight: bold; } /* Azul claro (div, header) */
.attr-name { color: #9cdcfe; } /* Celeste (class, src) */
.attr-value { color: #ce9178; } /* Naranja ("...") */
.tag-bracket { color: #808080; } /* Gris (< >) */
.comment { color: #6a9955; font-style: italic; } /* Verde */
.plain-text { color: #d4d4d4; } /* Blanco */


/* =========================================
   RESPONSIVE FIX: CELULARES (Móvil)
   ========================================= */

@media (max-width: 900px) {
    
    /* 1. Cambiar de "Lado a Lado" a "Uno debajo del otro" */
    .split-box {
        grid-template-columns: 1fr; /* Una sola columna */
        height: auto; /* Altura libre, que se adapte al contenido */
        display: flex; /* Usamos flex para ordenar fácil */
        flex-direction: column-reverse; /* TRUCO: Pone el Visual PRIMERO y el Código DEBAJO */
    }

    /* 2. Ajustar la altura de cada panel */
    .split-col {
        width: 100%;
        min-height: 350px; /* Altura mínima para que se vea algo */
    }

    /* 3. Panel Visual (La Web): Le damos prioridad visual */
    .visual-col {
        height: 350px; /* Tamaño fijo para la ventana del navegador */
        border-bottom: 1px solid var(--border-color);
        background: #f3f4f6; /* Fondo gris claro para contraste */
    }

    /* 4. Panel de Código: Ajustes para que quepa */
    .code-col {
        height: 300px; /* Un poco más bajo que el visual */
        border-right: none; /* Quitamos la línea de división lateral */
    }

    .editor-content {
        font-size: 13px; /* Letra más pequeña en celular */
        padding: 15px; /* Menos relleno */
    }

    /* 5. Ajustar el título de la sección para que no ocupe tanto */
    .code-comparison-section .section-title {
        font-size: 2rem; /* Título más pequeño */
    }
    
    .code-comparison-section {
        padding: 60px 0; /* Menos aire arriba y abajo */
    }
}

/* =========================================
   CORRECCIÓN TÍTULO HERO (MÓVIL)
   ========================================= */
@media (max-width: 600px) {
    .hero-title {
        /* Reducimos la letra para que quepa "Transformamos" */
        font-size: 2.1rem !important; 
        
        /* Evita que se corten las palabras largas */
        word-wrap: break-word;
        overflow-wrap: break-word;
        
        /* Ajuste de márgenes */
        padding: 0 10px;
    }

    /* Ocultamos los saltos de línea forzados (<br>) para que 
       el texto fluya natural en pantallas pequeñas */
    .hero-title br {
        display: none;
    }
}


/* =========================================
   CONTACTO PREMIUM (GLASS VARIABLE)
   ========================================= */
.contact-premium {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.contact-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--card-bg); /* Cambia según el tema */
    padding: 60px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    align-items: center;
}

.contact-meta-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-row i { color: var(--blue); }

/* Formulario Estilizado */
.form-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-box label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.contact-form-refined input, 
.contact-form-refined select, 
.contact-form-refined textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.contact-form-refined input:focus {
    border-color: var(--purple);
}

/* =========================================
   FOOTER CORPORATIVO (ESTILO PEX TRAVEL)
   ========================================= */
.main-footer {
    padding: 80px 0 20px;
    background-color: var(--bg-color); /* Blanco en modo claro */
    border-top: 1px solid var(--border-color);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h4 {
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.fiscal-data {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.highlight-tag {
    color: #40e0d0; /* Turquesa corporativo */
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li { margin-bottom: 12px; }

.footer-list a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
}

.footer-list a:hover { color: var(--blue); }

.reclamaciones-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 12px;
}

.footer-socials-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* DISCLAIMER LEGAL */
.footer-disclaimer-box {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
}

.footer-disclaimer-box p {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
}

/* BARRA FINAL EXTREMOS */
.footer-bottom-flex {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text, .credit-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.credit-text a {
    color: var(--text-main);
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-card-wrapper { grid-template-columns: 1fr; padding: 30px; }
    .footer-top-grid { grid-template-columns: 1fr; }
    .footer-bottom-flex { flex-direction: column; gap: 10px; text-align: center; }
}




/* =========================================
   NUEVA SECCIÓN: COMPARATIVA (CÓDIGO VS PLANTILLAS)
   ========================================= */
.comparison-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.comparison-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0; /* Pegados o separados por el badge */
    max-width: 1000px;
    margin: 50px auto 0;
    position: relative;
}

@media (max-width: 900px) {
    .comparison-container {
        flex-direction: column;
        gap: 40px;
    }
}

/* Tarjetas */
.compare-card {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    position: relative;
    transition: 0.3s;
}

.compare-card.bad {
    border-radius: 20px 0 0 20px;
    border-right: none;
    opacity: 0.7; /* Un poco apagado */
}

.compare-card.good {
    border-radius: 0 20px 20px 0;
    background: var(--card-hover); /* Un poco más claro */
    border: 1px solid var(--purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
    z-index: 2;
    transform: scale(1.05); /* Ligeramente más grande */
}

@media (max-width: 900px) {
    .compare-card.bad, .compare-card.good {
        border-radius: 20px;
        border: 1px solid var(--border-color);
        transform: none;
    }
    .compare-card.good {
        border-color: var(--purple);
    }
}

/* Headers de tarjetas */
.compare-header {
    text-align: center;
    margin-bottom: 30px;
}

.compare-header i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.compare-card.bad .compare-header i { color: #ef4444; } /* Rojo */
.compare-card.good .compare-header i { color: #22d3ee; } /* Cyan */

.compare-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.compare-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Listas */
.compare-list {
    list-style: none;
}

.compare-list li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.compare-card.bad .compare-list i { color: #ef4444; margin-top: 4px;}
.compare-card.good .compare-list i { color: #10b981; margin-top: 4px;} /* Verde check */

.compare-list strong { color: var(--text-main); }

/* VS Badge central */
.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #111;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-style: italic;
    z-index: 10;
}

@media (max-width: 900px) {
    .vs-badge {
        position: static;
        margin: -20px auto;
        transform: none;
    }
}

/* Tag de "Mejor Opción" */
.pop-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--purple), var(--blue));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* =========================================
   NUEVA SECCIÓN: CONTACTO & FORMULARIO
   ========================================= */
.contact-premium {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.contact-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--card-bg);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    align-items: center;
}

.contact-meta-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 1rem;
}

.meta-row i {
    color: var(--blue);
    font-size: 1.2rem;
    width: 20px; text-align: center;
}

/* Formulario Estilizado */
.form-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-box {
    margin-bottom: 25px;
}

.input-box label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form-refined input, 
.contact-form-refined select, 
.contact-form-refined textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

/* Color especial para las opciones del select en modo oscuro */
.contact-form-refined select option {
    background: #111;
    color: white;
}
[data-theme="light"] .contact-form-refined select option {
    background: white;
    color: black;
}

.contact-form-refined input:focus,
.contact-form-refined select:focus,
.contact-form-refined textarea:focus {
    border-color: var(--purple);
}

/* Responsive del Contacto */
@media (max-width: 900px) {
    .contact-card-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .form-split {
        grid-template-columns: 1fr;
    }
}

/* Asegura que la primera columna apile los elementos verticalmente */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea todo a la izquierda */
}

/* Ajuste para los íconos en la primera columna */
.footer-socials-row.icon-left {
    margin-top: 30px; /* Más espacio separation del texto de arriba */
    justify-content: flex-start; /* Asegura que empiecen desde la izquierda */
}

/* Barra final centrada */
.footer-bottom-flex.centered {
    justify-content: center; /* Centra el texto horizontalmente */
    text-align: center;
}

/* ELIMINA o comenta la clase .credit-text si ya no la usas, 
   aunque al quitarla del HTML ya no estorba. */
/* .credit-text { ... } */
/* Responsive del Footer */
@media (max-width: 900px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}




/* =========================================
   CORRECCIÓN FINAL: ALINEACIÓN FOOTER
   ========================================= */

/* 1. Forzar que la columna de la marca centre TODO (Logo, Texto, Iconos) */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center !important; /* Centra horizontalmente los bloques */
    text-align: center !important;  /* Centra el texto */
}

/* 2. Ordenar la fila de íconos */
.footer-socials-row {
    display: flex;
    justify-content: center !important; /* Los empuja al centro */
    gap: 25px; /* Espacio limpio entre cada ícono */
    margin-top: 20px; /* Aire entre el texto y los íconos */
    width: 100%; /* Asegura que tomen el ancho completo para centrarse */
}

/* 3. Ajuste visual de los íconos para que destaquen */
.footer-socials-row i {
    font-size: 1.4rem; /* Tamaño ideal */
    color: #94a3b8;    /* Color gris suave (slate-400) */
    transition: all 0.3s ease;
}

.footer-socials-row i:hover {
    color: #8b5cf6; /* Morado al pasar el mouse */
    transform: translateY(-3px); /* Pequeña elevación */
}




/* =========================================
   CORRECCIÓN: LIBRO DE RECLAMACIONES ESTABLE
   ========================================= */

.reclamaciones-item {
    display: flex;
    justify-content: flex-start; /* En PC se alinea a la izquierda con el texto */
    width: 100%;
    margin-top: 15px;
}

.reclamaciones-item a {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el icono y texto internamente */
    gap: 12px;
    
    /* ESTO ES LA CLAVE PARA QUE NO SE MUEVA: */
    width: 100%;           /* Intenta ocupar espacio... */
    max-width: 260px;      /* ...pero con un límite fijo */
    box-sizing: border-box; /* Asegura que el borde no sume tamaño extra */
    
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efecto Hover sin cambiar tamaño (evita saltos) */
.reclamaciones-item a:hover {
    border-color: var(--text-main);
    background: var(--card-hover);
    transform: translateY(-2px);
}

.reclamaciones-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap; /* Evita que el texto baje de línea */
}

/* RESPONSIVE: En celular lo centramos todo */
@media (max-width: 900px) {
    .reclamaciones-item {
        justify-content: center; /* Centra el bloque entero en móvil */
    }
}


/* =========================================
   CORRECCIÓN: SLIDER DE 1 EN 1 (UNITARIO)
   ========================================= */

/* Contenedor principal con las flechas a los lados */
.slider-wrapper-manual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px; /* Ancho máximo controlado para que no se estire demasiado */
    margin: 0 auto;
    position: relative;
}

/* La ventana donde se ve el testimonio */
.testimonial-slider-container {
    overflow: hidden; /* Ocultamos lo que sobra a los lados */
    width: 100%;
    scroll-behavior: smooth; 
    scroll-snap-type: x mandatory;
}

/* El riel que se mueve */
.testimonial-track {
    display: flex;
    width: 100%;
    /* Quitamos el gap para que el salto sea exacto */
    gap: 0; 
}

/* CADA TESTIMONIO OCUPA EL 100% DEL ESPACIO */
.testimonial-wrapper {
    min-width: 100%; /* OBLIGATORIO: Ocupa todo el ancho disponible */
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 10px 40px; /* Un poco de margen interno para que no pegue a los bordes */
    box-sizing: border-box;
}

/* Ajuste de las flechas */
.nav-arrow {
    flex-shrink: 0; /* Evita que las flechas se aplasten */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 5;
}

.nav-arrow:hover {
    background: var(--purple);
    color: white;
    transform: scale(1.1);
}

/* Responsive: En celular las flechas pueden ir abajo o mantenerse si caben */
@media (max-width: 768px) {
    .testimonial-wrapper {
        padding: 0 10px; /* Menos padding en celular */
    }
    .slider-wrapper-manual {
        gap: 5px;
    }
}


