﻿/* ═══════════════════════════════════════════════════════════════════
   confidat-public-pages.css  —  Estilos de páginas y secciones específicas
   (ComoFunciona, Beneficios, Herramientas a medida, Cookies)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Cómo funciona ──────────────────────────────────────────────── */
.cc-pub-hero--sm {
    padding: 4rem 1.25rem 2.5rem;
}

.cc-pub-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.cc-pub-section--alt {
    background: var(--pub-surface);
}

.cc-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.cc-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.cc-step-num {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--pub-btn);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.cc-step-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pub-ink);
}

.cc-step-body p {
    margin: 0;
    color: var(--pub-muted);
    line-height: 1.6;
}

/* ── Highlight grid (ComoFunciona / Beneficios) ─────────────────── */
.cc-pub-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.75rem;
    padding: 2.5rem 0;
}

.cc-pub-highlight {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.cc-pub-highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pub-ink);
    margin-bottom: 0.75rem;
}

    .cc-pub-highlight-icon .lucide-icon {
        width: 32px;
        height: 32px;
    }

.cc-pub-highlight h4 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pub-ink);
}

.cc-pub-highlight p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pub-muted);
    line-height: 1.5;
}

/* ── CTA sección interior ───────────────────────────────────────── */
.cc-pub-cta {
    text-align: center;
}

.cc-pub-cta-inner {
    padding: 3rem 0;
}

    .cc-pub-cta-inner h2 {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--pub-ink);
        margin-bottom: 0.5rem;
    }

    .cc-pub-cta-inner p {
        color: var(--pub-muted);
        margin-bottom: 1.5rem;
    }

.cc-cta-btn {
    display: inline-block;
    background: var(--pub-btn);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}

    .cc-cta-btn:hover {
        background: var(--pub-ink);
        color: #fff;
    }

/* ── Herramientas a medida (Home) ───────────────────────────────── */
.cc-pub-custom-tool-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.cc-pub-custom-tool-text h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--pub-ink);
    margin: 0.25rem 0 0.75rem;
    letter-spacing: -0.02em;
}

.cc-pub-custom-tool-text p {
    color: var(--pub-mid);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 1rem;
}

