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

:root {
    --primary: #7d51bc;
    --primary-dark: #634598;
    --secondary: #2298d8;
    --secondary-light: #7ab3da;
    --dark: #1a1c1d;
    --light: #eeeeee;
    --white: #ffffff;
    --accent: #8462bd;
}

.mobile-logo-container {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px;
}

/* Estilos del Nuevo Banner */
.top-promo-banner {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    width: 100%;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
    display: flex;
    align-items: center;
}

.container.promo-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.promo-img {
    height: 60px;
    width: auto;
    object-fit: cover;
    object-position: left center;
    margin: 0;
    padding: 0;
}

.text-desktop {
    font-weight: 600;
    font-size: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
    flex-grow: 1;
    margin: 0 20px;
}

.text-mobile {
    display: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    line-height: 1.2;
}

.btn-promo {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    flex-shrink: 0;
    transform: translateY(0);
}

.btn-promo:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* AJUSTES PARA HEADER Y HERO */
header {
    top: 60px !important;
}

.hero {
    padding-top: 200px !important;
}

/* RESPONSIVO */
.mobile-cta-container {
    display: none;
}

@media (max-width: 991px) {
    .top-promo-banner {
        height: 50px;
    }

    .mobile-cta-container {
        display: block;
        margin-top: 20px;
        width: 100%;
        text-align: center;
        padding-bottom: 20px;
    }

    .mobile-cta-container .btn-promo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        padding: 15px 20px;
        box-sizing: border-box;
        font-size: 16px;
        text-align: center;
        background: var(--secondary) !important;
        color: #fff !important;
        border: none;
        white-space: nowrap;
    }

    .mobile-cta-container .btn-promo:hover {
        background: var(--secondary) !important;
        color: #fff !important;
    }

    .mobile-cta-container .btn-promo::after {
        display: none;
    }

    .btn-promo-accent {
        background: var(--accent-gradient);
        color: white;
    }

    .btn-promo-secondary {
        background: var(--secondary-gradient);
        color: white;
    }

    .promo-img {
        display: none;
        /* Oculta la imagen en móviles */
    }

    .text-desktop {
        display: none;
    }

    .text-mobile {
        display: block;
        font-size: 15px;
        text-align: center;
        flex-grow: 1;
        margin: 0 10px;
    }

    .btn-promo {
        padding: 6px 15px;
        /* Ajusta el tamaño del botón en móviles */
        font-size: 12px;
    }

    .container.promo-flex {
        justify-content: space-between;
        /* Distribuye los elementos */
        padding: 0 15px;
    }

    header {
        top: 50px !important;
    }

    .hero {
        padding-top: 190px !important;
    }
}

/* HEADER / NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    object-fit: contain;
    object-position: center;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

/* Ajuste de tamaño y estilo para los enlaces del menú */
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    background: none !important;
}

/* Barra morada que aparece al pasar el cursor */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Efecto hover - barra crece y texto cambia de color */
.nav-links a:hover,
.nav-links a:focus {
    color: var(--secondary) !important;
    transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* Estilo activo (cuando la sección está en vista) */
.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: var(--primary) !important;
    font-weight: 700;
    transform: translateY(-1px);
}

.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
    width: 100%;
}

/* Estilo específico para el enlace #paquetes para mantener coherencia */
.nav-links a[href="#paquetes"] {
    color: inherit;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.16s ease, transform 0.12s ease;
}

.nav-links a[href="#paquetes"]:hover,
.nav-links a[href="#paquetes"]:focus,
.nav-links a[href="#paquetes"].active {
    color: var(--primary) !important;
    transform: translateY(-1px);
}

/* Responsive: tamaño de fuente más pequeño en pantallas menores a 768px */
@media (max-width: 768px) {
    .nav-links a {
        font-size: 20px;
    }
}

/* Menú móvil: estilos para el botón hamburguesa */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

body.menu-open {
    overflow: hidden;
}

/* Asegura que no haya colores fijos por reglas inline o residuales */
.nav-links a[style] {
    color: inherit !important;
    background: none !important;
}

/* HERO SECTION - MODERN DESIGN */
.hero {
    padding: 140px 24px 80px;
    background: linear-gradient(135deg, #1a1c1d 0%, #2a2d3e 50%, #1a1c1d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(125, 81, 188, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 152, 216, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(132, 98, 189, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(125, 81, 188, 0.2);
    border: 1px solid rgba(125, 81, 188, 0.3);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

#animated-text {
    font-weight: 700;
    color: var(--secondary);
    border-right: 2px solid var(--primary);
    padding-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary);
    }
}

