/* =========================================================
   ConnecTEK Technology — Capa de sitio (site.css)
   Se carga DESPUES del <style> propio de cada pagina, por lo
   que estas reglas corrigen y extienden el diseno existente.
   Contiene: navegacion responsive, correcciones mobile,
   boton CTA de cotizacion, formularios y footer profesional.
   ========================================================= */

/* ---------- 1. Bases y seguridad de layout ---------- */
html {
    scroll-behavior: smooth;
    /* El header es sticky: compensa para que las anclas (#cableado, etc.)
       no queden escondidas debajo de la barra. */
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    height: auto;
}

/* Evita desbordes horizontales por palabras tecnicas largas */
h1, h2, h3, h4, p, li, td, th {
    overflow-wrap: break-word;
}

/* Accesibilidad: foco visible por teclado (tambien mejora calidad SEO/Ads) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #D4AF37;
    outline-offset: 2px;
    border-radius: 4px;
}

.ck-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 4000;
    background: #0D3B2E;
    color: #fff;
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.ck-skip-link:focus {
    left: 0;
}

/* ---------- 2. Boton CTA "Cotizar" en la barra de menu ---------- */
.nav-cta > a,
a.nav-cta-link {
    background: linear-gradient(135deg, #E2B22B 0%, #D4AF37 100%);
    color: #0D3B2E !important;
    padding: 0.62rem 1.15rem !important;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
    border-bottom: 0 !important;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta > a:hover,
a.nav-cta-link:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(212, 175, 55, 0.45);
    color: #0D3B2E !important;
    border-bottom: 0 !important;
}

/* ---------- 3. Boton hamburguesa ---------- */
.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    background: #0D3B2E;
    color: #fff;
    border: 0;
    border-radius: 9px;
    padding: 0.62rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    line-height: 1;
}

.nav-toggle .nav-toggle-bars {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.2s;
}

.nav-toggle .nav-toggle-bars::before,
.nav-toggle .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle .nav-toggle-bars::before { top: -6px; }
.nav-toggle .nav-toggle-bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

/* Flecha indicadora en los items que tienen submenu.
   Reemplaza los caracteres "▼" que venian escritos a mano en el texto
   del enlace (algunos aparecian en items que no tenian submenu). */
.ck-caret {
    display: inline-block;
    margin-left: 0.3rem;
    font-size: 0.62rem;
    opacity: 0.7;
    transition: transform 0.25s ease;
    flex: 0 0 auto;
}

.dropdown:hover > a > .ck-caret {
    opacity: 1;
}

/* Correccion heredada: el CSS original combinaba nav a{align-items:center}
   con .dropdown-menu a{flex-direction:column}, lo que dejaba el texto de
   los submenus centrado y dificil de leer. Se alinea a la izquierda. */
.dropdown-menu a {
    align-items: flex-start !important;
    text-align: left;
}

/* El "Ver todo" es exclusivo del menu tactil: oculto en escritorio,
   donde el titulo del menu ya es un enlace directo. */
.ck-verall {
    display: none;
}

/* ---------- 4. Correccion del desplegable en escritorio ---------- */
/* El ultimo item del menu abria su submenu de 380px hacia la derecha
   y se salia de la pantalla: se ancla al borde derecho. */
@media (min-width: 1025px) {
    nav > ul > li:last-child .dropdown-menu,
    nav > ul > li:nth-last-child(2) .dropdown-menu {
        left: auto;
        right: 0;
    }

    .dropdown-menu {
        max-width: min(380px, calc(100vw - 3rem));
    }
}

