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

:root {
    --rojo: #E94B3C;
    --naranja: #F5A623;
    --verde: #A4C639;
    --turquesa: #00ACC1;
    --azul: #2196F3;
    --morado: #8E24AA;
    --gris: #9E9E9E;
    --gris-claro: #F5F5F5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2C3E50;
}

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

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--azul);
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: #2C3E50;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--azul);
}

#menu-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
}

#menu-toggle .menu-label {
    color: var(--azul);
    font-weight: 600;
    font-size: 15px;
}

.hero {
    background: linear-gradient(135deg, var(--azul) 0%, var(--turquesa) 100%);
    color: white;
    padding-top: 10%;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 10px;
}

.btn-primary {
    background: white;
    color: var(--azul);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--azul);
}

.features {
    padding: 80px 0;
    background: var(--gris-claro);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--rojo), var(--naranja), var(--verde), var(--turquesa), var(--azul), var(--morado));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.icon-crm {
    background: linear-gradient(135deg, var(--azul), var(--turquesa));
}

.icon-erp {
    background: linear-gradient(135deg, var(--naranja), var(--rojo));
}

.icon-simple {
    background: linear-gradient(135deg, var(--verde), var(--turquesa));
}

.icon-soporte {
    background: linear-gradient(135deg, var(--morado), var(--azul));
}

.icon-cloud {
    background: linear-gradient(135deg, var(--turquesa), var(--verde));
}

.icon-report {
    background: linear-gradient(135deg, var(--rojo), var(--morado));
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2C3E50;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #4A5A6A;
    margin-bottom: 50px;
}

.modules {
    padding: 80px 0;
    background: white;
}

.module-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 30px;
    border-radius: 25px;
    background: var(--gris-claro);
    color: #2C3E50;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
}

.tab.active {
    background: var(--azul);
    color: white;
}

.module-content {
    background: var(--gris-claro);
    padding: 60px;
    border-radius: 20px;
    display: none;
}

.module-content.active {
    display: block;
}

.module-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.module-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--verde);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pricing {
    padding: 80px 0;
    background: var(--gris-claro);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
    border: 2px solid var(--azul);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.price {
    font-size: 3rem;
    color: var(--azul);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--gris);
}

.cta {
    background: linear-gradient(135deg, var(--azul) 0%, var(--turquesa) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

footer {
    background: #2C3E50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.social-links a {
    color: white;
    font-size: 24px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--azul);
}

.btn-contact {
    background-color: #00ACC1;
    color: white;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    #menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        border-top: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 15px;
    }

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

    .module-tabs {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        padding-top: 40% !important;
    }

    .logo img {
        height: 95px;
        width: auto;
    }

    nav {
        position: relative;
        justify-content: center;
    }

    #menu-toggle {
        position: absolute;
        top: 100%;
        right: 16px;
        margin-top: 8px;
        background: white;
        padding: 8px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 5;
    }

    body {
        overflow-x: hidden;
    }

    nav {
        flex-wrap: nowrap;
    }

    header {
        /* height: 21% !important; */
    }

}

.container-header {
    max-width: 100% !important;
}

/* Planes y precios (2026-10-08): grupos Básico / dedicado, tablas de comparación y módulos */
.plan-group-title {
    text-align: center;
    margin-top: 70px;
    font-size: 1.7rem;
    color: #2C3E50;
}

.plan-group-text {
    text-align: center;
    max-width: 800px;
    margin: 10px auto 0;
    font-size: 1.1rem;
    color: #34495E;
}

.plan-upgrade-btn {
    color: var(--azul);
    border-color: var(--azul);
}

.plan-upgrade-btn:hover {
    background: var(--azul);
    color: white;
}

.table-wrap {
    overflow-x: auto;
    margin: 30px 10% 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.12);
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    color: #2C3E50;
}

.plan-table th,
.plan-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #E3E8EE;
    text-align: center;
}

.plan-table th:first-child,
.plan-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.plan-table thead th {
    background: #2C3E50;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
}

