/* ============================================================================
   Diseño Web Interactivo — Landing + Configurador
   YourBestDev Theme
   ----------------------------------------------------------------------------
   Reutiliza tokens y utilidades de custom.css (gradient-bg, btn-gradient,
   glass, glass-card, tech-card, tech-grid-bg, hero-pattern, feature-icon,
   reveal, text-gradient, etc.). Aquí viven SOLO los estilos específicos de
   esta landing para no contaminar el resto del tema.
   ============================================================================ */

/* ============================================================================
   Layout base
   ============================================================================ */
body.ybd-diseno-body {
    background-color: #070b1d;
    color: #e5e7eb;
    margin: 0;
    min-height: 100vh;
}

.ybd-diseno {
    color: #e5e7eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ybd-diseno .container {
    max-width: 1200px;
    /* Asegura el mismo borde izquierdo que la cabecera */
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.ybd-diseno .skip-link {
    position: absolute;
    left: -9999px;
}

.ybd-diseno a:focus-visible,
.ybd-diseno button:focus-visible,
.ybd-diseno input:focus-visible,
.ybd-diseno textarea:focus-visible,
.ybd-diseno summary:focus-visible {
    outline: 2px solid #19C8E5;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ============================================================================
   HERO: tipografía, franja de precio, panel interactivo, mensajes de
   confianza. Mantiene la identidad tecnológica con composición más densa.
   ============================================================================ */

/* Etiqueta pequeña sobre el título */
.ybd-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #B5BED5;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.ybd-hero-label i {
    color: #19C8E5;
    font-size: 12px;
}

/* Título con saltos controlados por clase */
.ybd-hero-title {
    font-family: 'Sora', 'Inter', sans-serif;
    color: #F5F7FF;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.01em;
    margin: 0 0 22px;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    max-width: 14ch;
}

.ybd-hero-desc {
    color: #B5BED5;
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.6;
    max-width: 44ch;
    margin: 0 0 22px;
}

/* Franja compacta de precio */
.ybd-price-stripe {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(91, 91, 247, 0.28);
    background: linear-gradient(160deg, rgba(91, 91, 247, 0.10), rgba(25, 200, 229, 0.06));
    color: #F5F7FF;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    margin-bottom: 14px;
    max-width: 100%;
}

.ybd-price-stripe:hover,
.ybd-price-stripe:focus-visible {
    border-color: rgba(25, 200, 229, 0.55);
    background: linear-gradient(160deg, rgba(91, 91, 247, 0.16), rgba(25, 200, 229, 0.10));
    transform: translateY(-1px);
}

.ybd-price-stripe:focus-visible {
    outline: 2px solid #19C8E5;
    outline-offset: 2px;
}

.ybd-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #E5E7EB;
}

.ybd-price-tag i {
    color: #19C8E5;
}

.ybd-price-tag strong {
    font-weight: 800;
    font-size: 15px;
}

.ybd-price-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #19C8E5;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Enlace secundario */
.ybd-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #B5BED5;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;
    margin-bottom: 22px;
    transition: color 0.16s ease;
}

.ybd-text-link:hover {
    color: #19C8E5;
}

/* Mensajes de confianza */
.ybd-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.ybd-trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #B5BED5;
    font-size: 14px;
}

.ybd-trust-list i {
    color: #4ade80;
    font-size: 14px;
}