/* ---------- 5. NAVEGACION MOBILE / TABLET (<= 1024px) ---------- */
@media (max-width: 1024px) {

    /* La hamburguesa solo aparece si JavaScript esta disponible.
       Sin JS el menu queda visible y apilado (degradacion elegante). */
    .ck-js .nav-toggle {
        display: inline-flex;
    }

    .header-container {
        position: relative;
        padding: 0.7rem 1rem !important;
        gap: 0.75rem;
    }

    .logo-svg {
        height: 42px !important;
    }

    /* El menu pasa a ser un panel desplegable bajo el header */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-top: 1px solid #E0E7E3;
        border-bottom: 3px solid #D4AF37;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
        max-height: calc(100vh - 74px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1200;
    }

    .ck-js nav {
        display: none;
    }

    .ck-js nav.is-open {
        display: block;
    }

    /* Enlace "Ver todo" inyectado al inicio de cada submenu: garantiza
       que en tactil siempre se pueda llegar a la pagina de la seccion,
       ya que el primer toque en el titulo solo despliega el acordeon. */
    .ck-verall {
        display: block;
    }

    .ck-verall a {
        background: #EDF4F0;
        font-weight: 800 !important;
        color: #0D3B2E !important;
    }

    nav > ul {
        display: block !important;
        gap: 0 !important;
        padding: 0.35rem 0;
    }

    nav > ul > li {
        border-bottom: 1px solid #EEF3F0;
    }

    nav > ul > li:last-child {
        border-bottom: 0;
    }

    nav > ul > li > a {
        display: flex !important;
        align-items: center;
        width: 100%;
        padding: 0.95rem 1.15rem !important;
        font-size: 1.02rem;
        /* Sin subrayado inferior que descuadre las filas */
        border-bottom: 0 !important;
        min-height: 48px; /* objetivo tactil comodo */
        box-sizing: border-box;
    }

    nav > ul > li > a.active {
        background: #F4F8F6;
        color: #0D3B2E !important;
        box-shadow: inset 4px 0 0 #D4AF37;
    }

    .ck-caret {
        margin-left: auto;
        font-size: 0.8rem;
        opacity: 1;
    }

    .dropdown.is-open > a > .ck-caret {
        transform: rotate(180deg);
    }

    /* Submenu como acordeon: se despliega al tocar, no al pasar el mouse */
    .dropdown-menu {
        position: static !important;
        width: auto !important;
        max-width: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #F7FAF8 !important;
        max-height: 0;
        overflow: hidden;
        padding: 0 !important;
        transition: max-height 0.32s ease;
    }

    .dropdown.is-open > .dropdown-menu {
        max-height: 1800px;
        padding: 0.25rem 0 0.5rem 0 !important;
    }

    .dropdown-menu li {
        border-bottom: 1px solid #E6EEEA;
    }

    .dropdown-menu li:last-child {
        border-bottom: 0;
    }

    .dropdown-menu a {
        padding: 0.8rem 1.15rem 0.8rem 1.9rem !important;
        font-size: 0.95rem;
        border-bottom: 0 !important;
        min-height: 46px;
        justify-content: center;
    }

    .dropdown-menu a:hover {
        padding-left: 1.9rem !important;
    }

    /* CTA a ancho completo dentro del panel */
    .nav-cta {
        padding: 0.85rem 1.15rem;
        border-bottom: 0 !important;
    }

    .nav-cta > a {
        justify-content: center;
        text-align: center;
        padding: 0.95rem 1rem !important;
        font-size: 1.05rem !important;
        box-shadow: none;
    }

    .nav-cta > a:hover {
        transform: none;
    }
}

