/*
Theme Name: CONTITEL Business
Theme URI: https://contitel.com/
Author: CONTITEL
Description: Tema corporativo de CONTITEL para soluciones empresariales, software de gestión, facturación electrónica y hardware POS.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: contitel-business
*/


/* 1. VARIABLES Y ESTILOS GENERALES */

:root {
    --ct-primary: #0f172a;
    --ct-blue: #1e3a8a;
    --ct-blue-light: #2563eb;
    --ct-green: #10b981;
    --ct-green-hover: #059669;
    --ct-white: #ffffff;
    --ct-bg: #f8fafc;
    --ct-text: #334155;
    --ct-muted: #64748b;
    --ct-border: #e2e8f0;
    --ct-radius: 18px;
    --ct-shadow: 0 12px 36px rgba(15, 23, 42, .07);
    --ct-container: 1160px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--ct-text);
    background: var(--ct-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ct-blue-light);
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

a:hover {
    color: var(--ct-green-hover);
}

button, input, select, textarea {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(16, 185, 129, .55);
    outline-offset: 3px;
}

.container {
    width: min(calc(100% - 40px), var(--ct-container));
    margin-inline: auto;
}

section[id] {
    scroll-margin-top: 90px;
}

h1, h2, h3, h4 {
    margin-top: 0;
    color: var(--ct-primary);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.3rem);
}

h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

h3 {
    font-size: 1.22rem;
}

p {
    margin-top: 0;
}

::selection {
    color: white;
    background: var(--ct-blue);
}

/* 2. CABECERA Y NAVEGACIÓN */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--ct-border);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 48px;
}

.site-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 850;
    letter-spacing: -.045em;
}

.site-title a {
    color: var(--ct-primary);
}

.site-description {
    margin: 2px 0 0;
    color: var(--ct-muted);
    font-size: .76rem;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.primary-navigation ul,
.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation a {
    color: var(--ct-primary);
    font-size: .93rem;
    font-weight: 650;
}

.primary-navigation a:hover {
    color: var(--ct-green-hover);
}

.header-cta {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
}

/* 3. BOTONES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 21px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease,
        background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: white;
    background: var(--ct-green);
    box-shadow: 0 7px 18px rgba(16, 185, 129, .18);
}

.btn-primary:hover {
    color: white;
    background: var(--ct-green-hover);
}

.btn-secondary {
    color: var(--ct-primary);
    background: white;
    border-color: var(--ct-border);
}

.btn-secondary:hover {
    color: var(--ct-blue);
    background: var(--ct-bg);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* =========================================
   4. HERO PRINCIPAL
========================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 84px;
    background:
        radial-gradient(circle at 90% 10%,
            rgba(37, 99, 235, .09), transparent 35%),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 64px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--ct-blue);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--ct-blue);
}

.hero-copy {
    max-width: 650px;
    margin-bottom: 30px;
    color: var(--ct-muted);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 28px;
    color: var(--ct-muted);
    font-size: .83rem;
    font-weight: 650;
}

.trust-row span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--ct-green-hover);
    font-weight: 900;
}


/* =========================================
   5. PANEL VISUAL DEL ERP
========================================= */

.dashboard {
    padding: 25px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 22px;
    background: white;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .11);
    transform: rotate(1deg);
}

.dashboard-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}

.dashboard-top h2 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.dashboard-top p,
.dashboard-footnote {
    color: var(--ct-muted);
    font-size: .8rem;
}