/* Panel interactivo: tarjeta con jerarquía y halo cian suave */
.ybd-interactive-panel {
    position: relative;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(21, 29, 56, 0.92), rgba(13, 20, 48, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* Halo cian solo detrás del panel, no alrededor del contorno */
.ybd-interactive-halo {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(25, 200, 229, 0.35) 0%, rgba(25, 200, 229, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.ybd-interactive-inner {
    position: relative;
    z-index: 1;
    padding: 26px 28px 28px;
}

@media (min-width: 1024px) {
    .ybd-interactive-inner {
        padding: 30px 32px 32px;
    }
}

.ybd-interactive-header {
    margin-bottom: 18px;
}

.ybd-interactive-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #19C8E5;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.ybd-interactive-eyebrow i {
    font-size: 11px;
}

.ybd-interactive-title {
    color: #F5F7FF;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px;
}

.ybd-interactive-help {
    color: #B5BED5;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Lista de opciones: separación consistente y padding generoso */
.ybd-options-list,
#ybd-diseno-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ybd-options-list {
    margin-bottom: 16px;
}

/* Variante para opciones del configurador (sin separación con el botón) */
#ybd-diseno-options {
    margin-bottom: 0;
}

/* Nota de privacidad bajo el panel */
.ybd-privacy-note {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6b7494;
    font-size: 12px;
}

.ybd-privacy-note i {
    color: #4ade80;
}

/* Frase contextual (aparece tras seleccionar un objetivo) */
.ybd-context {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(25, 200, 229, 0.08);
    border-left: 3px solid #19C8E5;
    color: #F5F7FF;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px;
    animation: ybdFadeIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ybd-context.is-visible {
    display: flex;
}

.ybd-context i {
    color: #19C8E5;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Hint debajo del CTA del panel */
.ybd-interactive-hint {
    margin: 10px 0 0;
    text-align: center;
    color: #6b7494;
    font-size: 12px;
}

/* ============================================================================
   BOTONES de la landing.
   La clase global .btn-gradient / .btn-ghost del tema puede ser sobrescrita
   por reglas con mayor especificidad en otras secciones. Aquí fijamos
   dimensiones explícitas para garantizar 50–54 px de alto, padding
   horizontal de 24 px, gap de 10 px y radio de 14 px.
   ============================================================================ */
.ybd-btn-primary,
.ybd-diseno .btn-gradient.ybd-btn,
.ybd-diseno .btn-ghost.ybd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.ybd-btn-primary {
    background: linear-gradient(135deg, #5B5BF7 0%, #7c7cf9 50%, #22d3ee 120%);
    color: #fff;
    border: none;
    box-shadow: 0 12px 30px -14px rgba(91, 91, 247, 0.6);
}

.ybd-btn-primary:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px -14px rgba(91, 91, 247, 0.75);
    filter: brightness(1.04);
}

.ybd-btn-primary[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Variante ghost específica del landing */
.ybd-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ybd-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(34, 211, 238, 0.5);
    transform: translateY(-1px);
}

/* ============================================================================
   OPCIONES (seleccionables) - rediseñadas con indicador de selección
   explícito (círculo vacío → check rellenado) en lugar de flecha.
   ============================================================================ */
.ybd-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px;
    min-height: 64px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: #F5F7FF;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ybd-option:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.ybd-option.is-selected,
.ybd-option[aria-checked="true"] {
    border-color: #19C8E5;
    background: rgba(25, 200, 229, 0.10);
    box-shadow: 0 0 0 1px #19C8E5 inset, 0 14px 30px -16px rgba(25, 200, 229, 0.5);
}

.ybd-option.is-selected .ybd-option-icon,
.ybd-option[aria-checked="true"] .ybd-option-icon {
    background: rgba(25, 200, 229, 0.22);
    border-color: rgba(25, 200, 229, 0.6);
    color: #19C8E5;
}

/* Indicador de selección: círculo vacío en reposo, check rellenado al elegir */
.ybd-option-check {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ybd-option-check .ybd-option-check-empty {
    color: #6b7494;
    font-size: 16px;
    line-height: 1;
}

.ybd-option-check .ybd-option-check-filled {
    display: none;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.ybd-option.is-selected .ybd-option-check,
.ybd-option[aria-checked="true"] .ybd-option-check {
    border-color: #19C8E5;
    background: #19C8E5;
}

.ybd-option.is-selected .ybd-option-check-empty,
.ybd-option[aria-checked="true"] .ybd-option-check-empty {
    display: none;
}

.ybd-option.is-selected .ybd-option-check-filled,
.ybd-option[aria-checked="true"] .ybd-option-check-filled {
    display: inline-block;
}

.ybd-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #B5BED5;
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ybd-option-body {
    flex: 1;
    min-width: 0;
}

.ybd-option-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    color: #F5F7FF;
}

.ybd-option-desc {
    display: block;
    font-size: 12.5px;
    line-height: 1.45;
    color: #B5BED5;
    margin-top: 2px;
}

/* ============================================================================
   Etapas del recorrido
   ============================================================================ */
.ybd-diseno-stages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ybd-diseno-stage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: #B5BED5;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ybd-diseno-stage.is-active {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.08);
    color: #F5F7FF;
}

.ybd-diseno-stage.is-done {
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.ybd-diseno-stage-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
    color: #F5F7FF;
}

.ybd-diseno-stage.is-active .ybd-diseno-stage-num {
    background: linear-gradient(135deg, #7758FF, #19C8E5);
}

.ybd-diseno-stage.is-done .ybd-diseno-stage-num {
    background: rgba(74, 222, 128, 0.25);
    color: #4ade80;
}

.ybd-diseno-stage-divider {
    flex: 0 0 18px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .ybd-diseno-stage-label {
        display: none;
    }
    .ybd-diseno-stage {
        padding: 6px 10px;
    }
}

/* ============================================================================
   Variante compacta para opciones pequeñas (próxima acción / encaje)
   ============================================================================ */
.ybd-option-compact {
    padding: 12px 14px;
    min-height: 56px;
}

/* ============================================================================
   Input fields
   ============================================================================ */
.ybd-diseno-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(8, 12, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F5F7FF;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ybd-diseno-input::placeholder {
    color: #6b7494;
}

.ybd-diseno-input:focus {
    border-color: #19C8E5;
    background: rgba(8, 12, 32, 0.85);
    box-shadow: 0 0 0 3px rgba(25, 200, 229, 0.18);
    outline: none;
}

.ybd-diseno-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #B5BED5;
    margin-bottom: 6px;
}

.ybd-diseno-error {
    font-size: 13px;
    color: #fb7185;
    margin-top: 4px;
    min-height: 1em;
}

.ybd-diseno-error.is-visible {
    color: #fb7185;
}

.ybd-diseno-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #19C8E5;
    cursor: pointer;
}

/* ============================================================================
   Animación de cambio de pregunta
   ============================================================================ */
.ybd-diseno-fade {
    animation: ybdFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ybdFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ybd-diseno-fade { animation: none; }
    .float-slow       { animation: none !important; }
    .reveal            { transition: none; opacity: 1; transform: none; }
}

/* ============================================================================
   Resultado personalizado
   ============================================================================ */
.ybd-diseno-info-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.ybd-diseno-info-title {
    font-size: 14px;
    font-weight: 700;
    color: #F5F7FF;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ybd-diseno-price-card {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(91, 91, 247, 0.25);
    background: linear-gradient(160deg, rgba(91, 91, 247, 0.08), rgba(25, 200, 229, 0.04));
    box-shadow: 0 18px 40px -24px rgba(91, 91, 247, 0.45);
}

.ybd-diseno-price-card .text-gradient {
    background: linear-gradient(135deg, #7758FF 0%, #48A8F5 50%, #19C8E5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ybd-diseno-price-warn {
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

/* ============================================================================
   Resumen lateral
   ============================================================================ */
.ybd-diseno-summary {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 160px;
}

.ybd-diseno-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ybd-diseno-summary li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: #F5F7FF;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ybd-diseno-summary li:last-child {
    border-bottom: none;
}

.ybd-diseno-summary .ybd-diseno-summary-key {
    color: #B5BED5;
    font-size: 12px;
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ybd-diseno-summary .ybd-diseno-summary-empty {
    font-size: 13px;
    color: #B5BED5;
    font-style: italic;
}

/* Resumen móvil (acordeón) */
.ybd-diseno-summary-mobile {
    margin-top: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.ybd-diseno-summary-mobile summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #F5F7FF;
    font-weight: 600;
}

.ybd-diseno-summary-mobile summary::-webkit-details-marker { display: none; }

.ybd-diseno-summary-chevron {
    color: #B5BED5;
    transition: transform 0.18s ease;
}

.ybd-diseno-summary-mobile[open] .ybd-diseno-summary-chevron {
    transform: rotate(180deg);
    color: #19C8E5;
}

.ybd-diseno-summary-body {
    padding: 0 18px 18px;
}

/* ============================================================================
   Navegación inferior del configurador
   ============================================================================ */
.ybd-diseno-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.ybd-diseno-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #F5F7FF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.ybd-diseno-back:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.24);
}

.ybd-diseno-back[hidden] {
    display: none;
}

/* ============================================================================
   Tarjetas de solución
   ============================================================================ */
.ybd-solution {
    background: linear-gradient(160deg, rgba(20, 28, 64, 0.85), rgba(12, 17, 40, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ybd-solution:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 25px 50px -25px rgba(34, 211, 238, 0.35);
}

/* ============================================================================
   Tarjetas de trabajo (placeholders honestos)
   ============================================================================ */
.ybd-work-placeholder {
    background: linear-gradient(160deg, rgba(20, 28, 64, 0.6), rgba(12, 17, 40, 0.7));
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.ybd-work-frame {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(91, 91, 247, 0.08), rgba(34, 211, 238, 0.05)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, rgba(255, 255, 255, 0) 12px 24px);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7494;
    font-size: 13px;
}

/* ============================================================================
   Pasos del proceso — timeline horizontal interactivo
   ============================================================================ */
.ybd-process-track {
    position: relative;
    --ybd-node: 58px;
}

/* Riel conector */
.ybd-process-rail {
    position: absolute;
    z-index: 0;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    overflow: hidden;
    pointer-events: none;
    /* Vertical (móvil) */
    left: calc(var(--ybd-node) / 2);
    top: 14px;
    bottom: 14px;
    width: 2px;
    transform: translateX(-50%);
}

.ybd-process-rail-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #7758FF, #19C8E5);
    box-shadow: 0 0 14px rgba(25, 200, 229, 0.55);
    /* Vertical (móvil) */
    transform: scaleY(0);
    transform-origin: center top;
    transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.ybd-process-track.is-visible .ybd-process-rail-fill {
    transform: scaleY(1);
}

/* Rejilla de pasos */
.ybd-process-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ybd-process-step {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Nodo numerado */
.ybd-process-node {
    position: relative;
    flex: 0 0 auto;
    width: var(--ybd-node);
    height: var(--ybd-node);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 28%, #17203f, #0a0f22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 6px rgba(7, 11, 29, 0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.ybd-process-node::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #7758FF, #19C8E5);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ybd-process-num {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    background: linear-gradient(135deg, #8B74FF, #2FD6EE);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(119, 88, 255, 0.35));
}

/* Tarjeta */
.ybd-process-card {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(20, 28, 64, 0.72), rgba(12, 17, 40, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.ybd-process-card .feature-icon {
    margin-bottom: 14px;
}

.ybd-process-card h3 {
    line-height: 1.3;
}

/* Interacción */
.ybd-process-step:hover .ybd-process-node {
    transform: translateY(-4px) scale(1.06);
    border-color: transparent;
    box-shadow: 0 0 0 6px rgba(7, 11, 29, 0.95), 0 0 26px rgba(119, 88, 255, 0.55), 0 0 48px rgba(25, 200, 229, 0.32);
}

.ybd-process-step:hover .ybd-process-node::before {
    opacity: 1;
}

.ybd-process-step:hover .ybd-process-card {
    transform: translateY(-6px);
    border-color: rgba(25, 200, 229, 0.4);
    box-shadow: 0 26px 55px -28px rgba(25, 200, 229, 0.5);
    background: linear-gradient(160deg, rgba(26, 36, 78, 0.85), rgba(14, 20, 46, 0.9));
}

/* Entrada escalonada de los pasos */
.ybd-process-track.is-visible .ybd-process-step {
    animation: ybdStepIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.ybd-process-track.is-visible .ybd-process-step:nth-child(1) { animation-delay: 0.05s; }
.ybd-process-track.is-visible .ybd-process-step:nth-child(2) { animation-delay: 0.15s; }
.ybd-process-track.is-visible .ybd-process-step:nth-child(3) { animation-delay: 0.25s; }
.ybd-process-track.is-visible .ybd-process-step:nth-child(4) { animation-delay: 0.35s; }
.ybd-process-track.is-visible .ybd-process-step:nth-child(5) { animation-delay: 0.45s; }
.ybd-process-track.is-visible .ybd-process-step:nth-child(6) { animation-delay: 0.55s; }

@keyframes ybdStepIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Desktop: timeline horizontal */
@media (min-width: 1024px) {
    .ybd-process-rail {
        top: calc(var(--ybd-node) / 2);
        left: calc((100% - 120px) / 12);
        right: calc((100% - 120px) / 12);
        bottom: auto;
        width: auto;
        height: 2px;
        transform: translateY(-50%);
    }

    .ybd-process-rail-fill {
        transform: scaleX(0);
        transform-origin: left center;
    }

    .ybd-process-track.is-visible .ybd-process-rail-fill {
        transform: scaleX(1);
    }

    .ybd-process-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 24px;
        align-items: stretch;
    }

    .ybd-process-step {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        text-align: center;
        height: 100%;
    }

    .ybd-process-card {
        width: 100%;
        padding: 20px 16px;
    }

    .ybd-process-card .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .ybd-process-card h3 {
        font-size: 1rem;
    }
}

/* Atenúa los pasos no señalados en dispositivos con hover */
@media (hover: hover) and (min-width: 1024px) {
    .ybd-process-grid:hover .ybd-process-step:not(:hover) {
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ybd-process-track.is-visible .ybd-process-step {
        animation: none;
    }
    .ybd-process-rail-fill {
        transition: none;
        transform: none;
    }
}

/* ============================================================================
   Éxito / estado final
   ============================================================================ */
.ybd-diseno-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.05);
}

/* ============================================================================
   Modal de alcance (qué incluye cada solución)
   ============================================================================ */
.ybd-scope-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ybd-scope-modal.is-open {
    display: flex;
}

.ybd-scope-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 29, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ybd-scope-modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(160deg, #0D1430, #151D38);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(34, 211, 238, 0.08);
    animation: ybdScopeIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ybdScopeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ybd-scope-modal-panel { animation: none; }
}

.ybd-scope-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #F5F7FF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.16s ease;
}

.ybd-scope-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ybd-scope-modal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ybd-scope-modal ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
}

/* ============================================================================
   Estados de envío (loading)
   ============================================================================ */
.btn-gradient[disabled],
.btn-ghost[disabled],
.ybd-option[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.is-spinner::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: ybdSpin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes ybdSpin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   Mobile tweaks
   ============================================================================ */
@media (max-width: 768px) {
    .ybd-diseno-stages {
        gap: 4px;
    }
    .ybd-diseno-stage-divider {
        flex: 0 0 8px;
    }
    .ybd-diseno-summary-mobile summary {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* ============================================================================
   Region viva para accesibilidad
   ============================================================================ */
.ybd-sr-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ============================================================================
   Asegura que el header sticky no tape la cabecera al hacer scroll a anclas
   ============================================================================ */
[id^="ybd-diseno-"] {
    scroll-margin-top: 88px;
}
/* ============================================================================
   Landing v1.0 — secciones nuevas y diálogo de diagnóstico
   ============================================================================ */

/* Saltar al contenido ------------------------------------------------------ */
.ybd-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: #67E8F9;
    color: #0B1020;
    padding: 10px 16px;
    border-radius: 0 0 10px 0;
    font-weight: 600;
}
.ybd-skip:focus { left: 0; }

/* Header sticky ------------------------------------------------------------ */
.ybd-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(8, 12, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Títulos de sección: definidos en reviews-marquee.css (global). */

.ybd-hero-support {
    margin-top: 1.25rem;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 60ch;
}

/* Composición de dispositivos (hero) -------------------------------------- */
.ybd-devices {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
}
.ybd-device {
    position: absolute;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #121B2F;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.ybd-device-screen { width: 100%; height: 100%; padding: 10px; background: linear-gradient(160deg, #0e1730, #121B2F); }
.ybd-device-laptop { left: 0; top: 6%; width: 78%; height: 62%; }
.ybd-device-tablet { right: 0; bottom: 0; width: 40%; height: 52%; }
.ybd-device-phone  { right: 6%; top: 0; width: 22%; height: 40%; border-radius: 16px; }
.ybd-device-phone .ybd-device-screen { padding: 6px; }
.ybd-mock-bar { height: 8px; width: 60%; border-radius: 4px; background: rgba(103, 232, 249, 0.5); margin-bottom: 8px; }
.ybd-mock-hero { height: 42%; border-radius: 8px; background: linear-gradient(135deg, rgba(103,232,249,0.25), rgba(196,181,253,0.25)); margin-bottom: 10px; }
.ybd-mock-row { display: flex; gap: 8px; }
.ybd-mock-row span { flex: 1; height: 28px; border-radius: 6px; background: rgba(255,255,255,0.07); }
.ybd-device-tag {
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    font-size: 11px;
    color: #94a3b8;
    background: rgba(8,12,32,0.9);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}

/* Situaciones -------------------------------------------------------------- */
.ybd-situation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 27, 47, 0.7);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
    cursor: pointer;
}
.ybd-situation:hover { transform: translateY(-2px); border-color: rgba(103, 232, 249, 0.5); background: rgba(27, 41, 67, 0.8); }
.ybd-situation:focus-visible { outline: 3px solid #FDE047; outline-offset: 3px; }
.ybd-situation-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(103, 232, 249, 0.12); color: #67E8F9; font-size: 18px;
}
.ybd-situation-title { font-size: 1.05rem; font-weight: 700; color: #fff; }
.ybd-situation-desc { font-size: 0.9rem; color: #94a3b8; line-height: 1.5; }
.ybd-situation-link { margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: #67E8F9; }

/* Antes / después ---------------------------------------------------------- */
.ybd-compare {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ybd-compare-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
    color: #cbd5e1;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ybd-compare-head span { background: #0e1730; padding: 14px 18px; }
.ybd-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
}
.ybd-compare-row > span { background: #0B1020; padding: 16px 18px; font-size: 0.92rem; line-height: 1.5; }
.ybd-compare-before { color: #94a3b8; display: flex; gap: 10px; align-items: flex-start; }
.ybd-compare-before i { color: #FDA4AF; margin-top: 3px; }
.ybd-compare-after { color: #e2e8f0; display: flex; gap: 10px; align-items: flex-start; }
.ybd-compare-after i { color: #86EFAC; margin-top: 3px; }
@media (max-width: 640px) {
    .ybd-compare-head { display: none; }
    .ybd-compare-row { grid-template-columns: 1fr; }
    .ybd-compare-before { background: #0e1730; }
    .ybd-compare-after { background: #0B1020; }
}

/* ============================================================================
   Diálogo de diagnóstico
   ============================================================================ */
.ybd-diag {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}
.ybd-diag.is-open { display: block; }
.ybd-diag-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 18, 0.75);
    backdrop-filter: blur(4px);
}
.ybd-diag-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 760px;
    max-width: calc(100vw - 48px);
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    background: #121B2F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
@media (max-width: 767px) {
    .ybd-diag-panel {
        left: 0; top: 0; transform: none;
        width: 100%; height: 100dvh; max-height: 100dvh; max-width: 100%;
        border-radius: 0;
    }
}
.ybd-diag-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 32, 0.5);
}
.ybd-diag-head-main { flex: 1; }
.ybd-diag-step { font-size: 12px; color: #94a3b8; margin-bottom: 6px; font-weight: 600; }
.ybd-diag-progress { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
#ybd-diag-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #67E8F9, #C4B5FD); transition: width 180ms ease; }
.ybd-diag-close {
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #cbd5e1; background: rgba(255,255,255,0.05); font-size: 18px;
}
.ybd-diag-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ybd-diag-body { flex: 1; overflow-y: auto; padding: 24px; }
.ybd-diag-q-title { font-size: 1.5rem; line-height: 1.25; font-weight: 800; color: #fff; margin-bottom: 8px; }
.ybd-diag-q-help { font-size: 0.95rem; color: #94a3b8; line-height: 1.55; margin-bottom: 18px; }
.ybd-diag-field { margin-bottom: 22px; }
.ybd-diag-field-label { font-size: 0.95rem; font-weight: 600; color: #e2e8f0; margin-bottom: 6px; }
.ybd-diag-field-help { font-size: 0.82rem; color: #94a3b8; margin-bottom: 8px; }
.ybd-diag-radio { display: flex; flex-wrap: wrap; gap: 10px; }
.ybd-diag-note {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.85rem; color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px; padding: 12px 14px; margin-bottom: 18px;
}
.ybd-diag-count { font-size: 0.72rem; color: #64748b; margin-top: 4px; text-align: right; }
.ybd-diag-error { display: none; font-size: 0.9rem; color: #FDA4AF; margin-top: 8px; }
.ybd-diag-error.is-visible { display: block; }
.ybd-diag-foot {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 32, 0.5);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.ybd-diag-foot #ybd-diag-back[hidden] { display: none; }

/* Resumen editable */
.ybd-diag-summary { background: rgba(8,12,32,0.5); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px 16px; margin-bottom: 22px; }
.ybd-diag-summary-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #67E8F9; font-weight: 700; margin-bottom: 10px; }
.ybd-diag-summary ul { display: flex; flex-direction: column; gap: 6px; }
.ybd-diag-summary li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; font-size: 0.85rem; color: #e2e8f0; align-items: baseline; }
.ybd-diag-summary-key { color: #94a3b8; }
.ybd-diag-edit { font-size: 0.78rem; color: #67E8F9; font-weight: 600; }
.ybd-diag-edit:hover { text-decoration: underline; }

/* Contacto */
.ybd-diag-contact .ybd-diseno-input { width: 100%; }
.ybd-diag-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: #cbd5e1; margin-bottom: 12px; cursor: pointer; line-height: 1.5; }
.ybd-diag-consent a { color: #67E8F9; text-decoration: underline; }

/* Resultado */
.ybd-diag-result { text-align: left; }
.ybd-diag-result .ybd-diseno-success-icon { margin: 0 auto 16px; }
.ybd-diag-result .ybd-diag-q-title,
.ybd-diag-result .ybd-diag-q-help { text-align: center; }
.ybd-diag-result-card {
    background: rgba(103, 232, 249, 0.06);
    border: 1px solid rgba(103, 232, 249, 0.25);
    border-radius: 18px; padding: 20px; margin: 20px 0;
}
.ybd-diag-result-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #67E8F9; font-weight: 700; margin-bottom: 6px; }
.ybd-diag-result-card h4 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.ybd-diag-result-card ul, .ybd-diag-result-why ul { display: flex; flex-direction: column; gap: 8px; }
.ybd-diag-result-card li, .ybd-diag-result-why li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: #e2e8f0; }
.ybd-diag-result-why { margin-bottom: 16px; }
.ybd-diag-result-modules, .ybd-diag-result-note { font-size: 0.9rem; color: #cbd5e1; margin-bottom: 12px; }
.ybd-diag-result-price { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.ybd-diag-result-ref { font-size: 0.85rem; color: #94a3b8; margin-bottom: 18px; }
.ybd-diag-result-ref strong { color: #67E8F9; letter-spacing: 0.05em; }
.ybd-diag-result-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Confirmación de salida */
.ybd-diag-confirm { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; background: rgba(4,7,18,0.7); padding: 20px; }
.ybd-diag-confirm.is-open { display: flex; }
.ybd-diag-confirm-panel { width: 100%; max-width: 420px; background: #121B2F; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }

body.ybd-diag-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .ybd-situation, #ybd-diag-progress-bar { transition: none; }
    .ybd-situation:hover { transform: none; }
}

/* FAQ propio (permite varias abiertas + aria-expanded) --------------------- */
.ybd-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}
.ybd-faq-item.open .ybd-faq-answer { max-height: 600px; opacity: 1; }
.ybd-faq-icon { transition: transform 0.3s ease; }
.ybd-faq-item.open .ybd-faq-icon { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
    .ybd-faq-answer, .ybd-faq-icon { transition: none; }
}

.ybd-diag-restart {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 14px; font-size: 0.82rem; color: #94a3b8;
}
.ybd-diag-restart:hover { color: #67E8F9; text-decoration: underline; }

/* ============================================================================
   Animaciones de entrada (landing)
   ============================================================================ */
@keyframes ybdEnter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ybd-enter {
    opacity: 0;
    animation: ybdEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--d, 0ms);
    will-change: opacity, transform;
}

/* Refina el reveal global solo dentro de la landing (más sobrio). */
.ybd-diseno .reveal {
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ritmo vertical del hero */
.ybd-diseno .ybd-hero-title { margin-bottom: 1.1rem; }
.ybd-diseno .ybd-hero-desc  { margin-bottom: 0.35rem; }
.ybd-diseno .ybd-hero-support { color: #cbd5e1; }
.ybd-diseno .ybd-trust-list { margin-top: 1.75rem; }

@media (max-width: 1023px) {
    .ybd-diseno .ybd-devices { margin-top: 1.5rem; max-width: 440px; }
}

@media (prefers-reduced-motion: reduce) {
    .ybd-enter { opacity: 1; animation: none; }
    .ybd-diseno .reveal { transform: none; transition: none; }
}

/* Reseñas: el componente vive en assets/css/reviews-marquee.css (global). */



/* Video del hero (reemplaza la composición de dispositivos) ---------------- */
.ybd-hero-video {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.ybd-hero-video.is-horizontal { aspect-ratio: 16 / 9; }
.ybd-hero-video.is-vertical { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.ybd-hero-video.is-natural { max-width: 400px; margin: 0 auto; }
.ybd-hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ybd-hero-video.is-natural iframe { position: static; width: 100% !important; height: auto; }
.ybd-hero-video video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