/* ---------- 6. Correcciones generales de mobile ---------- */
@media (max-width: 768px) {

    /* Tipografia y aire */
    .hero-home,
    .hero-section,
    .hero-service,
    .hero-product {
        padding-left: 1.15rem !important;
        padding-right: 1.15rem !important;
    }

    .ecosystem-section,
    .green-it-explain-section,
    .full-nav-section,
    .main-container,
    .dna-section,
    .stats-bar-section {
        padding-left: 1.15rem !important;
        padding-right: 1.15rem !important;
    }

    .green-it-card {
        padding: 1.6rem 1.25rem !important;
    }

    .section-header-center h2 {
        font-size: 1.6rem !important;
        line-height: 1.25;
    }

    /* Estadisticas: 2 columnas se leen mejor que 1 en telefono */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.1rem !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-label {
        font-size: 0.78rem !important;
    }

    /* Tablas: que hagan scroll horizontal real en vez de aplastarse */
    .deliverables-table,
    .matrix-table {
        min-width: 580px;
    }

    .deliverables-table-wrapper,
    .table-wrapper {
        position: relative;
    }

    .deliverables-table-wrapper::after,
    .table-wrapper::after {
        content: "→ desliza para ver la tabla completa";
        display: block;
        font-size: 0.72rem;
        color: #52635C;
        padding: 0.45rem 0.7rem;
        background: #F4F7F5;
        border-top: 1px solid #E0E7E3;
        position: sticky;
        left: 0;
    }

    .deliverables-table th,
    .deliverables-table td,
    .matrix-table th,
    .matrix-table td {
        padding: 0.7rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    /* Burbuja WhatsApp un poco mas discreta para no tapar contenido */
    .whatsapp-float {
        width: 54px !important;
        height: 54px !important;
        font-size: 27px !important;
        bottom: 16px !important;
        right: 16px !important;
    }

    /* Nunca permitir grillas de mas de 1 columna que causen desborde */
    .capacidades-grid,
    .portals-grid,
    .pillars-grid,
    .dna-grid,
    .services-grid,
    .products-grid,
    .categories-grid-nav {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-content-home h1,
    .hero-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.22;
    }

    .badge-welcome {
        font-size: 0.76rem !important;
        padding: 0.4rem 0.85rem !important;
    }

    .hero-content-home p,
    .hero-content p {
        font-size: 1rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .green-it-card h3 {
        font-size: 1.35rem !important;
    }
}

/* =========================================================
   7. PAGINA DE COTIZACION — formulario
   ========================================================= */
.ck-form-page {
    max-width: 1150px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 2.5rem;
    align-items: start;
}

.ck-form-card {
    background: #fff;
    border: 1px solid #E0E7E3;
    border-top: 4px solid #D4AF37;
    border-radius: 14px;
    padding: 2.2rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.ck-form-card h2 {
    color: #0D3B2E;
    font-size: 1.55rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
}

.ck-form-intro {
    color: #52635C;
    font-size: 0.98rem;
    margin-bottom: 1.8rem;
    line-height: 1.55;
}

.ck-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.ck-field {
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
}

.ck-field label {
    font-size: 0.87rem;
    font-weight: 700;
    color: #0D3B2E;
    margin-bottom: 0.42rem;
    letter-spacing: 0.2px;
}

.ck-req {
    color: #C0392B;
    font-weight: 800;
}

.ck-field input,
.ck-field select,
.ck-field textarea {
    font-family: inherit;
    font-size: 0.98rem;
    color: #1A2621;
    padding: 0.78rem 0.9rem;
    border: 1.5px solid #D9E3DE;
    border-radius: 9px;
    background: #FCFDFC;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    width: 100%;
    box-sizing: border-box;
    /* 16px minimo evita el zoom automatico de iOS al enfocar */
    min-height: 46px;
}

.ck-field textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.55;
}

.ck-field input:focus,
.ck-field select:focus,
.ck-field textarea:focus {
    border-color: #D4AF37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
    outline: none;
}

.ck-field input:user-invalid,
.ck-field textarea:user-invalid,
.ck-field.has-error input,
.ck-field.has-error select,
.ck-field.has-error textarea {
    border-color: #C0392B;
    background: #FFF8F7;
}

.ck-error-msg {
    display: none;
    color: #C0392B;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.ck-field.has-error .ck-error-msg {
    display: block;
}

.ck-hint {
    font-size: 0.78rem;
    color: #7A8B84;
    margin-top: 0.35rem;
}

/* Trampa anti-spam: invisible para personas, visible para bots */
.ck-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.ck-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    background: #F4F7F5;
    border: 1px solid #E0E7E3;
    border-radius: 10px;
    padding: 0.95rem 1rem;
    margin: 0.4rem 0 1.4rem 0;
}

.ck-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: #0D3B2E;
    cursor: pointer;
}

.ck-consent label {
    font-size: 0.85rem;
    color: #52635C;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
}

.ck-consent a {
    color: #0D3B2E;
    font-weight: 700;
}

