/**
 * whieda.css — CSS adicional (complementa style.css)
 * Animaciones, utilidades extra y override fino de Divi
 */

/* ======================================================
   ANIMACIONES DE ENTRADA (activadas por JS con IntersectionObserver)
====================================================== */
.whieda-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.whieda-animate.whieda-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay escalonado para cuadros en fila */
.et_pb_column:nth-child(1) .whieda-animate { transition-delay: 0.05s; }
.et_pb_column:nth-child(2) .whieda-animate { transition-delay: 0.15s; }
.et_pb_column:nth-child(3) .whieda-animate { transition-delay: 0.25s; }
.et_pb_column:nth-child(4) .whieda-animate { transition-delay: 0.35s; }

/* ======================================================
   HEADER SCROLLED
====================================================== */
#main-header.whieda-scrolled {
    box-shadow: 0 4px 30px rgba(13, 27, 42, 0.15) !important;
}

/* ======================================================
   OVERRIDE DIVI — Igualar altura de columnas en fila
====================================================== */
.et_pb_row .et_pb_column > .et_pb_module {
    height: 100%;
}

/* Blurbs de igual altura dentro de una fila */
.et_pb_row .et_pb_column .et_pb_blurb {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.et_pb_blurb .et_pb_blurb_content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.et_pb_blurb .et_pb_module_inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ======================================================
   OVERRIDE: Quitar espacio extra que agrega Divi
====================================================== */
.et_pb_section.et_section_regular {
    position: relative;
}

/* Divi añade padding lateral extra en mobile — lo normalizamos */
@media (max-width: 767px) {
    .et_pb_row {
        width: 94% !important;
    }
}

/* ======================================================
   TIPOGRAFÍA — Mejoras adicionales
====================================================== */
.et_pb_text_inner strong {
    color: var(--whieda-dark);
    font-weight: 700;
}

.et_pb_blurb .et_pb_blurb_description p:last-child {
    margin-bottom: 0;
}

/* ======================================================
   MÓDULO ET_PB_PROMO (CTA) — Ajustes cuadrado Whieda
====================================================== */
.et_pb_promo.et_pb_bg_layout_dark .et_pb_promo_button {
    margin-top: 24px !important;
}

/* ======================================================
   PRICING TABLE — Cabecera de nivel
====================================================== */
.et_pb_pricing_table .et_pb_pricing_heading {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
}

.et_pb_pricing_table .et_pb_sum {
    font-size: 42px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 10px 0 !important;
}

/* ======================================================
   LANGUAGE SWITCHER — Estilos compactos inline
====================================================== */
.whieda-lang-switcher {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.whieda-lang-switcher li a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--whieda-primary) !important;
    border: 1px solid var(--whieda-primary);
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.whieda-lang-switcher li a:hover,
.whieda-lang-switcher li.active a {
    background: var(--whieda-primary) !important;
    color: #fff !important;
}

/* ======================================================
   FOOTER — Tres columnas estilo Whieda
====================================================== */
.whieda-footer-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: rgba(255,255,255,0.40) !important;
    margin-bottom: 16px !important;
}

/* ======================================================
   UTILIDADES
====================================================== */
.whieda-text-center { text-align: center !important; }
.whieda-text-left   { text-align: left !important; }
.whieda-mt-0        { margin-top: 0 !important; }
.whieda-mb-0        { margin-bottom: 0 !important; }
.whieda-w-full      { width: 100% !important; }

/* Borde acento izquierdo */
.whieda-border-left-primary  { border-left: 3px solid var(--whieda-primary) !important; padding-left: 16px !important; }
.whieda-border-left-secondary{ border-left: 3px solid var(--whieda-secondary) !important; padding-left: 16px !important; }
.whieda-border-left-accent   { border-left: 3px solid var(--whieda-accent) !important; padding-left: 16px !important; }

/* Texto acento */
.whieda-text-primary   { color: var(--whieda-primary) !important; }
.whieda-text-secondary { color: var(--whieda-secondary) !important; }
.whieda-text-accent    { color: var(--whieda-accent) !important; }
.whieda-text-muted     { color: var(--whieda-neutral) !important; }
.whieda-text-white     { color: #FFFFFF !important; }

/* Fondos de acento */
.whieda-bg-primary   { background-color: var(--whieda-primary) !important; }
.whieda-bg-secondary { background-color: var(--whieda-secondary) !important; }
.whieda-bg-accent    { background-color: var(--whieda-accent) !important; }
.whieda-bg-dark      { background-color: var(--whieda-dark) !important; }
.whieda-bg-light     { background-color: var(--whieda-light) !important; }