.cc-pub-custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .cc-pub-custom-list li {
        font-size: 0.88rem;
        color: var(--pub-ink);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .cc-pub-custom-list li::before {
            content: "✓";
            color: var(--pub-btn);
            font-weight: 700;
            flex-shrink: 0;
        }

.cc-pub-custom-tool-visual {
    text-align: center;
    opacity: 0.65;
}

.cc-pub-custom-badge {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cc-pub-custom-tool-visual p {
    font-size: 0.82rem;
    color: var(--pub-mid);
    line-height: 1.5;
}

@media (max-width: 700px) {
    .cc-pub-custom-tool-inner {
        grid-template-columns: 1fr;
    }

    .cc-pub-custom-tool-visual {
        display: none;
    }
}

/* ── Banner de consentimiento de cookies ────────────────────────── */
.cc-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--pub-white);
    border-top: 1.5px solid var(--pub-border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    padding: 1.1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
    animation: cc-cookie-slide-up 0.3s ease;
}

    .cc-cookie-banner.hidden {
        display: none;
    }

@keyframes cc-cookie-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cc-cookie-text {
    flex: 1;
    min-width: 220px;
    font-size: 0.88rem;
    color: var(--pub-mid);
    line-height: 1.55;
}

    .cc-cookie-text strong {
        color: var(--pub-ink);
    }

    .cc-cookie-text a {
        color: var(--pub-btn);
        text-decoration: underline;
    }

.cc-cookie-actions {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.cc-cookie-btn-accept {
    background: var(--pub-btn);
    color: var(--pub-white);
    border: none;
    padding: 0.55rem 1.4rem;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

    .cc-cookie-btn-accept:hover {
        background: var(--pub-btn-hover);
    }

.cc-cookie-btn-policy {
    background: transparent;
    color: var(--pub-mid);
    border: 1.5px solid var(--pub-border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    font-family: inherit;
    white-space: nowrap;
    display: inline-block;
}

    .cc-cookie-btn-policy:hover {
        border-color: var(--pub-ink);
        color: var(--pub-ink);
    }

@media (max-width: 600px) {
    .cc-cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .cc-cookie-actions {
        width: 100%;
    }

    .cc-cookie-btn-accept,
    .cc-cookie-btn-policy {
        flex: 1;
        text-align: center;
    }
}

/* ── Página Beneficios ──────────────────────────────────────────── */
.cc-ben-custom-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a2f50 50%, #0f2040 100%);
    color: #fff;
    padding: 5rem 0;
}

    .cc-ben-custom-section .cc-pub-eyebrow {
        color: #93c5fd;
    }

    .cc-ben-custom-section h2 {
        color: #fff;
        font-size: 2.1rem;
    }

    /* El botón secundario hereda color oscuro por defecto; sobre el fondo
       oscuro de esta sección necesita colores claros para ser legible. */
    .cc-ben-custom-section .cc-pub-cta-secondary {
        color: rgba(255,255,255,0.9);
        border-color: rgba(255,255,255,0.4);
    }

        .cc-ben-custom-section .cc-pub-cta-secondary:hover {
            color: #fff;
            border-color: #fff;
        }

.cc-ben-custom-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
}

.cc-ben-custom-lead {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.cc-ben-custom-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cc-ben-custom-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cc-ben-custom-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: #e2e8f0;
}

    .cc-ben-custom-feature-icon .lucide-icon {
        width: 24px;
        height: 24px;
    }

.cc-ben-custom-feature strong {
    display: block;
    color: #e2e8f0;
    font-size: 0.97rem;
    margin-bottom: 0.25rem;
}

.cc-ben-custom-feature p {
    margin: 0;
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
}

.cc-ben-custom-visual {
    position: relative;
}

.cc-ben-visual-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.cc-ben-visual-card-header {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid #e2e8f0;
}

.cc-ben-visual-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.cc-ben-visual-dot--red {
    background: #f87171;
}

.cc-ben-visual-dot--yellow {
    background: #fbbf24;
}

.cc-ben-visual-dot--green {
    background: #4ade80;
}

.cc-ben-visual-card-title {
    margin-left: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.cc-ben-visual-card-body {
    padding: 1.25rem 1.5rem;
}

.cc-ben-visual-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cc-ben-visual-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.cc-ben-visual-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

    .cc-ben-visual-chip .lucide-icon {
        width: 13px;
        height: 13px;
    }

.cc-ben-visual-chip--blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.cc-ben-visual-chip--green {
    background: #dcfce7;
    color: #15803d;
}

.cc-ben-visual-chip--gray {
    background: #f1f5f9;
    color: #475569;
}

.cc-ben-visual-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

.cc-ben-visual-output-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.cc-ben-visual-output-line {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    animation: cc-pulse 2s ease-in-out infinite;
}

.cc-ben-visual-output-line--full {
    width: 100%;
}

.cc-ben-visual-output-line--med {
    width: 72%;
    animation-delay: 0.3s;
}

.cc-ben-visual-output-line--short {
    width: 45%;
    animation-delay: 0.6s;
}

@keyframes cc-pulse {
    0%, 100% {
        background: #e2e8f0;
    }

    50% {
        background: #bfdbfe;
    }
}

.cc-ben-visual-badge {
    position: absolute;
    bottom: -1.25rem;
    right: -1rem;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

    .cc-ben-visual-badge-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1e293b;
        flex-shrink: 0;
    }

        .cc-ben-visual-badge-icon .lucide-icon {
            width: 22px;
            height: 22px;
        }

    .cc-ben-visual-badge div {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .cc-ben-visual-badge strong {
        font-size: 0.82rem;
        color: #1e293b;
        font-weight: 700;
    }

    .cc-ben-visual-badge span {
        font-size: 0.72rem;
        color: #64748b;
    }

@media (max-width: 900px) {
    .cc-ben-custom-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cc-ben-custom-visual {
        max-width: 420px;
        margin: 0 auto;
    }
}