.ck-submit {
    width: 100%;
    background: linear-gradient(135deg, #0D3B2E 0%, #165241 100%);
    color: #fff;
    border: 0;
    border-bottom: 3px solid #D4AF37;
    border-radius: 10px;
    padding: 1.05rem 1.5rem;
    font-family: inherit;
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 6px 18px rgba(13, 59, 46, 0.22);
}

.ck-submit:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13, 59, 46, 0.3);
}

.ck-submit:disabled {
    opacity: 0.62;
    cursor: progress;
    transform: none;
}

.ck-form-legal {
    font-size: 0.78rem;
    color: #7A8B84;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

/* Panel lateral de confianza / contacto directo */
.ck-aside-card {
    background: linear-gradient(135deg, #0A392A 0%, #0D3B2E 100%);
    color: #fff;
    border-radius: 14px;
    padding: 1.9rem 1.6rem;
    border-left: 5px solid #D4AF37;
    box-shadow: 0 10px 28px rgba(10, 57, 42, 0.22);
    margin-bottom: 1.5rem;
}

.ck-aside-card h3 {
    color: #E2B22B;
    font-size: 1.18rem;
    margin-bottom: 1.1rem;
    font-weight: 800;
}

.ck-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    text-decoration: none;
    color: #fff;
}

.ck-contact-item:last-child {
    border-bottom: 0;
}

.ck-contact-item .ck-ci-icon {
    font-size: 1.35rem;
    flex: 0 0 auto;
    line-height: 1.2;
}

.ck-contact-item strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.1rem;
}

.ck-contact-item span {
    font-size: 0.83rem;
    color: #BDD4C9;
}

a.ck-contact-item:hover strong {
    color: #E2B22B;
}

.ck-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ck-trust-list li {
    font-size: 0.9rem;
    color: #52635C;
    padding: 0.6rem 0 0.6rem 1.75rem;
    position: relative;
    border-bottom: 1px solid #EEF3F0;
    line-height: 1.45;
}

.ck-trust-list li:last-child {
    border-bottom: 0;
}

.ck-trust-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.55rem;
    color: #4CAF50;
    font-weight: 900;
}

.ck-aside-plain {
    background: #fff;
    border: 1px solid #E0E7E3;
    border-radius: 14px;
    padding: 1.6rem;
}

.ck-aside-plain h3 {
    color: #0D3B2E;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    font-weight: 800;
}

@media (max-width: 900px) {
    .ck-form-page {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin: 2rem auto;
        padding: 0 1.15rem;
    }

    .ck-form-card {
        padding: 1.5rem 1.2rem;
        order: 1;
    }

    .ck-aside-wrap {
        order: 2;
    }

    .ck-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ck-field input,
    .ck-field select,
    .ck-field textarea {
        font-size: 16px; /* obligatorio para que iOS no haga zoom */
    }
}

/* ---------- 8. Bloque de aviso (exito / error) ---------- */
.ck-alert {
    width: 100%;
    margin: 0 0 1.6rem 0;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;
    box-sizing: border-box;
}

.ck-alert-error {
    background: #FDF3F2;
    border: 1.5px solid #E7B7B1;
    color: #96271A;
}

/* =========================================================
   9. FOOTER PROFESIONAL
   ========================================================= */
.ck-footer {
    padding: 3rem 1.5rem 1.4rem 1.5rem !important;
}

.ck-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ck-footer-col h4 {
    color: #E2B22B;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 1.05rem;
}

.ck-footer-brand-name {
    font-size: 1.22rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 0.55rem;
}

.ck-footer-col p {
    font-size: 0.87rem;
    color: #B4CBC0;
    line-height: 1.62;
    margin-bottom: 0.9rem;
}

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

.ck-footer-col ul li {
    margin-bottom: 0.62rem;
}

.ck-footer-col ul li a,
.ck-footer-contact a,
.ck-footer-contact span {
    color: #CFE0D8;
    text-decoration: none;
    font-size: 0.87rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
    line-height: 1.5;
}

.ck-footer-col ul li a:hover,
.ck-footer-contact a:hover {
    color: #E2B22B;
    padding-left: 4px;
}

