/* =========================
   PORTADA - TÍTULO PRINCIPAL
========================= */
#portada h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #1f2933;
}

@media (min-width: 700px) {
    #portada h1 {
        font-size: 2.6rem;
    }
}

/* Botones CTA de la portada pegados al fondo de la columna de texto */
#portada .demo-buttons {
    margin-top: 28px;
}

/* =========================
   ETIQUETA "EYEBROW" DE SECCIÓN
========================= */
.section-eyebrow {
    /* Cada sección define su color con --eb-color (texto/icono) y --eb-rgb (fondo translúcido) */
    --eb-color: #1d4ed8;
    --eb-rgb: 37, 99, 235;

    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--eb-color);
    background: rgba(var(--eb-rgb), 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* Paleta: un color distinto por sección */
.section-eyebrow.accent-blue {
    --eb-color: #1d4ed8;
    --eb-rgb: 37, 99, 235;
}

.section-eyebrow.accent-teal {
    --eb-color: #0f766e;
    --eb-rgb: 13, 148, 136;
}

.section-eyebrow.accent-purple {
    --eb-color: #6d28d9;
    --eb-rgb: 124, 58, 237;
}

.section-eyebrow.accent-orange {
    --eb-color: #c2410c;
    --eb-rgb: 234, 88, 12;
}

.section-eyebrow.accent-green {
    --eb-color: #15803d;
    --eb-rgb: 22, 163, 74;
}

.section-eyebrow.accent-fuchsia {
    --eb-color: #a21caf;
    --eb-rgb: 192, 38, 211;
}

.section-eyebrow.accent-red {
    --eb-color: #b91c1c;
    --eb-rgb: 220, 38, 38;
}

.section-eyebrow.accent-amber {
    --eb-color: #b45309;
    --eb-rgb: 217, 119, 6;
}

.section-eyebrow.accent-pink {
    --eb-color: #be185d;
    --eb-rgb: 219, 39, 119;
}

/* =========================
   MÓDULO ACCIÓN
   (Descargas / Integraciones / Recursos)
========================= */
.action-content h2 {
    margin-bottom: 12px;
}

.action-section .action-media {
    display: flex;
    justify-content: center;
}

.action-section .action-media img {
    max-width: 260px;
    filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.14));
}

/* Chip de versión (Descargas) */
.version-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2933;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.chip-divider {
    color: #cbd5e1;
}

/* Rejilla de plataformas (Descargas) */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2933;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.platform-card i {
    font-size: 1.35rem;
    color: #2563eb;
    width: 26px;
    text-align: center;
}

.platform-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.14);
}

@media (max-width: 420px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta CTA de descarga única (Integraciones) */
.download-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-cta i:first-child {
    flex-shrink: 0;
    font-size: 1.6rem;
    color: #0d9488;
}

.download-cta span {
    display: flex;
    flex-direction: column;
    color: #1f2933;
    font-size: 0.92rem;
}

.download-cta strong {
    font-size: 1rem;
    margin-bottom: 2px;
}

.cta-arrow {
    margin-left: auto;
    color: #0d9488;
    transition: transform 0.2s ease;
}

.download-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(13, 148, 136, 0.2);
}

.download-cta:hover .cta-arrow {
    transform: translateY(3px);
}

/* Rejilla de recursos (Recursos) */
.resource-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.resource-tile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding: 12px 20px 12px 12px;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    color: #1f2933;
    font-size: 0.95rem;
}

.resource-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    font-size: 1rem;
    flex-shrink: 0;
}

.resource-tile-arrow {
    color: #b45309;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.resource-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(245, 158, 11, 0.18);
}

.resource-tile:hover .resource-tile-arrow {
    transform: translateX(4px);
}

@media (max-width: 699px) {
    .resource-tile {
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   SERVICIOS OFERTADOS - TARJETAS
========================= */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.service-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

.service-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.service-card-icon.icon-blue {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.service-card-icon.icon-teal {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
}

.service-card-icon.icon-amber {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.service-card h3 {
    font-size: 1.05rem;
    color: #1f2933;
    margin-bottom: 10px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    margin-bottom: 8px;
    padding-left: 14px;
    position: relative;
    font-size: 0.92rem;
    color: #444;
}

.service-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
}

@media (max-width: 999px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}

/* Selector de versión (Descargas) */
.version-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.version-switch-label {
    padding: 0 10px 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.version-option {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2933;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.version-option:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.version-option.active,
.version-option.active:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.version-option:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.version-chip {
    display: flex;
    width: fit-content;
}

.version-chip .chip-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.version-chip .chip-date[hidden] {
    display: none;
}

.platform-grid.is-switching {
    opacity: 0;
    transform: translateY(4px);
}

.platform-grid {
    transition: opacity 0.18s ease, transform 0.18s ease;
}