.status-pill {
    padding: 5px 10px;
    border-radius: 30px;
    color: #047857;
    background: #d1fae5;
    font-size: .72rem;
    font-weight: 800;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-box {
    padding: 17px;
    border: 1px solid var(--ct-border);
    border-radius: 13px;
    background: #fbfdff;
}

.stat-box span,
.stat-box small {
    display: block;
    color: var(--ct-muted);
    font-size: .78rem;
}

.stat-box strong {
    display: block;
    margin: 8px 0;
    color: var(--ct-primary);
    font-size: 1.5rem;
}

.dashboard-footnote {
    margin: 20px 0 0;
    font-size: .72rem;
}


/* =========================================
   6. SECCIONES GENERALES
========================================= */

.section {
    padding: 88px 0;
}

.section-soft {
    background: var(--ct-bg);
}

.section-heading {
    max-width: 740px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 17px;
}

.section-heading p {
    margin-bottom: 0;
    color: var(--ct-muted);
    font-size: 1.04rem;
}


/* =========================================
   7. TARJETAS Y GRILLAS
========================================= */

.grid-4,
.grid-3 {
    display: grid;
    align-items: stretch;
    gap: 22px;
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    min-width: 0;
    padding: 27px;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    background: white;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .025);
    transition: transform .22s ease, box-shadow .22s ease,
        border-color .22s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: var(--ct-shadow);
}

.card h3 {
    margin-bottom: 12px;
}

.card > p {
    color: var(--ct-muted);
    font-size: .94rem;
}

.feature-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 12px;
    color: var(--ct-blue);
    background: #eff6ff;
    font-size: .83rem;
    font-weight: 850;
}

.card-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 750;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 25px;
    font-size: .91rem;
}

.check-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--ct-green-hover);
    content: "✓";
    font-weight: 900;
}


/* =========================================
   8. ERP Y FACTURACIÓN
========================================= */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.split-section > div > p {
    color: var(--ct-muted);
}

.product-visual {
    display: grid;
    min-height: 340px;
    padding: 35px;
    place-items: center;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 20%,
            rgba(37, 99, 235, .13), transparent 40%),
        #f1f5f9;
}

.product-screen {
    width: 100%;
    max-width: 410px;
    padding: 22px;
    border: 1px solid var(--ct-border);
    border-radius: 15px;
    background: white;
    box-shadow: var(--ct-shadow);
}

.screen-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 23px;
}

.screen-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
}

.screen-line {
    height: 10px;
    margin: 15px 0;
    border-radius: 6px;
    background: #e2e8f0;
}

.screen-line.short {
    width: 35%;
}

.screen-line.medium {
    width: 65%;
}

.screen-line.green {
    width: 80%;
    background: #a7f3d0;
}

.screen-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.screen-cards div {
    height: 65px;
    border-radius: 8px;
    background: #eff6ff;
}


/* =========================================
   9. PLANES Y PRECIOS
========================================= */

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.plan-name {
    margin-bottom: 15px;
    color: var(--ct-blue);
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.price {
    color: var(--ct-primary);
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: 1.2;
}

.price-note {
    margin-top: 10px;
    color: var(--ct-muted);
    font-size: .86rem;
}

.divider {
    height: 1px;
    margin: 22px 0;
    background: var(--ct-border);
}

.price-card .renewal {
    margin-top: auto;
    margin-bottom: 25px;
    padding: 18px;
    border-radius: 12px;
    background: var(--ct-bg);
}

.renewal strong {
    display: block;
    margin-bottom: 10px;
    font-size: .88rem;
}

.renewal p {
    margin: 4px 0;
    font-size: .92rem;
}

.price-card.featured {
    border: 2px solid var(--ct-green);
    box-shadow: 0 15px 35px rgba(16, 185, 129, .09);
}

.recommended {
    align-self: flex-start;
    margin-bottom: 17px;
    padding: 5px 10px;
    border-radius: 20px;
    color: #047857;
    background: #d1fae5;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.pricing-note {
    margin-top: 25px;
    color: var(--ct-muted);
    font-size: .82rem;
    text-align: center;
}


/* =========================================
   10. HARDWARE
========================================= */

.kit-label {
    margin-bottom: 12px;
    color: var(--ct-blue);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .1em;
}

.hardware-icon {
    display: grid;
    width: 100%;
    height: 100px;
    margin-bottom: 23px;
    place-items: center;
    border-radius: 13px;
    color: var(--ct-blue);
    background: linear-gradient(135deg, #eff6ff, #ecfdf5);
    font-size: 2rem;
    font-weight: 850;
}

.hardware-card {
    display: flex;
    flex-direction: column;
}

.hardware-card .btn {
    margin-top: auto;
}


/* =========================================
   11. CTA E IMPLEMENTACIÓN
========================================= */

.step-card {
    padding: 25px;
}

.section-dark {
    color: white;
    background: var(--ct-primary);
}

.section-dark h2 {
    color: white;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.cta-band > div {
    max-width: 720px;
}

.cta-band h2 {
    margin-bottom: 15px;
}

.cta-band p {
    margin-bottom: 0;
    color: #cbd5e1;
}

/* =========================================
   12. PREGUNTAS FRECUENTES
========================================= */

.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    padding: 20px 24px;
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    background: white;
}

.faq-item summary {
    position: relative;
    padding-right: 25px;
    color: var(--ct-primary);
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--ct-blue);
    content: "+";
    font-size: 1.25rem;
    font-weight: 800;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding-top: 15px;
    color: var(--ct-muted);
}

.faq-answer p {
    margin-bottom: 0;
}


/* =========================================
   13. FORMULARIO DE CONTACTO
========================================= */

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: start;
    gap: 60px;
}