.plan-table tbody tr:nth-child(even) {
    background: #F7F9FC;
}

.plan-table tbody tr:hover {
    background: #EAF4FE;
}

.plan-table tr.grupo td {
    background: #EAF4FE;
    color: var(--azul);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-align: left;
}

.plan-table td.precio {
    color: var(--azul);
    font-weight: 700;
    white-space: nowrap;
}

.plan-table .si {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--verde);
    color: white;
    font-weight: 700;
}

.plan-table .no {
    color: #B0B8C1;
    font-weight: 700;
}

.plan-table a {
    color: var(--azul);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .table-wrap {
        margin: 30px 0 0;
    }

    .plan-table {
        font-size: 0.9rem;
    }

    .plan-table th,
    .plan-table td {
        padding: 10px 8px;
    }

    .plan-table .si {
        width: 22px;
        height: 22px;
    }
}

/* 4 planes dedicados en una fila en escritorio */
.pricing-cards.cards-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-cards.cards-4 .pricing-card {
    padding: 40px 25px;
}

/* Bloque de soporte: texto oscuro sobre blanco (antes gris claro, sin contraste) */
.soporte-box {
    margin: 50px 10% 0;
    padding: 40px;
    background: white;
    border-radius: 15px;
    border-top: 5px solid var(--azul);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.12);
    color: #2C3E50;
}

.soporte-box h3 {
    text-align: center;
    color: #2C3E50;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.soporte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.soporte-grid strong {
    display: block;
    color: var(--azul);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.soporte-grid p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2C3E50;
}

@media (max-width: 768px) {
    .soporte-box {
        margin: 40px 0 0;
        padding: 30px 20px;
    }
}

/* Contacto: formulario del CRM sin scroll (alto mayor que el contenido; el captcha necesita ~330 px de ancho) */
.contact-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-box > div {
    flex: 1;
    min-width: 280px;
}

.contact-form {
    min-width: 330px !important;
}

.form-iframe {
    display: block;
    width: 100%;
    height: 650px;
    border: 0;
}

@media (max-width: 768px) {
    .contact-box {
        padding: 25px 10px;
        gap: 20px;
    }

    .contact-box > div:first-child {
        padding: 0 10px;
    }
}

/* Integraciones: solo logos en recuadros blancos, sin textos (2026-10-08) */
.integ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.integ-card {
    background: white;
    border-radius: 12px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.integ-card:hover {
    transform: scale(1.05);
}

.integ-card img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

.integ-icon img {
    width: 34px;
    height: 34px;
}

.integ-icon span {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .integ-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .integ-card {
        height: 75px;
        padding: 10px;
    }

    .integ-icon span {
        font-size: 0.9rem;
    }
}

/* Encabezados correctos sin cambiar el aspecto: "Mantenlo Simple" era un H2 antes del H1; el CTA usaba <h> inválido */
.hero-kicker {
    font-size: 40px;
    font-weight: 600;
    line-height: 64px;
    color: white;
    margin-bottom: 16px;
}

.cta-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Preguntas frecuentes visibles (las mismas del JSON-LD FAQPage) */
.faq-section {
    padding: 70px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faq-list {
    margin: 0 10%;
}

@media (max-width: 768px) {
    .faq-list {
        margin: 0;
    }
}

.faq-item {
    border: 1px solid #E3E8EE;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #F7F9FC;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.6rem;
    color: var(--azul);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: '–';
}

.faq-item summary h3 {
    font-size: 1.1rem;
    color: #2C3E50;
    margin: 0;
}

.faq-item p {
    padding: 0 22px 20px;
    color: #2C3E50;
    line-height: 1.7;
}

/* Cifras de la franja (∞, 2,5 UF...): no son títulos; mismo aspecto que el h3 que eran */
.stat-num {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

/* Páginas de producto por módulo (2026-10-08) */
.mod-section {
    padding: 70px 0;
    background: white;
}

.mod-section.mod-alt {
    background: var(--gris-claro);
}

.mod-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2C3E50;
}

.mod-lead {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #34495E;
    text-align: center;
}

.mod-shot {
    max-width: 1000px;
    margin: 0 auto 40px;
    text-align: center;
}

.mod-shot img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.15);
    background: white;
}