.hero-content {
    color: var(--white);
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: #2298d8;
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(34, 152, 216, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    min-width: 150px;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #1a85c2;
    box-shadow: 0 12px 40px rgba(34, 152, 216, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 550px;
}

.mockup-browser {
    background: #2a2d3e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-header {
    background: #1a1c1d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot.red {
    background: #ff5f57;
}

.browser-dot.yellow {
    background: #febc2e;
}

.browser-dot.green {
    background: #28c840;
}

.browser-url {
    flex: 1;
    background: #2a2d3e;
    border-radius: 6px;
    padding: 6px 12px;
    margin-left: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.browser-content {
    padding: 20px;
    background: linear-gradient(180deg, #1a1c1d 0%, #2a2d3e 100%);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.code-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.code-number {
    color: rgba(255, 255, 255, 0.3);
    width: 24px;
    text-align: right;
}

.code-text {
    color: rgba(255, 255, 255, 0.8);
}

.code-text .tag {
    color: #ff79c6;
}

.code-text .attr {
    color: #50fa7b;
}

.code-text .value {
    color: #f1fa8c;
}

.code-text .comment {
    color: #6272a4;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-card.card-1 {
    top: -20px;
    right: -30px;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-2 {
    bottom: 40px;
    left: -40px;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.card-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.card-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(125, 81, 188, 0.2);
    border: 1px solid rgba(125, 81, 188, 0.3);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-badge::before {
    content: '🚀';
}

/* AJUSTES ESPECÍFICOS PARA MÓVILES */
@media (max-width: 768px) {

    /* Ocultar el elemento visual del Hero en móviles */
    .hero-visual {
        display: none !important;
    }

    /* Opcional: Centrar el contenido del texto del Hero al quitar la imagen */
    .hero-content {
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* =========================
   PAQUETES (versión simplificada)
   Solo: título, descripción, precio y botón
   ========================= */

#paquetes {
    background: var(--white);
    padding: 72px 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
    margin-top: 150px;
}

.section-header h2 {
    font-size: 32px;
    margin: 0 0 8px;
    color: var(--dark);
    font-weight: 700;
}

.section-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0 auto;
    max-width: 1100px;
}

/* Card */
.package-card {
    background: var(--white);
    border: 2px solid #666666;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 260px;
    /* suficiente espacio para precio + botón */
}

/* Destacado */
.package-card.featured {
    border-color: var(--primary);
    box-shadow: 0 16px 50px rgba(125, 81, 188, 0.12);
    transform: translateY(-5px);
}

.package-card.premium {
    border-color: #FFD700;
    box-shadow: 0 16px 50px rgba(255, 215, 0, 0.12);
}

/* Badge */
.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.package-card.premium .package-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

/* Title & subtitle */
.package-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 6px;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
}

.package-card p {
    color: #888;
    margin: 0 0 12px;
    font-size: 14px;
}

/* ===== Precios: layout y colores por paquete ===== */
.package-price {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    margin: 12px 0;
    color: inherit;
}

/* Prefijo MXN$ */
.package-price .price-currency {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

/* Número principal */
.package-price .price-main {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    display: inline-block;
}

/* Nota de periodo (ej: /anual) */
.package-price .price-period {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    display: inline-block;
    transform: translateY(-6px);
    margin-left: 2px;
    /* cercano al precio */
    white-space: nowrap;
}

/* Colores por paquete */
.package-card.premium .price-main {
    color: #FFD700;
    /* dorado */
}

.package-card.featured .price-main {
    color: var(--primary);
    /* profesional: color principal (azul/morado) */
}

.packages-grid .package-card:not(.premium):not(.featured) .price-main {
    color: #666666;
    /* básico: gris */
}

/* Botón (usa tu clase global .btn-primary si existe) */
.btn-primary {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 18px;
    transition: all 0.3s;
}

/* Hover botón */
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(34, 152, 216, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 992px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .package-price .price-main {
        font-size: 42px;
    }

    .package-price .price-currency {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    #paquetes {
        padding: 4px 15px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .package-card {
        padding: 28px 18px;
        min-height: auto;
    }

    .package-price .price-main {
        font-size: 38px;
    }

    .package-price .price-period {
        transform: translateY(-4px);
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .package-price .price-main {
        font-size: 34px;
    }

    .package-price .price-currency {
        font-size: 14px;
    }

    .package-price .price-period {
        font-size: 12px;
        transform: translateY(-3px);
    }
}

/* ============================================================
   CENTRAR SUBTÍTULO DE PAQUETES (DESKTOP)
   ============================================================ */

@media (min-width: 768px) {

    /* Asegura que el contenedor de encabezado de sección esté centrado */
    #paquetes .section-header,
    #paquetes-mobile .section-header {
        text-align: center !important;
        margin-top: 100px;
        margin-bottom: 50px !important;
        /* Espacio extra antes de las tarjetas */
        width: 100% !important;
        max-width: 800px !important;
        /* Evita que el texto sea demasiado largo horizontalmente */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Estilo específico para el párrafo (Soluciones accesibles...) */
    #paquetes .section-header p,
    #paquetes-mobile .section-header p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        font-size: 18px !important;
        color: #64748b !important;
        /* Gris elegante */
    }

    /* Asegura que el título H2 también esté centrado */
    #paquetes .section-header h2,
    #paquetes-mobile .section-header h2 {
        text-align: center !important;
        margin-bottom: 10px !important;
    }
}

/* ============================
   CSS: agrandar y restyling de los nombres de paquete
   Pegar al final del stylesheet para que haga override
   ============================ */

/* Tamaño y peso en desktop */
@media (min-width: 768px) {

    /* Hace más grande el nombre principal del paquete */
    .package-card h3 {
        font-size: 26px !important;
        /* tamaño aumentado en desktop */
        font-weight: 800 !important;
        line-height: 1.05 !important;
        margin: 8px 0 6px !important;
        color: #0f172a !important;
        /* color oscuro legible */
        text-transform: none !important;
        /* conserva mayúsculas/minúsculas tal como en HTML */
        letter-spacing: 0.2px !important;
    }

    /* Ajustes para el badge (si quieres que no compita visualmente con el título) */
    .package-card .package-badge {
        font-size: 13px !important;
        font-weight: 700 !important;
        padding: 6px 10px !important;
        margin-bottom: 8px !important;
        display: inline-block !important;
    }
}

/* Tamaño más moderado en móvil para mantener el layout */
@media (max-width: 767px) {
    .package-card h3 {
        font-size: 20px !important;
        font-weight: 700 !important;
        margin: 6px 0 4px !important;
        line-height: 1.1 !important;
    }
}

/* Wrapper */
.features-wrapper {
    margin: 0px auto 0px;
    max-width: 1200px;
    padding: 0 20px;
    padding-bottom: 100px;
    overflow-x: auto;
}

/* Tabla */
.features-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 840px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(18, 24, 31, 0.06);
    font-family: 'Inter', 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #222;
}

/* Thead */
.features-table thead {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96));
}

/* Estilo general para los encabezados de la tabla */
.features-table thead th {
    font-size: 20px !important;
    /* Aumentamos el tamaño */
    font-weight: 800 !important;
    /* Grosor extra para máxima legibilidad */
    text-transform: uppercase;
    /* Opcional: hace que resalten más */
    letter-spacing: 1px;
    /* Espaciado entre letras */
    padding: 20px 15px !important;
    /* Más espacio interno */
    color: var(--primary);
    /* Aseguramos que use el color principal de tu marca */
    vertical-align: middle;
}

/* Colores específicos para cada columna de paquete en el header */
.features-table th.pkg-premium {
    color: #6366f1 !important;
    /* Color índigo/premium */
}

.features-table th.pkg-featured {
    color: var(--secondary) !important;
    /* Tu color azul/morado secundario */
}

.features-table th.pkg-basic {
    color: #64748b !important;
    /* Un gris azulado profesional */
}

/* Mejora de la primera columna (Nombres de funcionalidades) */
.features-table th.feature-name {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    padding-left: 20px !important;
}

/* Efecto visual para que las columnas de precios se vean como bloques */
.features-table td {
    font-size: 16px;
    padding: 15px !important;
}

/* Ajuste para los iconos dentro de la tabla */
.icon-check svg {
    width: 24px;
    height: 24px;
}

/* Media query para asegurar que estos cambios solo afecten a Desktop */
@media (max-width: 767px) {
    .features-table thead th {
        font-size: 14px !important;
        padding: 10px 5px !important;
    }
}

/* First column header larger */
.features-table thead th:first-child {
    text-align: left;
    font-size: 14px;
}

/* Colored package headers */
.features-table thead th.pkg-premium {
    color: #B8860B;
}

.features-table thead th.pkg-featured {
    color: var(--primary);
}

.features-table thead th.pkg-basic {
    color: #666;
}

/* Cells & grid lines */
.features-table th.feature-name,
.features-table td {
    padding: 14px 18px;
    text-align: center;
    vertical-align: middle;
    border-left: 1px solid rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    font-size: 15px;
}

/* First column (feature name) special */
.features-table th.feature-name {
    text-align: left;
    font-weight: 600;
    color: #2b2b2b;
    width: 52%;
    border-left: none;
}

/* Remove left border on first cell of row */
.features-table td:first-child {
    border-left: none;
}

/* Alternating row background */
.features-table tbody tr:nth-child(odd) td,
.features-table tbody tr:nth-child(odd) th.feature-name {
    background: rgba(15, 23, 42, 0.01);
}

/* Hover row */
.features-table tbody tr:hover td,
.features-table tbody tr:hover th.feature-name {
    background: rgba(99, 102, 241, 0.03);
    /* subtle lilac highlight */
}

/* Icon styles: using inline SVG containers */
.feature-yes,
.feature-no,
.feature-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 24px;
}

/* Check icon */
.icon-check {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.icon-check svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Yes (green) */
.feature-yes .icon-check svg path {
    fill: #16a34a;
}

/* No (muted) */
.feature-no .icon-check svg path {
    fill: #d6d6d6;
}

/* Numeric values */
.feature-value {
    font-weight: 800;
    color: #111827;
    font-size: 15px;
}

/* Row spacer: show a visible horizontal rule */
.features-table tbody tr.row-spacer td,
.features-table tbody tr.row-spacer th {
    padding: 6px 8px !important;
    background: transparent;
    border-top: 2px solid rgba(15, 23, 42, 0.06) !important;
    border-bottom: none !important;
}

/* Rounded corners + keep lines consistent */
.features-table thead th:first-child {
    border-top-left-radius: 12px;
}

.features-table thead th:last-child {
    border-top-right-radius: 12px;
}

.features-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.features-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Responsive: collapse into stacked cards for small screens */
@media (max-width: 820px) {
    .features-wrapper {
        padding: 0 12px;
    }

    .features-table {
        min-width: 0;
        border-radius: 8px;
        box-shadow: none;
    }

    .features-table thead {
        display: none;
    }

    /* hide header */

    .features-table tbody tr {
        display: grid;
        grid-template-columns: 1fr;
        /* single column stack */
        gap: 8px;
        padding: 12px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.04);
        background: #fff;
    }

    .features-table tbody tr.row-spacer {
        border-top: 1px solid rgba(15, 23, 42, 0.06);
    }

    .features-table tbody th.feature-name,
    .features-table tbody td {
        text-align: left;
        border-left: none;
        border-bottom: none;
        padding: 6px 8px;
    }

    /* Each row becomes blocks: first the feature label, then small row with pack values */
    .feature-block {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
        padding: 6px 2px;
    }

    .feature-values {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
        padding: 6px 2px 12px 2px;
        border-top: 1px dashed rgba(15, 23, 42, 0.03);
    }

    .feature-values .col {
        min-width: 0;
        display: inline-flex;
        gap: 8px;
        align-items: center;
        padding-right: 12px;
    }

    .feature-values .col .label {
        font-size: 12px;
        color: #666;
        font-weight: 600;
        margin-right: 6px;
    }

    .feature-value,
    .feature-yes,
    .feature-no {
        font-size: 14px;
    }
}

/* Small adjustments */
@media (max-width: 480px) {
    .features-table th.feature-name {
        font-size: 13px;
    }

    .features-table td {
        font-size: 13px;
        padding: 10px;
    }
}

/* =========================
   OVERRIDES FINALES — pegar AL FINAL de tu stylesheet
   Asegura que estas reglas tengan mayor prioridad y se vean en desktop
   ========================= */

@media (min-width: 768px) {

    /* Base: encabezados más grandes y espacio consistente */
    .features-table thead th {
        font-size: 20px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        padding: 18px 16px !important;
        text-align: center !important;
        border-bottom: 6px solid transparent !important;
        /* reservado para color por columna */
        background-image: none !important;
        /* eliminar gradientes heredados */
        background-clip: padding-box !important;
        -webkit-background-clip: padding-box !important;
        -webkit-text-fill-color: unset !important;
        color: inherit !important;
        transition: background-color .18s ease, color .12s ease !important;
    }

    /* Primer encabezado (Funcionalidad) - mismo estilo visual que las columnas */
    .features-table thead th.feature-name {
        font-size: 16px !important;
        font-weight: 700 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        padding-left: 22px !important;
        text-align: left !important;
        background: rgba(15, 23, 42, 0.04) !important;
        /* fondo sutil neutro */
        color: #0f172a !important;
        /* texto oscuro legible */
        border-bottom-color: rgba(15, 23, 42, 0.10) !important;
        /* línea inferior gruesa */
    }

    /* PREMIUM: fondo dorado suave + línea inferior dorada */
    .features-table thead th.pkg-premium {
        background-color: rgba(212, 175, 55, 0.08) !important;
        color: #0f172a !important;
        border-bottom-color: #D4AF37 !important;
        -webkit-text-fill-color: unset !important;
    }

    /* PROFESIONAL: color sólido (azul) coherente con los demás, sin degradado */
    .features-table thead th.pkg-featured {
        background-color: #f6efff !important;
        /* fondo sutil azul */
        color: #0f172a !important;
        /* texto oscuro para legibilidad */
        border-bottom-color: var(--primary) !important;
        /* línea inferior azul sólida */
        background-image: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
    }

    /* BÁSICO: fondo gris sutil + línea inferior gris */
    .features-table thead th.pkg-basic {
        background-color: rgba(100, 116, 139, 0.06) !important;
        color: #0f172a !important;
        border-bottom-color: #64748b !important;
    }

    /* Separadores verticales entre encabezados (finos) */
    .features-table thead th:not(:first-child) {
        border-left: 2px solid rgba(0, 0, 0, 0.06) !important;
    }

    /* Asegurar contraste del separador izquierdo en columna profesional */
    .features-table thead th.pkg-featured {
        border-left-color: rgba(0, 0, 0, 0.06) !important;
    }

    /* Quitar borde izquierdo del primer encabezado */
    .features-table thead th:first-child {
        border-left: none !important;
        border-top-left-radius: 12px !important;
        border-bottom-color: #1a1c1d33 !important;
    }

    .features-table thead th:last-child {
        border-top-right-radius: 12px !important;
    }

    /* Ajustes cuerpo de la tabla para mantener lectura cómoda */
    .features-table tbody td,
    .features-table tbody th {
        padding: 14px 16px !important;
        vertical-align: middle !important;
    }

    /* Hover fila */
    .features-table tbody tr:hover td,
    .features-table tbody tr:hover th.feature-name {
        background-color: rgba(2, 6, 23, 0.02) !important;
        transition: background-color 0.18s ease !important;
    }

    /* Forzar que no queden gradientes de texto en .pkg-featured */
    .features-table thead th.pkg-featured,
    .features-table thead th.pkg-featured * {
        background-image: none !important;
        -webkit-text-fill-color: unset !important;
    }
}

/* CHECK ICONS — tamaño moderado y trazo visible (DESKTOP)
   Pegar al final del stylesheet; reemplaza el bloque anterior si existe */
@media (min-width: 768px) {
    .icon-check {
        width: 22px !important;
        height: 22px !important;
        display: inline-block;
        flex: 0 0 22px;
    }

    .icon-check svg {
        width: 100% !important;
        height: 100% !important;
        display: block;
        shape-rendering: geometricPrecision;
        vector-effect: non-scaling-stroke;
        transition: transform .14s ease;
    }

    /* Grosor moderado del trazo y color consistente */
    .icon-check svg path,
    .icon-check svg circle,
    .icon-check svg g {
        stroke: #16a34a !important;
        stroke-width: 1.2px !important;
        /* grosor ajustado */
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
        fill: #16a34a !important;
    }

    .feature-yes .icon-check {
        filter: drop-shadow(0 3px 6px rgba(22, 163, 74, 0.10));
    }

    /* Iconos "no" suaves pero legibles */
    .feature-no .icon-check svg path,
    .feature-no .icon-check svg circle,
    .feature-no .icon-check svg g {
        stroke: #d6d6d6 !important;
        stroke-width: 1.0px !important;
        fill: #e6e6e6 !important;
    }

    /* Pequeña interacción al hover */
    .features-table tbody tr:hover .icon-check svg {
        transform: scale(1.03);
    }

    /* Espacios mínimos para evitar cortes */
    .feature-yes,
    .feature-no,
    .feature-value {
        min-height: 26px !important;
        min-width: 26px !important;
    }
}

/* Ligero incremento en pantallas muy grandes (opcional) */
@media (min-width: 1200px) {
    .icon-check {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px;
    }

    .icon-check svg path,
    .icon-check svg circle,
    .icon-check svg g {
        stroke-width: 1.4px !important;
    }
}

/* ================================
   Reemplazar "cuadros" de NO por "barritas"
   Pegar al final del CSS (overrides)
   ================================ */

@media (min-width: 768px) {

    /* Ocultar el SVG cuadrado existente para los "no" y usar una pseudo-barra */
    .feature-no .icon-check,
    .feature-no .icon-check svg {
        /* asegurar tamaño y que el svg no interfiera */
        width: 22px !important;
        height: 22px !important;
        display: inline-block !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    /* Ocultamos el SVG original (rectángulo) para que no se muestre */
    .feature-no .icon-check svg {
        display: none !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Creamos la barrita visual con ::after */
    .feature-no .icon-check::after {
        content: "";
        display: block;
        /* centrado dentro del contenedor */
        margin: 0 auto;
        width: 18px;
        /* largo de la barrita */
        height: 4px;
        /* grosor de la barrita */
        background: #d6d6d6;
        /* color de la barrita (gris suave) */
        border-radius: 999px;
        /* esquinas redondeadas --> barra */
        box-shadow: none;
        transform: translateY(0);
        transition: transform 0.16s ease, background 0.16s ease;
    }

    /* Pequeña interacción visual al hover de la fila */
    .features-table tbody tr:hover .feature-no .icon-check::after {
        transform: translateY(-1px);
        background: #cfcfcf;
    }

    /* Ajustes para que la barrita no se corte y haya espacio suficiente */
    .feature-no,
    .feature-no .icon-check {
        min-width: 28px !important;
        min-height: 22px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* En pantallas muy grandes, hacer la barrita un poco más ancha */
    @media (min-width: 1200px) {
        .feature-no .icon-check {
            width: 26px !important;
            height: 26px !important;
        }

        .feature-no .icon-check::after {
            width: 20px;
            height: 4px;
        }
    }
}

/* === Mobile toggles para cada tarjeta - no afecta desktop === */

/* Por defecto: las listas móviles están ocultas (desktop). */
.mobile-features {
    display: none;
}

/* Botón toggle: escondido en desktop */
.toggle-features {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    margin: 10px auto 0;
    /* centrado bajo el recuadro */
    text-align: center;
    cursor: pointer;
    border-radius: 999px;
    color: var(--secondary);
    transition: background 0.18s ease, transform 0.18s ease;
}

/* pequeño feedback hover/focus (aplica en dispositivos con pointer) */
.toggle-features:hover {
    background: rgba(0, 0, 0, 0.04);
}

.toggle-features:active {
    transform: translateY(1px);
}

.toggle-features:focus {
    outline: 2px solid rgba(0, 0, 0, 0.08);
    outline-offset: 2px;
}

/* Icono chevron */
.toggle-features .chevron {
    display: block;
    margin: 0 auto;
    transition: transform 0.28s ease;
}

/* Cuando está abierto rota 180deg */
.toggle-features[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* --- Móvil: ocultar la tabla comparativa y mostrar los toggles + listas --- */
@media (max-width: 767px) {

    /* Oculta la tabla comparativa en móvil (la .features-wrapper) */
    .features-wrapper {
        display: none !important;
    }

    /* Mostrar el botón toggle bajo cada tarjeta */
    .toggle-features {
        display: block;
    }

    /* Mostrar la lista móvil con transición (max-height) */
    .mobile-features {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        margin: 8px 0 16px;
        padding: 0;
        list-style: none;
        border-radius: 8px;
        background: #fff;
        /* o transparente si prefieres */
        box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
    }

    /* Item styles */
    .mobile-features li {
        padding: 10px 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        font-size: 14px;
        color: #222;
    }

    .mobile-features li:first-child {
        border-top: none;
    }

    /* Clase que muestra la lista (JS añade/quita) */
    .mobile-features.open {
        max-height: 1200px;
        /* suficientemente grande para el contenido */
    }

    /* Asegura que el toggle no empuje el botón CTA si no quieres; ajusta margenes si hace falta */
    .package-card .btn-primary {
        margin-top: 8px;
    }
}

/* Mostrar/ocultar según viewport */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Forzar que la tabla dentro del wrapper desktop se vea (override seguro) */
.desktop-only .features-wrapper,
.desktop-only .features-wrapper table {
    display: block !important;
    visibility: visible !important;
}

/* Mobile-features: animación y estilos */
.mobile-features {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.36s ease, padding 0.28s ease;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.04);
}

.mobile-features.open {
    padding: 8px 0;
    max-height: 1400px;
    /* suficiente para contenido largo */
}

.mobile-features li {
    padding: 10px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: #222;
}

.mobile-features li:first-child {
    border-top: none;
}

/* Toggle button (se muestra solo en mobile) */
.toggle-features {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    margin: 10px auto 0;
    text-align: center;
    cursor: pointer;
    border-radius: 999px;
    color: var(--secondary, #0ea5e9);
    transition: transform .18s ease, background .18s ease;
}

.toggle-features .chevron {
    transition: transform .28s ease;
}

.toggle-features[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* BREAKPOINT: mobile */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .toggle-features {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* ocultar tabla global en mobile (caso defensivo) */
    .features-wrapper {
        display: none !important;
    }
}

/* En pantallas >= 768px, forzamos visibilidad de la tabla dentro del wrapper desktop */
@media (min-width: 768px) {
    .desktop-only .features-wrapper {
        display: block !important;
        visibility: visible !important;
    }
}

/* REDUCIR ESPACIO DEBAJO DE PAQUETES EN DESKTOP */
@media (min-width: 769px) {

    /* Reducimos el padding inferior de la sección */
    #paquetes-mobile {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Ajustamos el contenedor interno si tiene márgenes */
    #paquetes-mobile .container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Reducimos el espacio que deja la cuadrícula de paquetes */
    #paquetes-mobile .packages-grid {
        margin-bottom: 20px !important;
        /* Espacio mínimo antes de la tabla */
    }

    /* Si la sección que sigue (la tabla) tiene mucho espacio arriba, también lo reducimos */
    #paquetes-mobile+section,
    #funcionalidad,
    .functionality-section {
        margin-top: 0 !important;
    }
}

/* --- SECCIÓN MANTENIMIENTO PREMIUM --- */
.maint-minimal {
    position: relative;
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* Engrane de fondo animado */
.maint-bg-icon {
    position: absolute;
    right: -10%;
    top: 10%;
    font-size: 30rem;
    color: rgba(123, 47, 247, 0.03);
    /* Color morado casi invisible */
    z-index: 0;
    animation: rotateGear 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.maint-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.maint-icon-main {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    opacity: 0.9;
}

.maint-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.maint-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.maint-subtitle strong {
    color: var(--primary);
    font-weight: 700;
}

/* Grid y Tarjetas */
.maint-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.maint-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 24px;
    padding: 50px 40px;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
}

.maint-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(123, 47, 247, 0.1);
}

/* Icono que gira al hacer hover */
.card-icon-top {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.6s ease;
}

.maint-card:hover .card-icon-top {
    transform: rotate(360deg);
}

/* Punto verde parpadeante */
.maint-status {
    position: absolute;
    top: 30px;
    right: 35px;
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.maint-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

.maint-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.maint-price span {
    font-size: 1.1rem;
    color: #aaa;
    font-weight: 400;
}

.maint-divider {
    height: 1px;
    background: linear-gradient(90deg, #eee, transparent);
    margin-bottom: 30px;
}

.maint-list {
    list-style: none;
    padding: 0;
}

.maint-list li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
    font-size: 1rem;
}

.maint-list i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .maint-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .maint-bg-icon {
        display: none;
    }

    .maint-title {
        font-size: 2.2rem;
    }
}

/* --- AJUSTES FINALES: TÍTULOS GRANDES Y SIN ICONOS --- */

.maint-card-title {
    font-size: 2.2rem;
    /* Título más grande */
    font-weight: 800;
    color: #1a1a1a;
    margin: 10px 0 15px 0;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.maint-card:hover .maint-card-title {
    color: var(--primary);
    /* El título cambia a morado al pasar el mouse */
}

.maint-price {
    font-size: 2.8rem;
    /* Un poco más grande para acompañar al título */
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
}

/* Eliminamos cualquier rastro de los iconos anteriores en el CSS si los tenías */
.card-icon-top {
    display: none;
}

/* Ajuste de espaciado para compensar la falta de icono */
.maint-card-content {
    padding-top: 10px;
}

/* --- SEGUNDO ENGRANE DE FONDO --- */

.maint-bg-icon-2 {
    position: absolute;
    left: -80px;
    /* Lado izquierdo */
    bottom: -50px;
    /* Parte inferior */
    font-size: 300px;
    /* Un poco más pequeño que el primero */
    color: rgba(123, 47, 247, 0.04);
    /* Tonalidad ligeramente distinta */
    z-index: 0;
    animation: rotateGearReverse 25s linear infinite;
    /* Más rápido y al revés */
    pointer-events: none;
}

/* Animación en sentido contrario a las agujas del reloj */
@keyframes rotateGearReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* Aseguramos que el primer engrane se mantenga bien */
.maint-bg-icon {
    position: absolute;
    right: -50px;
    top: -50px;
    font-size: 450px;
    color: rgba(123, 47, 247, 0.07);
    z-index: 0;
    animation: rotateGear 40s linear infinite;
    pointer-events: none;
}

/* Ajuste para móviles: ocultamos ambos para evitar problemas de scroll horizontal */
@media (max-width: 768px) {

    .maint-bg-icon,
    .maint-bg-icon-2 {
        display: none;
    }
}

/* === CONTROL DE VISIBILIDAD POR DISPOSITIVO === */

/* Por defecto, ambas secciones están ocultas */
#mantenimiento-desktop,
#mantenimiento-mobile {
    display: none;
}

/* Mostrar solo la versión desktop en pantallas grandes */
@media (min-width: 769px) {
    #mantenimiento-desktop {
        display: block;
    }
}

/* Mostrar solo la versión móvil en pantallas pequeñas */
@media (max-width: 768px) {
    #mantenimiento-mobile {
        display: block;
    }
}

/* === ESTILO ESPECÍFICO PARA LA VERSIÓN MÓVIL === */

#mantenimiento-mobile .maint-minimal {
    padding: 10px 0;
    background-color: #ffffff;
}

#mantenimiento-mobile .maint-header {
    text-align: center;
    margin-bottom: 40px;
}

#mantenimiento-mobile .maint-icon-main {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#mantenimiento-mobile .maint-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

#mantenimiento-mobile .maint-subtitle {
    font-size: 1rem;
    padding: 0 20px;
    line-height: 1.6;
}

#mantenimiento-mobile .maint-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
}