.ck-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.ck-footer-contact li .ck-fc-ico {
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1.5;
}

.ck-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(76, 175, 80, 0.16);
    border: 1px solid #4CAF50;
    color: #A8E0AB;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    margin-top: 0.3rem;
}

.ck-footer-cta {
    display: inline-block;
    background: linear-gradient(135deg, #E2B22B 0%, #D4AF37 100%);
    color: #0D3B2E !important;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.75rem 1.3rem;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ck-footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.35);
    padding-left: 1.3rem !important;
    color: #0D3B2E !important;
}

.ck-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ck-footer-copy {
    font-size: 0.82rem;
    color: #93AFA3;
    line-height: 1.5;
    margin: 0;
}

.ck-footer-legal-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.ck-footer-legal-links a {
    font-size: 0.82rem;
    color: #93AFA3;
    text-decoration: none;
}

.ck-footer-legal-links a:hover {
    color: #E2B22B;
}

@media (max-width: 900px) {
    .ck-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
    }
}

@media (max-width: 560px) {
    .ck-footer {
        padding: 2.2rem 1.15rem 1.2rem 1.15rem !important;
    }

    .ck-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.7rem;
        padding-bottom: 1.6rem;
    }

    .ck-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* =========================================================
   10. Paginas de contenido simple (gracias / legal)
   ========================================================= */
.ck-simple-page {
    max-width: 880px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
}

.ck-simple-page h1 {
    color: #0D3B2E;
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 0.9rem;
    line-height: 1.2;
}

.ck-simple-page h2 {
    color: #0D3B2E;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 2.2rem 0 0.7rem 0;
}

.ck-simple-page p,
.ck-simple-page li {
    color: #52635C;
    font-size: 0.97rem;
    line-height: 1.68;
    margin-bottom: 0.8rem;
}

.ck-simple-page ul {
    padding-left: 1.3rem;
    margin-bottom: 1rem;
}

.ck-legal-updated {
    font-size: 0.84rem;
    color: #7A8B84;
    background: #F4F7F5;
    border-left: 4px solid #D4AF37;
    padding: 0.8rem 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

/* Pagina de gracias */
.ck-thanks {
    max-width: 760px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.ck-thanks-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.5rem auto;
    background: rgba(76, 175, 80, 0.13);
    border: 2px solid #4CAF50;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
}

.ck-thanks h1 {
    color: #0D3B2E;
    font-size: 2.15rem;
    font-weight: 900;
    margin-bottom: 0.9rem;
    line-height: 1.2;
}

.ck-thanks > p {
    color: #52635C;
    font-size: 1.08rem;
    line-height: 1.62;
    margin-bottom: 1.6rem;
}

.ck-thanks-steps {
    background: #fff;
    border: 1px solid #E0E7E3;
    border-radius: 14px;
    padding: 1.8rem;
    text-align: left;
    margin: 2rem 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.ck-thanks-steps h3 {
    color: #0D3B2E;
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.ck-thanks-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

.ck-btn-primary,
.ck-btn-ghost {
    display: inline-block;
    padding: 0.9rem 1.6rem;
    border-radius: 9px;
    font-weight: 800;
    font-size: 0.97rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ck-btn-primary {
    background: #0D3B2E;
    color: #fff;
    border-bottom: 3px solid #D4AF37;
}

.ck-btn-ghost {
    background: #fff;
    color: #0D3B2E;
    border: 1.5px solid #D4AF37;
}

.ck-btn-primary:hover,
.ck-btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.13);
}

@media (max-width: 560px) {
    .ck-thanks h1 { font-size: 1.65rem; }
    .ck-simple-page h1 { font-size: 1.6rem; }
    .ck-thanks-btns { flex-direction: column; }
    .ck-btn-primary, .ck-btn-ghost { width: 100%; text-align: center; box-sizing: border-box; }
}

/* ---------- 11. Impresion ---------- */
@media print {
    header, .whatsapp-float, .nav-toggle, footer, .ck-aside-wrap { display: none !important; }
    body { background: #fff !important; }
}