.contact-copy {
    position: sticky;
    top: 120px;
}

.contact-copy > p {
    color: var(--ct-muted);
}

.contact-benefits {
    margin: 30px 0;
}

.contact-benefits p {
    margin-bottom: 10px;
    color: var(--ct-primary);
    font-weight: 650;
}

.contact-form {
    padding: 32px;
    border: 1px solid var(--ct-border);
    border-radius: 20px;
    background: white;
    box-shadow: var(--ct-shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--ct-primary);
    font-size: .88rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: var(--ct-primary);
    background: white;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea {
    min-height: 125px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--ct-blue-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
    outline: none;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0;
    color: var(--ct-muted);
    font-size: .82rem;
    line-height: 1.6;
}

.consent input {
    flex-shrink: 0;
    margin-top: 5px;
}

.consent a {
    text-decoration: underline;
}

.form-message {
    margin-bottom: 22px;
    padding: 15px 17px;
    border-radius: 10px;
    font-size: .9rem;
}

.form-message.success {
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

/* Campo trampa antispam. */
.hp-field {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}


/* =========================================
   14. PIE DE PÁGINA
========================================= */

.site-footer {
    padding: 50px 0 25px;
    color: #cbd5e1;
    background: #080f20;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 45px;
}

.site-footer h2,
.site-footer h3 {
    color: white;
}

.site-footer h3 {
    font-size: 1rem;
}

.site-footer p {
    color: #94a3b8;
    font-size: .9rem;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #6ee7b7;
}

.footer-navigation ul {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, .2);
    color: #94a3b8;
    font-size: .8rem;
}


/* =========================================
   15. WHATSAPP FLOTANTE
========================================= */

.whatsapp-float {
    position: fixed;
    z-index: 999;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 19px;
    border-radius: 50px;
    color: white;
    background: #16a34a;
    box-shadow: 0 8px 25px rgba(22, 163, 74, .3);
    font-size: .91rem;
    font-weight: 800;
}

.whatsapp-float:hover {
    color: white;
    background: #15803d;
    transform: translateY(-2px);
}


/* =========================================
   16. RESPONSIVE: TABLETS
========================================= */

@media (max-width: 1050px) {
    .hero-grid {
        gap: 35px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-section {
        gap: 40px;
    }

    .primary-navigation {
        gap: 15px;
    }

    .primary-navigation ul {
        gap: 15px;
    }
}

@media (max-width: 780px) {
    .container {
        width: min(calc(100% - 32px), var(--ct-container));
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-grid,
    .split-section,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 9vw, 3.3rem);
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .product-visual {
        min-height: 270px;
    }

    .contact-copy {
        position: static;
    }

    .cta-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-inner {
        min-height: 70px;
    }

    .primary-navigation {
        gap: 10px;
    }

    .site-description {
        display: none;
    }
}


/* =========================================
   17. RESPONSIVE: MÓVILES
========================================= */

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-row {
        gap: 10px 14px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .card,
    .price-card {
        padding: 23px;
    }

    .contact-form {
        padding: 22px 17px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field.full {
        grid-column: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        min-height: 50px;
        padding: 11px 16px;
        font-size: .85rem;
    }

    .dashboard {
        padding: 17px;
    }
}


/* =========================================
   18. ACCESIBILIDAD Y MOVIMIENTO REDUCIDO
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* Accesibilidad y menú móvil */

.skip-link {
    position: absolute;
    z-index: 10000;
    top: -100px;
    left: 12px;
    padding: 12px 16px;
    color: #fff;
    background: #0f172a;
    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
}

.site-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 48px;
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-list li {
    margin: 0;
}

.menu-list a {
    color: var(--ct-primary);
    font-size: .93rem;
    font-weight: 650;
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--ct-primary);
}

@media (max-width: 780px) {
    .header-inner {
        position: relative;
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
        order: 2;
        padding: 8px;
        border: 1px solid var(--ct-border);
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
    }

    .header-cta {
        order: 3;
    }

    .primary-navigation {
        display: none;
        order: 4;
        width: 100%;
        padding: 14px 0 20px;
    }

    .primary-navigation.is-open {
        display: block;
    }

    .menu-list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .menu-list a {
        display: block;
        padding: 10px 0;
    }

    .site-logo img {
        max-width: 145px;
    }
}

@media (max-width: 420px) {
    .header-cta .btn {
        min-height: 42px;
        padding: 9px 12px;
        font-size: .82rem;
    }
}

/* Accesibilidad y menú móvil */

.skip-link {
    position: absolute;
    z-index: 10000;
    top: -100px;
    left: 12px;
    padding: 12px 16px;
    color: #fff;
    background: #0f172a;
    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
}

.site-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 48px;
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-list li {
    margin: 0;
}

.menu-list a {
    color: var(--ct-primary);
    font-size: .93rem;
    font-weight: 650;
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--ct-primary);
}

@media (max-width: 780px) {
    .header-inner {
        position: relative;
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
        order: 2;
        padding: 8px;
        border: 1px solid var(--ct-border);
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
    }

    .header-cta {
        order: 3;
    }

    .primary-navigation {
        display: none;
        order: 4;
        width: 100%;
        padding: 14px 0 20px;
    }

    .primary-navigation.is-open {
        display: block;
    }

    .menu-list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .menu-list a {
        display: block;
        padding: 10px 0;
    }

    .site-logo img {
        max-width: 145px;
    }
}

@media (max-width: 420px) {
    .header-cta .btn {
        min-height: 42px;
        padding: 9px 12px;
        font-size: .82rem;
    }
}
/* Ajustes complementarios del footer */

.footer-brand h2 {
    margin-bottom: 15px;
    font-size: 1.7rem;
    font-weight: 850;
    letter-spacing: -.04em;
}

.footer-column p {
    overflow-wrap: anywhere;
}

.footer-bottom p {
    margin-bottom: 0;
}

.whatsapp-float > span:first-child {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
}

@media (max-width: 600px) {
    .footer-bottom {
        align-items: flex-start;
    }
}


/* =========================================
   19. BLOG Y PLANTILLA DE RESPALDO
========================================= */

.posts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.post-card {
    overflow: hidden;
    padding: 0;
}

.post-thumbnail {
    display: block;
    overflow: hidden;
    background: var(--ct-bg);
}

.post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.025);
}