#mantenimiento-mobile .maint-card {
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 25px;
    position: relative;
}

#mantenimiento-mobile .maint-card-title {
    font-size: 1.6rem;
    margin: 5px 0 10px;
}

#mantenimiento-mobile .maint-price {
    font-size: 2rem;
    margin-bottom: 15px;
}

#mantenimiento-mobile .maint-list {
    margin-top: 20px;
}

#mantenimiento-mobile .maint-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Mostrar el icono en móvil (ya no lo ocultamos) */
#mantenimiento-mobile .maint-icon-main {
    display: block;
}

/* Seguimos ocultando los elementos innecesarios en móvil */
#mantenimiento-mobile .maint-bg-icon,
#mantenimiento-mobile .maint-bg-icon-2,
#mantenimiento-mobile .maint-divider {
    display: none;
}

/* FOOTER */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-logo img {
    height: 45px;
    margin-bottom: 16px;
}

.footer-description {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #aaa;
    font-size: 14px;
}

.footer-contact-item i {
    width: 20px;
    color: var(--secondary);
    font-size: 14px;
}

.footer-contact-item a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-contact .footer-social-links {
    margin-top: 20px;
    justify-content: flex-start;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover i.fa-facebook-f {
    color: #1877F2;
}

.footer-social-link:hover i.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-social-link:hover i.fa-whatsapp {
    color: #25D366;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* ---- Language Switch Toggle ---- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 3px;
    cursor: pointer;
    gap: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    flex-shrink: 0;
}
.lang-switch:hover {
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.ls-side {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    transition: all 0.22s ease;
    white-space: nowrap;
}
.ls-side img {
    width: 17px;
    height: auto;
    border-radius: 2px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.ls-sep {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}
/* Active side based on body class */
body.lang-es .lang-switch .ls-es,
body.lang-en .lang-switch .ls-en {
    background: #7d51bc;
    color: #fff;
    box-shadow: 0 2px 8px rgba(125,81,188,0.4);
}
body.lang-es .lang-switch .ls-es img,
body.lang-en .lang-switch .ls-en img {
    opacity: 1;
}

/* Desktop nav: position the switch between nav-links and hamburger */
nav .lang-switch {
    margin-left: 12px;
}

/* Mobile menu li: style the switch inside the mobile nav */
.lang-switch-li {
    display: flex;
    align-items: center;
    padding: 10px 24px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 8px;
}
.lang-switch-li .lang-switch {
    background: rgba(125,81,188,0.08);
    border-color: rgba(125,81,188,0.2);
}
.lang-switch-li .ls-side {
    color: rgba(30,30,30,0.45);
}
.lang-switch-li .ls-sep {
    background: rgba(125,81,188,0.2);
}
body.lang-es .lang-switch-li .lang-switch .ls-es,
body.lang-en .lang-switch-li .lang-switch .ls-en {
    background: #7d51bc;
    color: #fff;
}
body.lang-es .lang-switch-li .ls-es img,
body.lang-en .lang-switch-li .ls-en img {
    opacity: 1;
}

/* Hide desktop switch on mobile, show mobile li version */
@media (max-width: 768px) {
    nav > .lang-switch {
        display: none !important;
    }
    .lang-switch-li {
        display: flex !important;
    }
}
/* Hide mobile li version on desktop */
@media (min-width: 769px) {
    .lang-switch-li {
        display: none !important;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .hero .container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: 32px;
    }

    .hero-content p {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .packages-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        min-height: 250px;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 0px 20px;
        padding-bottom: 50px;

    }

    .hero {
        padding: 120px 24px 48px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 28px;
        margin-top: 170px;
    }

    .section-header p {
        margin-bottom: 50px;
    }

    /* ===== SLIDE-IN DRAWER MENU ===== */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

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

    .mobile-logo-container {
        display: block;
        text-align: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    .mobile-logo-img {
        height: 40px;
        width: auto;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .mobile-menu {
        display: flex;
        z-index: 10000;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .contact-form {
        padding: 24px;
    }

    .hero-mockup {
        max-width: 100%;
    }

    .browser-content {
        min-height: 200px;
    }

    .code-line {
        font-size: 11px;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn svg {
    stroke: var(--secondary);
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.dropdown:hover .dropbtn svg {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    padding: 18px 0 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: #1a1c1d !important;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-radius: 0;
    white-space: nowrap;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover {
    background-color: #f4effb;
    color: var(--secondary) !important;
    transform: none !important;
}

/* Mobile Dropdown */
@media (max-width: 768px) {

    /* Arrow Animation for Mobile */
    .dropdown .dropbtn svg {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropbtn svg {
        transform: rotate(180deg);
    }

    /* Submenu Animation */
    .dropdown-content {
        position: static !important;
        display: block !important;
        /* Must be block to animate height */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        box-shadow: none !important;
        background-color: transparent !important;
        transform: none !important;
        width: 100% !important;
        padding-left: 20px !important;
        pointer-events: none !important;
        margin-top: 0 !important;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    }

    .dropdown.active .dropdown-content {
        max-height: 200px;
        /* High enough to fit content */
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 5px !important;
        pointer-events: auto !important;
    }

    .dropdown.active .dropdown-content a {
        color: #1a1c1d !important;
        font-size: 20px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 10px 0 !important;
    }
}

/* Estilo opcional para personalizar el chatbot */
#chatbase-chat-container {
    font-family: 'Poppins', sans-serif;
}

#chatbase-chat-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

#chatbase-chat-button {
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(125, 81, 188, 0.3);
}

#chatbase-chat-button:hover {
    background: var(--secondary);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Footer Mobile Styles */
@media (max-width: 768px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    /* Orden de las columnas en móvil: Logo (col 1) al final */
    .footer-col:nth-child(1) { order: 4; }
    .footer-col:nth-child(2) { order: 1; }
    .footer-col:nth-child(3) { order: 2; }
    .footer-col:nth-child(4) { order: 3; }

    .footer-description {
        max-width: 100%;
    }

    .footer-col h4 {
        margin-bottom: 16px;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-contact .footer-social-links {
        justify-content: center;
        padding-bottom: 40px;
    }
}