.mod-shot figcaption {
    margin-top: 14px;
    color: #34495E;
    font-size: 1rem;
}

.mod-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.mod-related > div {
    background: #F7F9FC;
    border-left: 4px solid var(--azul);
    border-radius: 10px;
    padding: 20px;
}

.mod-related strong {
    color: var(--azul);
    font-size: 1.1rem;
}

.mod-related p {
    margin-top: 8px;
    color: #2C3E50;
    line-height: 1.6;
}

.mod-cta-line {
    text-align: center;
    margin-top: 30px;
}

.mod-btn {
    background: var(--azul);
    color: white;
}

.hero-price {
    font-size: 1.3rem;
    margin: 10px 0 20px;
    color: white;
}

/* Carrusel de capturas (assets/js/carousel.js): una captura a la vista, flechas, puntos y deslizamiento */
.mod-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.mod-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.mod-slides::-webkit-scrollbar {
    display: none;
}

.mod-slides .mod-shot {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
    padding: 6px 40px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mod-slides .mod-shot img {
    max-height: 560px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid #E3E8EE;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.12);
    padding: 1.5%;
    box-sizing: border-box;
    background: white;
}

.mod-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #2C3E50;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0.85;
}

.mod-arrow:hover {
    opacity: 1;
}

.mod-prev {
    left: -60px;
}

.mod-next {
    right: -60px;
}

.mod-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.mod-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #B0B8C1;
    cursor: pointer;
    padding: 0;
}

.mod-dots button.active {
    background: var(--azul);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 1150px) {
    .mod-prev {
        left: 5px;
    }

    .mod-next {
        right: 5px;
    }
}

.mod-shot-title {
    font-size: 1.35rem;
    color: #2C3E50;
    margin-bottom: 14px;
    text-align: center;
}

@media (max-width: 600px) {
    .mod-arrow {
        display: none;
    }

    .mod-slides .mod-shot {
        padding: 6px 16px 24px;
    }
}

/* Ampliación de capturas (assets/js/carousel.js) */
.mod-slides .mod-shot img {
    cursor: zoom-in;
}

.mod-zoom {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(20, 28, 38, 0.92);
    overflow-y: auto;
    padding: 50px 16px 30px;
    text-align: center;
}

.mod-zoom.open {
    display: block;
}

.mod-zoom figure {
    margin: 0 auto;
}

.mod-zoom img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: white;
}

.mod-zoom figcaption {
    color: white;
    margin: 14px auto 0;
    max-width: 900px;
    font-size: 1rem;
}

.mod-zoom-close {
    position: fixed;
    top: 10px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #2C3E50;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.mod-zoom .mod-arrow {
    display: block;
    position: fixed;
    top: 50%;
    z-index: 1;
}

.mod-zoom .mod-prev {
    left: 10px;
}

.mod-zoom .mod-next {
    right: 10px;
}

/* Destacado multiempresa (planes dedicados) */
.multiempresa-box {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 30px 34px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1E3A5F, #2980B9);
    color: white;
    text-align: center;
    box-shadow: 0 12px 30px rgba(41, 128, 185, 0.3);
}

.multiempresa-kicker {
    display: inline-block;
    background: #F39C12;
    color: #1E2A38;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.multiempresa-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.multiempresa-box p:last-child {
    font-size: 1.1rem;
    color: #EAF2F8;
}

/* Enlaces dentro de textos (subtítulos, pestañas de módulos, tablas de planes) */
.section-subtitle a,
.module-feature a,
.plan-table td a,
.plan-group-text a {
    color: #1565C0;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #90CAF9;
    padding: 0 2px;
    transition: background 0.2s, border-color 0.2s;
}

.section-subtitle a:hover,
.module-feature a:hover,
.plan-table td a:hover,
.plan-group-text a:hover {
    background: #E3F2FD;
    border-bottom-color: #1565C0;
}