.post-content {
    padding: 25px;
}

.post-meta {
    margin-bottom: 12px;
    color: var(--ct-muted);
    font-size: .8rem;
}

.post-title {
    margin-bottom: 14px;
    font-size: 1.45rem;
}

.post-title a {
    color: var(--ct-primary);
}

.post-title a:hover {
    color: var(--ct-blue-light);
}

.post-excerpt {
    color: var(--ct-muted);
}

.pagination {
    margin-top: 40px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--ct-border);
    border-radius: 8px;
    color: var(--ct-primary);
}

.pagination .page-numbers.current {
    color: white;
    background: var(--ct-blue);
    border-color: var(--ct-blue);
}

.empty-state {
    max-width: 700px;
    margin: 30px auto;
    text-align: center;
}

.empty-state p {
    margin-bottom: 25px;
    color: var(--ct-muted);
}

@media (max-width: 650px) {
    .posts-list {
        grid-template-columns: 1fr;
    }

    .post-content {
        padding: 20px;
    }
}

/* =========================================
   20. PRECIOS Y KITS DE HARDWARE
========================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.price-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 30px 25px;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    background: #fff;
    box-shadow: var(--ct-shadow);
}

.price-card h3 {
    margin: 8px 0 12px;
    color: var(--ct-primary);
    font-size: 1.55rem;
}

.price-label {
    color: var(--ct-blue);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.price-description {
    min-height: 72px;
    color: var(--ct-muted);
    font-size: .92rem;
}

.price-amount {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin: 15px 0 0;
    color: var(--ct-primary);
}

.price-currency {
    padding-top: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.price-value {
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.05em;
}

.price-period {
    margin: 8px 0 18px;
    color: var(--ct-muted);
    font-size: .85rem;
}

.price-includes {
    padding: 14px 0;
    border-top: 1px solid var(--ct-border);
    border-bottom: 1px solid var(--ct-border);
    color: var(--ct-muted);
    font-size: .87rem;
}

.price-card .check-list {
    flex: 1;
    margin: 15px 0 20px;
}

.renewal-box {
    margin-top: auto;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 10px;
    background: var(--ct-bg);
}

.renewal-box strong {
    display: block;
    margin-bottom: 9px;
    color: var(--ct-primary);
    font-size: .85rem;
}

.renewal-box p {
    margin: 4px 0;
    color: var(--ct-muted);
    font-size: .9rem;
}

.price-card-featured {
    border: 2px solid var(--ct-green);
    transform: translateY(-6px);
}

.recommended-badge {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 50px;
    color: #065f46;
    background: #d1fae5;
    font-size: .76rem;
    font-weight: 800;
}

.btn-block {
    width: 100%;
}

.pricing-disclaimer {
    max-width: 850px;
    margin: 30px auto 0;
    color: var(--ct-muted);
    font-size: .82rem;
    text-align: center;
}

.hardware-card {
    display: flex;
    flex-direction: column;
}

.hardware-card .btn {
    margin-top: auto;
}

.hardware-illustration {
    display: grid;
    min-height: 155px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
}

.hardware-icon {
    display: inline-grid;
    min-width: 90px;
    min-height: 65px;
    padding: 12px;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: var(--ct-blue);
    background: white;
    font-size: 1.1rem;
    font-weight: 850;
    letter-spacing: .05em;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 45px;
    padding: 30px;
    border-radius: 16px;
    background: #eaf2ff;
}

.cta-band h3 {
    margin-bottom: 8px;
    color: var(--ct-primary);
}

.cta-band p {
    margin-bottom: 0;
    color: var(--ct-muted);
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .price-card-featured {
        transform: none;
    }

    .price-description {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .cta-band {
        align-items: stretch;
        padding: 22px;
    }
}


/* =========================================
   21. FORMULARIO Y FAQ: AJUSTES FINALES
========================================= */

.form-intro {
    margin-bottom: 22px;
    color: var(--ct-muted);
    font-size: .9rem;
}

.form-field small {
    color: var(--ct-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.form-privacy-note {
    margin: 15px 0 0;
    color: var(--ct-muted);
    font-size: .78rem;
    line-height: 1.6;
}

.contact-form button:disabled {
    cursor: wait;
    opacity: .65;
}

.contact-form [hidden] {
    display: none !important;
}

.cta-band-final h2 {
    max-width: 650px;
    margin: 10px 0;
    color: var(--ct-primary);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.2;
}

.cta-band-final .eyebrow {
    display: inline-block;
}

@media (max-width: 600px) {
    .contact-benefits {
        margin: 22px 0;
    }

    .faq-item {
        padding: 17px;
    }

    .cta-band-final .btn {
        width: 100%;
    }
}
