/**
 * Elements Module - Frontend Styles
 * Estilos para Heroes, FAQs, CTAs y otros elementos
 */

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.element-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    padding: 1rem 0 1.5rem; /* Reducido: era 2.25rem 0 4rem */
    overflow: hidden;
    background: transparent;
    color: #0f172a;
}

/* Hero con imagen a la derecha */
.element-hero.layout-image-right {
    background: transparent;
    color: inherit;
}

.element-hero.layout-image-right .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.element-hero.layout-image-right .hero-content,
.element-hero.layout-image-left .hero-content {
    margin-top: -3.5rem;
}

/* Hero con imagen a la izquierda */
.element-hero.layout-image-left {
    background: transparent;
    color: inherit;
}

.element-hero.layout-image-left .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.element-hero.layout-image-left .hero-content {
    order: 2;
}

.element-hero.layout-image-left .hero-image {
    order: 1;
}

/* Hero centrado */
.element-hero.layout-centered {
    text-align: center;
    background: transparent;
    color: inherit;
}

.element-hero.layout-centered .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.element-hero .hero-centered {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.element-hero .hero-centered .hero-subheading,
.element-hero .hero-centered .subheading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.element-hero .hero-centered .hero-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.element-hero .hero-centered .hero-description {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
}

.element-hero .hero-centered .hero-buttons {
    justify-content: center;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.element-hero .hero-image-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.element-hero .hero-image-centered .hero-visual {
    max-width: 48rem;
    margin: 2.5rem auto 0;
}

.element-hero .hero-image-centered .hero-image-caption {
    text-align: center;
    width: 100%;
}

/* Tipografía (estética HispanoLLC) */
.element-hero:not(.layout-background) .hero-title {
    display: block !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #0f172a;
    margin: 0.25rem 0 1.25rem 0 !important;
    font-size: clamp(2.75rem, 4.2vw, 4.25rem);
}

.element-hero:not(.layout-background) .subheading,
.element-hero:not(.layout-background) .hero-subheading {
    display: block;
    max-width: 520px;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0 !important;
    color: #64748b;
}

.element-hero:not(.layout-background) .hero-description {
    display: block;
    max-width: 520px;
    font-size: 1.25rem;
    line-height: 1.7;
    margin: 0 0 1.75rem 0;
    color: #475569;
}

.element-hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.element-hero.layout-background .hero-buttons,
.element-hero.layout-video .hero-buttons {
    justify-content: center;
}

/* Hero con fondo de imagen - NUEVO DISEÑO */
.element-hero.layout-background {
    background: transparent;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    color: #0f172a;
    position: relative;
    padding: 0;
    overflow: visible;
    /* Por defecto: ancho del contenedor */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* ============================================
   ANCHO COMPLETO - Full Width Hero
   Solo el banner-wrapper rompe fuera del contenedor
   El section mantiene su posición normal
   ============================================ */

.element-hero.layout-background.full-width {
    /* El section NO rompe el contenedor, solo el banner interno */
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
}

/* El container interno permite que los hijos rompan */
.element-hero.layout-background.full-width > .container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
}

/* SOLO el banner-wrapper rompe fuera de TODOS los contenedores */
.element-hero.layout-background.full-width .hero-banner-wrapper {
    width: 100vw !important;
    max-width: none !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Mantener pre-banner y post-banner centrados en full-width */
.element-hero.layout-background.full-width .hero-pre-banner,
.element-hero.layout-background.full-width .hero-post-banner,
.element-hero.layout-video.full-width .hero-pre-banner,
.element-hero.layout-video.full-width .hero-post-banner {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Subtítulo FUERA del banner (arriba) - pegado al banner */
.element-hero.layout-background .hero-pre-banner,
.element-hero.layout-video .hero-pre-banner {
    padding: 0 2rem 0.5rem;
    text-align: center;
    background: transparent;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    margin-top: -0.5rem; /* Reducir espacio con el header */
}

/* Video: subtítulo centrado y sin espacio extra con el header */
.element-hero.layout-video .hero-pre-banner {
    margin-top: -1.6rem;
    padding: 0 2rem 0;
    display: flex;
    justify-content: center;
}

.element-hero.layout-background .hero-pre-banner .hero-subheading {
    color: #dc2626 !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0;
}

.element-hero.layout-video .hero-pre-banner .hero-subheading {
    margin: 0 auto;
    display: inline-block;
}

/* Banner wrapper con imagen/video de fondo */
.element-hero.layout-background .hero-banner-wrapper {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0f172a;
    overflow: hidden;
    isolation: isolate;
}

/* Overlay oscuro sobre el banner */
.element-hero.layout-background .hero-banner-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.4));
    z-index: 1;
}

/* Contenido DENTRO del banner */
.element-hero.layout-background .hero-banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.element-hero.layout-background .hero-banner-content .hero-title {
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0.85rem;
    position: relative;
}

/* Línea decorativa después del título */
.element-hero.layout-background .hero-banner-content .hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.element-hero.layout-background .hero-banner-content .hero-description {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0.4rem auto 1.6rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    -webkit-font-smoothing: antialiased;
}

.element-hero.layout-background .hero-banner-content .hero-buttons {
    justify-content: center;
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

/* Botón primario: fondo oscuro/azul, texto blanco */
.element-hero.layout-background .hero-banner-content .hero-btn {
    background: #1e3a5f;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    font-weight: 600;
}

.element-hero.layout-background .hero-banner-content .hero-btn:hover {
    background: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
}

/* Botón secundario: fondo blanco, texto negro */
.element-hero.layout-background .hero-banner-content .hero-btn.hero-btn-secondary {
    background: #ffffff;
    color: #0f172a !important;
    border: 2px solid #ffffff;
    backdrop-filter: blur(10px);
}

.element-hero.layout-background .hero-banner-content .hero-btn.hero-btn-secondary:hover {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #0f172a !important;
}

/* Caption/Texto alternativo FUERA del banner (abajo) */
.element-hero.layout-background .hero-post-banner,
.element-hero.layout-video .hero-post-banner {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    background: transparent;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Video: texto fuera del banner sin bloque gris ni padding extra */
.element-hero.layout-video .hero-post-banner {
    padding: 0 2rem 0;
    margin-bottom: -3.6rem;
}

.element-hero.layout-background .hero-post-banner .hero-image-caption {
    color: #64748b !important;
    font-size: 0.95rem;
    margin: 0;
}

/* Overlay solo para layout-video (layout-background usa banner-wrapper::before) */
.element-hero.layout-video::before {
    content: none;
}

.element-hero.layout-background .container,
.element-hero.layout-video .container {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.element-hero.layout-background .hero-title,
.element-hero.layout-video .hero-title {
    color: #f8fafc !important;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
}

.element-hero.layout-background .hero-subheading,
.element-hero.layout-video .hero-subheading {
    color: rgba(248, 250, 252, 0.9) !important;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    margin-bottom: 0.18rem;
    text-align: center;
    display: block;
}

.element-hero.layout-video .hero-subheading {
    margin: 0 auto 0.08rem;
}

.element-hero.layout-background .hero-description,
.element-hero.layout-video .hero-description {
    color: rgba(248, 250, 252, 0.95) !important;
    font-size: 1.1rem;
    max-width: 40rem;
    margin: 1.25rem auto 2rem;
    text-shadow: 0 10px 22px rgba(15, 23, 42, 0.3);
}

/* Ajuste fino solo para el banner (más cerca de la línea del título) */
.element-hero.layout-background .hero-banner-content .hero-description {
    margin-top: 0.2rem !important;
    margin-bottom: 2.1rem !important;
}

.element-hero.layout-video {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    color: #fff;
    position: relative;
    background: transparent;
    overflow: visible;
    /* Por defecto: ancho del contenedor */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Ancho completo para layout-video */
/* Rompe fuera de cualquier contenedor padre (incluyendo contenedores del tema) */
.element-hero.layout-video.full-width {
    width: 100vw !important;
    max-width: none !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
}

.element-hero.layout-video .container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    padding: 0;
    max-width: 100%;
    width: 100%;
}

.hero-media {
    width: 100%;
}

.hero-media-content {
    position: relative;
    z-index: 3;
    text-align: center;
    margin: 0 auto;
    padding: 2rem;
    max-width: 900px;
}

.element-hero.layout-background .hero-image-caption,
.element-hero.layout-video .hero-image-caption {
    color: rgba(248, 250, 252, 0.85) !important;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

/* Caption fuera del banner en layout-video */
.element-hero.layout-video .hero-post-banner .hero-image-caption {
    color: #0f172a !important;
}

/* Video wrapper - ver estilos más abajo con overflow oculto */

/* Overlay oscuro sobre el video */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.4));
    z-index: 1;
}

.hero-media-video {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner de video con altura controlada */
.hero-video-banner {
    position: relative;
    width: 100%;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    overflow: hidden;
}

/* Video embed dentro de layout-background - dentro del banner-wrapper */
.element-hero.layout-background .hero-banner-wrapper .hero-media-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.element-hero.layout-background .hero-banner-wrapper .hero-media-video .hero-video-embed {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Escalar para cubrir todo y ocultar UI de YouTube */
    width: 120%;
    height: 120%;
    min-width: 177.78vh; /* aspect ratio 16:9 */
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
    z-index: 0;
}

.element-hero.layout-background .hero-banner-wrapper .hero-media-video .hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* El container en layout-background */
.element-hero.layout-background .container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-video-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 0;
}

/* YouTube/Vimeo iframe como fondo - escalar para cubrir todo y ocultar UI */
.hero-video-bg-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Escalar 120% para ocultar bordes y elementos de UI de YouTube */
    width: 120vw;
    height: 120vh;
    min-width: 213vh; /* 177.78 * 1.2 - aspect ratio 16:9 escalado */
    min-height: 67.5vw; /* 56.25 * 1.2 */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
    z-index: 0;
}

/* Ocultar cualquier elemento de YouTube que pueda aparecer */
.hero-video-wrapper {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    overflow: hidden;
    z-index: 0;
    background: #0f172a;
}

/* Placeholder mientras carga el video - gradiente animado */
.hero-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: videoPlaceholderPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes videoPlaceholderPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Cuando el iframe tiene src, ocultar placeholder */
.hero-video-wrapper iframe[src] ~ .hero-video-placeholder,
.hero-video-wrapper iframe:not([data-src]) ~ .hero-video-placeholder {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Estilos de texto para layout video - siempre claros */
.element-hero.layout-video .hero-subheading,
.element-hero.layout-video .subheading {
    color: rgba(248, 250, 252, 0.9) !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    font-size: 1rem;
}

.element-hero.layout-video .hero-title {
    color: #f8fafc !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.element-hero.layout-video .hero-description {
    color: rgba(248, 250, 252, 0.95) !important;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.element-hero.layout-video .hero-buttons {
    justify-content: center;
}

.element-hero.layout-video .hero-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a !important;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.element-hero.layout-video .hero-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.element-hero.layout-video .hero-btn.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.element-hero.layout-video .hero-btn.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Botón Hero */
.hero-btn {
    display: inline-block;
    padding: 0.95rem 1.75rem;
    background: #0f172a;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.9);
}

.element-hero a.hero-btn,
.element-hero a.hero-btn:visited,
.element-hero a.hero-btn:hover,
.element-hero a.hero-btn:active,
.element-hero a.hero-btn:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    text-decoration: none;
    color: #fff;
    background: #111827;
}

.hero-btn.hero-btn-secondary {
    background: #fff;
    color: #0f172a !important;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: none;
    text-decoration: none !important;
}

.hero-btn.hero-btn-secondary:hover {
    background: #fff;
    color: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.9);
}

.element-hero a.hero-btn.hero-btn-secondary,
.element-hero a.hero-btn.hero-btn-secondary:visited,
.element-hero a.hero-btn.hero-btn-secondary:hover,
.element-hero a.hero-btn.hero-btn-secondary:active,
.element-hero a.hero-btn.hero-btn-secondary:focus {
    color: #0f172a !important;
    text-decoration: none !important;
}

.element-hero .hero-buttons .btn.btn-primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff !important;
    border-radius: 999px;
    padding: 0.95rem 1.75rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.element-hero .hero-buttons .btn.btn-primary:hover {
    background: #111827;
    border-color: #111827;
    color: #fff !important;
}

.element-hero .hero-buttons .btn.btn-outline-secondary,
.element-hero .hero-buttons .btn.btn-light {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.6);
    color: #0f172a !important;
    border-radius: 999px;
    padding: 0.95rem 1.75rem;
}

.element-hero .hero-buttons .btn.btn-outline-secondary:hover,
.element-hero .hero-buttons .btn.btn-light:hover {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.9);
    color: #0f172a !important;
}

/* Visual derecha (tarjeta) */
.element-hero .hero-image {
    position: relative;
}

.element-hero .hero-visual {
    position: relative;
    min-height: 420px;
    padding: 1.25rem;
}

.element-hero .hero-visual-bg {
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.element-hero .hero-visual-card {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
    padding: 3rem;
    margin: 0;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.element-hero .hero-visual-card.hero-visual-card-media {
    padding: 1.5rem;
    min-height: 420px;
    aspect-ratio: unset;
    width: 100%;
    overflow: hidden;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.element-hero .hero-visual-card.hero-visual-card-media .hero-visual-video {
    position: relative;
    inset: unset;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background: #0f172a;
}

.element-hero .hero-visual-card.hero-visual-card-media .hero-visual-embed,
.element-hero .hero-visual-card.hero-visual-card-media .hero-visual-video-file {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 1rem;
}

.element-hero .hero-visual-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    max-height: 520px;
}

.element-hero .hero-visual-video,
.element-hero .hero-visual-embed,
.element-hero .hero-visual-video-file {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.element-hero .hero-visual-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
}

.element-hero .hero-visual-embed,
.element-hero .hero-visual-video-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.element-hero .hero-visual-video-file {
    object-fit: cover;
}

.element-hero .hero-image-caption {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: #0f172a;
    text-align: center;
    display: block;
}

.element-hero .hero-visual-placeholder {
    text-align: center;
}

.element-hero .hero-visual-letter {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(148, 163, 184, 0.55);
    margin-bottom: 1rem;
}

.element-hero .hero-visual-text {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}

/* Responsive Hero */
@media (max-width: 768px) {
    /* Break out of parent container */
    .element-hero {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: 0;
        padding-right: 0;
    }

    .element-hero.layout-image-right .container,
    .element-hero.layout-image-left .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.25rem;
    }

    .element-hero.layout-image-right .hero-content,
    .element-hero.layout-image-left .hero-content {
        margin-top: 0;
    }

    .element-hero.layout-image-left .hero-content,
    .element-hero.layout-image-left .hero-image {
        order: initial;
    }

    .element-hero .hero-title {
        font-size: 2.25rem !important;
        margin-bottom: 1rem !important;
    }

    .element-hero .subheading,
    .element-hero .hero-subheading {
        font-size: 1.05rem !important;
        margin-bottom: 0.75rem !important;
    }

    .element-hero .hero-description {
        font-size: 1.125rem !important;
    }

    .element-hero .hero-visual,
    .element-hero .hero-visual-card {
        min-height: 320px;
    }

    .element-hero .hero-visual {
        overflow: hidden;
    }

    .element-hero .hero-image {
        order: 2;
    }

    .element-hero .hero-content {
        order: 1;
    }
}

/* ==========================================================================
   FAQ SECTIONS
   ========================================================================== */

.element-faq {
    padding: 4rem 0;
    background: #f8f9fa;
}

.element-faq .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.element-faq h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

/* FAQ Accordion Layout */
.faq-accordion .faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-accordion .faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    color: #333;
    position: relative;
    user-select: none;
    transition: background 0.2s;
}

.faq-accordion .faq-question:hover {
    background: #f8f9fa;
}

.faq-accordion .faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-accordion .faq-item.active .faq-question::after {
    content: '−';
}

.faq-accordion .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-accordion .faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-accordion .faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #666;
    line-height: 1.6;
}

/* FAQ Simple Layout */
.faq-simple .faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.faq-simple .faq-item:last-child {
    border-bottom: none;
}

.faq-simple .faq-question {
    font-weight: 600;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.faq-simple .faq-answer {
    color: #666;
    line-height: 1.6;
}

/* FAQ Two Columns */
.faq-two-columns .faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .faq-two-columns .faq-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CTA SECTIONS
   ========================================================================== */

.element-cta {
    padding: 4rem 0;
}

.element-cta .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* CTA Horizontal */
.element-cta.layout-horizontal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.element-cta.layout-horizontal .cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.element-cta.layout-horizontal h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.element-cta.layout-horizontal p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
}

/* CTA Centered */
.element-cta.layout-centered {
    background: #f8f9fa;
    text-align: center;
}

.element-cta.layout-centered h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.element-cta.layout-centered p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Box */
.element-cta.layout-box {
    background: transparent;
}

.element-cta.layout-box .cta-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.element-cta.layout-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.element-cta.layout-box p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* CTA Button */
.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #667eea;
}

.element-cta.layout-centered .cta-btn {
    background: #667eea;
    color: #fff;
}

.element-cta.layout-centered .cta-btn:hover {
    background: #5568d3;
    color: #fff;
}

/* Responsive CTA */
@media (max-width: 768px) {
    .element-cta.layout-horizontal .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .element-cta h2 {
        font-size: 1.75rem !important;
    }

    .element-cta.layout-box .cta-box {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   HIGHLIGHT SECTIONS
   ========================================================================== */

.element-highlight {
    position: relative;
    background: transparent !important; /* NEVER on section, only on highlight-body */
}

/* Usa 1320px para alinearse con el Hero que también usa 1320px */
.element-highlight .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Eyebrow fuera del body */
.element-highlight .highlight-header {
    padding: 0.75rem 0 1rem;
    background: transparent;
}

/* Alineacion del eyebrow - sigue text-align del contenido */
.element-highlight.align-left .highlight-header {
    text-align: left;
}

.element-highlight.align-center .highlight-header {
    text-align: center;
}

.element-highlight.align-right .highlight-header {
    text-align: right;
}

/* Body - El contenido principal con fondo */
.element-highlight .highlight-body {
    padding: 30px 0 1rem;
    background: transparent; /* default transparent */
}

/* Footer - espacio mínimo después del body */
.element-highlight .highlight-footer {
    padding: 0;
}

.element-highlight .highlight-content {
    display: flex;
    flex-direction: column;
}

/* Wrapper for icon + content layout */
.element-highlight .highlight-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

/* Without icon - just content */
.element-highlight:not(.has-icon) .highlight-wrapper {
    display: block;
}

/* Decorative Icon */
.element-highlight .highlight-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    opacity: 0.85;
}

.element-highlight .highlight-icon svg {
    width: 100%;
    height: 100%;
}

/* Icon position based on layout */
/* Left layout: icon on left (default) */
.element-highlight.layout-left.has-icon .highlight-wrapper {
    flex-direction: row;
}

/* Right layout: icon on right */
.element-highlight.layout-right.has-icon .highlight-wrapper {
    flex-direction: row-reverse;
}

/* Centered layout: icon above or on the side based on width */
.element-highlight.layout-centered.has-icon .highlight-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.element-highlight.layout-centered.has-icon .highlight-icon {
    flex-shrink: 0;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
}

.element-highlight.layout-centered.has-icon .highlight-content {
    position: relative;
}

/* Full width adjustments for icon - usar posición relativa, no absoluta */
.element-highlight.full-width.layout-centered.has-icon .highlight-icon {
    position: relative;
    left: auto;
    transform: none;
}

.element-highlight.full-width.width-narrow.layout-centered.has-icon .highlight-icon,
.element-highlight.full-width.width-medium.layout-centered.has-icon .highlight-icon,
.element-highlight.full-width.width-wide.layout-centered.has-icon .highlight-icon {
    position: relative;
    left: auto;
    transform: none;
}

/* Responsive icon */
@media (max-width: 992px) {
    .element-highlight .highlight-icon {
        width: 60px;
        height: 60px;
    }

    .element-highlight.layout-centered.has-icon .highlight-icon {
        position: static;
        transform: none;
        margin-bottom: 1rem;
    }

    .element-highlight.layout-centered.has-icon .highlight-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .element-highlight.full-width.layout-centered.has-icon .highlight-icon {
        position: static;
        left: auto;
        transform: none;
    }

    .element-highlight.full-width.layout-centered .highlight-wrapper {
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .element-highlight .highlight-wrapper {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 1rem;
    }

    .element-highlight.layout-centered.has-icon .highlight-wrapper {
        align-items: center;
    }

    .element-highlight .highlight-icon {
        width: 50px;
        height: 50px;
    }
}

/* Background Styles - aplicados al body */

/* Transparent (default) - sin fondo */
.element-highlight.bg-transparent .highlight-body,
.element-highlight:not([class*="bg-"]) .highlight-body {
    background: transparent;
}

.element-highlight.bg-light .highlight-body {
    background: #f8fafc;
    color: #0f172a;
}

.element-highlight.bg-white .highlight-body {
    background: #ffffff;
    color: #0f172a;
}

.element-highlight.bg-dark .highlight-body {
    background: #0f172a;
    color: #f8fafc;
}

.element-highlight.bg-gradient .highlight-body {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 25%, #fbbf24 50%, #f59e0b 75%, #d97706 100%);
    color: #78350f;
}

.element-highlight.bg-soft-blue .highlight-body {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0c4a6e;
}

.element-highlight.bg-soft-green .highlight-body {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #14532d;
}

.element-highlight.bg-soft-amber .highlight-body {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
}

/* Content Width Options */
.element-highlight.width-narrow .highlight-content {
    max-width: 600px;
}

.element-highlight.width-medium .highlight-content {
    max-width: 800px;
}

.element-highlight.width-wide .highlight-content {
    max-width: 1000px;
}

.element-highlight.width-full .highlight-content {
    max-width: 100%;
}

/* Alignment */
.element-highlight.align-center .highlight-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
}

.element-highlight.align-left .highlight-content {
    margin-right: auto;
    text-align: left;
    align-items: flex-start;
}

.element-highlight.align-right .highlight-content {
    margin-left: auto;
    text-align: right;
    align-items: flex-end;
}

/* Eyebrow/Label - fuera del body */
.element-highlight .highlight-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6366f1;
    margin: 0;
}

/* Title */
.element-highlight .highlight-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.75rem 0;
    color: inherit;
}

.element-highlight.bg-dark .highlight-body .highlight-title,
.element-highlight.bg-gradient .highlight-body .highlight-title {
    color: #ffffff;
}

/* Main Text */
.element-highlight .highlight-main-text {
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 0 0 0.75rem 0;
    color: #475569;
}

.element-highlight.bg-dark .highlight-body .highlight-main-text {
    color: rgba(248, 250, 252, 0.9);
}

.element-highlight.bg-gradient .highlight-body .highlight-main-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Secondary Text */
.element-highlight .highlight-secondary-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    color: #64748b;
}

.element-highlight.bg-dark .highlight-body .highlight-secondary-text,
.element-highlight.bg-gradient .highlight-body .highlight-secondary-text {
    color: rgba(255, 255, 255, 0.75);
}

/* Soft CTA */
.element-highlight .highlight-cta {
    margin-top: 0.75rem;
}

/* CTA as Link (default) */
.element-highlight .highlight-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none !important;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
}

.element-highlight .highlight-cta-link:hover {
    color: #4f46e5;
}

/* Remove default link decoration from themes */
.element-highlight .highlight-cta-link,
.element-highlight .highlight-cta-link:visited,
.element-highlight .highlight-cta-link:hover,
.element-highlight .highlight-cta-link:active,
.element-highlight .highlight-cta-link:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.element-highlight .highlight-cta-link .highlight-cta-arrow {
    transition: transform 0.2s ease;
}

.element-highlight .highlight-cta-link:hover .highlight-cta-arrow {
    transform: translateX(4px);
}

/* CTA as Button */
.element-highlight .highlight-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff !important;
    background: #6366f1;
    text-decoration: none !important;
    transition: all 0.25s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.element-highlight .highlight-cta-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* Button rounded variant */
.element-highlight .highlight-cta-btn.btn-rounded {
    border-radius: 50px;
}

/* Button outline variant */
.element-highlight .highlight-cta-btn.btn-outline {
    background: transparent !important;
    color: #6366f1 !important;
    border: 1px solid #6366f1 !important;
    border-bottom: 1px solid #6366f1 !important;
    box-shadow: none;
}

.element-highlight .highlight-cta-btn.btn-outline:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
}

/* Remove default decoration from button - but preserve border for outline */
.element-highlight .highlight-cta-btn,
.element-highlight .highlight-cta-btn:visited,
.element-highlight .highlight-cta-btn:hover,
.element-highlight .highlight-cta-btn:active,
.element-highlight .highlight-cta-btn:focus {
    text-decoration: none !important;
    outline: none !important;
}

/* Links may have theme border-bottom, remove it */
.element-highlight .highlight-cta-link,
.element-highlight .highlight-cta-link:visited,
.element-highlight .highlight-cta-link:hover,
.element-highlight .highlight-cta-link:active,
.element-highlight .highlight-cta-link:focus {
    border-bottom: none !important;
}

.element-highlight .highlight-cta-btn .highlight-cta-arrow {
    transition: transform 0.2s ease;
}

.element-highlight .highlight-cta-btn:hover .highlight-cta-arrow {
    transform: translateX(4px);
}

/* Dark/Gradient backgrounds - Link */
.element-highlight.bg-dark .highlight-body .highlight-cta-link,
.element-highlight.bg-gradient .highlight-body .highlight-cta-link {
    color: rgba(255, 255, 255, 0.95);
}

.element-highlight.bg-dark .highlight-body .highlight-cta-link:hover,
.element-highlight.bg-gradient .highlight-body .highlight-cta-link:hover {
    color: #ffffff;
}

/* Dark/Gradient backgrounds - Button */
.element-highlight.bg-dark .highlight-body .highlight-cta-btn,
.element-highlight.bg-gradient .highlight-body .highlight-cta-btn {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.element-highlight.bg-dark .highlight-body .highlight-cta-btn:hover,
.element-highlight.bg-gradient .highlight-body .highlight-cta-btn:hover {
    background: #f8fafc;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.element-highlight.bg-dark .highlight-body .highlight-cta-btn.btn-outline,
.element-highlight.bg-gradient .highlight-body .highlight-cta-btn.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.element-highlight.bg-dark .highlight-body .highlight-cta-btn.btn-outline:hover,
.element-highlight.bg-gradient .highlight-body .highlight-cta-btn.btn-outline:hover {
    background: #ffffff;
    color: #0f172a;
}

/* Layout: Centered - applies when layout type is centered */
.element-highlight.layout-centered .highlight-content {
    text-align: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.element-highlight.layout-centered .highlight-wrapper {
    justify-content: center;
}

.element-highlight.layout-centered .highlight-header {
    text-align: center;
}

.element-highlight.layout-centered .highlight-cta {
    display: flex;
    justify-content: center;
}

/* Layout: Left aligned */
.element-highlight.layout-left .highlight-content {
    text-align: left;
    align-items: flex-start;
}

.element-highlight.layout-left .highlight-cta {
    display: flex;
    justify-content: flex-start;
}

/* Layout: Right aligned */
.element-highlight.layout-right .highlight-content {
    text-align: right;
    align-items: flex-end;
    margin-left: auto;
}

.element-highlight.layout-right .highlight-cta {
    display: flex;
    justify-content: flex-end;
}

/* Full width highlight - banner ocupa todo el ancho de la pantalla */
/* Técnica que funciona independiente de contenedores padres con padding */
.element-highlight.full-width .highlight-body {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    /* Usar calc para compensar la posición del contenedor padre */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

/* Full width: el header debe alinearse con el contenido del body */
/* Usa 1320px para alinearse con el Hero que también usa 1320px */
.element-highlight.full-width .highlight-header .container {
    max-width: 1320px;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Cuando está centrado, calcular el padding para alinear con el contenido del body */
.element-highlight.full-width.width-narrow .highlight-header .container {
    max-width: 600px;
}

.element-highlight.full-width.width-medium .highlight-header .container {
    max-width: 800px;
}

.element-highlight.full-width.width-wide .highlight-header .container {
    max-width: 1000px;
}

.element-highlight.full-width.width-full .highlight-header .container {
    max-width: 100%;
}

/* Full width: el container del body debe mantener el mismo max-width para alinear el contenido */
/* Usa 1320px para alinearse con el Hero que también usa 1320px */
.element-highlight.full-width .highlight-body .container {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    width: 100% !important;
}

/* Full width + centered: asegurar que el wrapper y contenido estén centrados */
.element-highlight.full-width.layout-centered .highlight-body .container {
    display: flex;
    justify-content: center;
}

.element-highlight.full-width.layout-centered .highlight-wrapper {
    width: 100%;
    justify-content: center;
}

.element-highlight.full-width.layout-centered .highlight-content {
    width: 100%;
}

/* Full width + layout-left: asegurar alineación correcta */
.element-highlight.full-width.layout-left .highlight-body .container {
    display: block;
    max-width: 1320px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

.element-highlight.full-width.layout-left .highlight-wrapper {
    width: 100%;
}

.element-highlight.full-width.layout-left .highlight-content {
    max-width: 100%;
}

/* Full width + layout-left + width-full: forzar centrado del contenedor */
.element-highlight.full-width.layout-left.width-full .highlight-body .container {
    max-width: 1320px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Full width + layout-right: asegurar alineación correcta */
.element-highlight.full-width.layout-right .highlight-body .container {
    display: flex;
    justify-content: flex-end;
}

.element-highlight.full-width.layout-right .highlight-wrapper {
    width: 100%;
    justify-content: flex-end;
}

.element-highlight.full-width.width-narrow .highlight-body .container {
    max-width: 600px !important;
}

.element-highlight.full-width.width-medium .highlight-body .container {
    max-width: 800px !important;
}

.element-highlight.full-width.width-wide .highlight-body .container {
    max-width: 1000px !important;
}

.element-highlight.full-width.width-full .highlight-body .container {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Background image with overlay */
.element-highlight.has-bg-image .highlight-body {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.element-highlight .highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.element-highlight.has-bg-image .highlight-content {
    position: relative;
    z-index: 2;
}

.element-highlight.has-bg-image .highlight-body .container {
    position: relative;
    z-index: 2;
}

/* Text colors for background image (light text on dark overlay) */
.element-highlight.has-bg-image .highlight-title {
    color: #ffffff;
}

.element-highlight.has-bg-image .highlight-main-text {
    color: rgba(255, 255, 255, 0.95);
}

.element-highlight.has-bg-image .highlight-secondary-text {
    color: rgba(255, 255, 255, 0.8);
}

.element-highlight.has-bg-image .highlight-cta-link {
    color: rgba(255, 255, 255, 0.95);
}

.element-highlight.has-bg-image .highlight-cta-link:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .element-highlight .highlight-body {
        padding: 1.5rem 0;
    }

    .element-highlight .container {
        padding: 0 1.25rem;
    }

    .element-highlight .highlight-title {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .element-highlight .highlight-main-text {
        font-size: 1rem;
    }

    .element-highlight .highlight-secondary-text {
        font-size: 0.9rem;
    }

    .element-highlight.width-narrow .highlight-content,
    .element-highlight.width-medium .highlight-content,
    .element-highlight.width-wide .highlight-content {
        max-width: 100%;
    }
}

/* Animation */
.element-highlight {
    animation: fadeInUp 0.6s ease-out;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.element-container {
    margin: 2rem 0;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.element-hero,
.element-faq,
.element-cta {
    animation: fadeInUp 0.6s ease-out;
}

/* ==========================================================================
   SECTION DIVIDERS
   ========================================================================== */

.element-divider {
    --divider-height: 40px;
    --divider-color: #e5e7eb;
    --divider-thickness: 2px;
    --divider-pattern-size: 16px;

    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Full width divider */
.element-divider.full-width {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    box-sizing: border-box;
}

/* ========== SPACER ========== */
.element-divider.divider-spacer .divider-spacer {
    height: var(--divider-height);
    width: 100%;
}

/* ========== LINE ========== */
.element-divider.divider-line {
    height: var(--divider-height);
}

.element-divider.divider-line .divider-line {
    width: 100%;
    max-width: 1200px;
    height: 0;
    border: none;
    border-top-width: var(--divider-thickness);
    border-top-color: var(--divider-color);
}

/* Line Styles */
.element-divider.divider-line .divider-line-solid {
    border-top-style: solid;
}

.element-divider.divider-line .divider-line-dashed {
    border-top-style: dashed;
}

.element-divider.divider-line .divider-line-dotted {
    border-top-style: dotted;
}

.element-divider.divider-line .divider-line-double {
    border-top-style: double;
    border-top-width: calc(var(--divider-thickness) * 2);
}

/* Full width line */
.element-divider.divider-line.full-width .divider-line {
    max-width: none;
}

/* ========== PATTERNS (Dots, Zigzag, Arrows, Diamonds) ========== */
.element-divider .divider-pattern {
    height: var(--divider-height);
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--divider-color);
}

.element-divider.full-width .divider-pattern {
    max-width: none;
}

.element-divider .divider-pattern .divider-svg {
    width: 100%;
    height: 100%;
}

/* ========== WAVE SHAPE ========== */
.element-divider.divider-wave {
    height: var(--divider-height);
}

.element-divider.divider-wave .divider-shape {
    width: 100%;
    height: 100%;
    color: var(--divider-color);
}

.element-divider.divider-wave .divider-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========== SHAPE DIVIDERS (NEW) ========== */

/* Common styles for all shape dividers */
.element-divider .divider-shape {
    width: 100%;
    height: 100%;
    color: var(--divider-color);
    background-color: var(--divider-bg-color, transparent);
    position: relative;
}

.element-divider .divider-shape .divider-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Mountains shape */
.element-divider.divider-mountains {
    height: var(--divider-height);
}

/* Clouds shape */
.element-divider.divider-clouds {
    height: var(--divider-height);
}

/* Triangle/Arrow shape */
.element-divider.divider-triangle {
    height: var(--divider-height);
}

/* Curve shape */
.element-divider.divider-curve {
    height: var(--divider-height);
}

/* Tilt/Diagonal shape */
.element-divider.divider-tilt {
    height: var(--divider-height);
}

/* Drops/Drips shape */
.element-divider.divider-drops {
    height: var(--divider-height);
}

/* Multi-waves shape */
.element-divider.divider-waves_multi {
    height: var(--divider-height);
}

/* Book/Page fold shape */
.element-divider.divider-book {
    height: var(--divider-height);
}

/* Split/Torn paper shape */
.element-divider.divider-split {
    height: var(--divider-height);
}

/* ========== FLIP OPTION ========== */
.element-divider.flipped .divider-shape {
    transform: scaleY(-1);
}

.element-divider.flipped .divider-pattern {
    transform: scaleY(-1);
}

/* ========== BACKGROUND COLOR SUPPORT ========== */
.element-divider .divider-shape {
    background-color: var(--divider-bg-color, transparent);
}

/* White color */
.element-divider.color-white {
    --divider-color: #ffffff;
}

/* ========== COLOR VARIANTS ========== */

/* Default - uses CSS variable */
.element-divider.color-default {
    --divider-color: var(--element-divider-color, #e5e7eb);
}

/* Light Gray */
.element-divider.color-light {
    --divider-color: #f3f4f6;
}

/* Dark */
.element-divider.color-dark {
    --divider-color: #374151;
}

/* Primary */
.element-divider.color-primary {
    --divider-color: var(--element-primary-color, #3b82f6);
}

/* Gradient - special handling for line divider */
.element-divider.color-gradient.divider-line .divider-line {
    border-top-color: transparent;
    background: linear-gradient(90deg, transparent, var(--element-primary-color, #3b82f6), transparent);
    height: var(--divider-thickness);
    border: none;
}

/* Gradient - special handling for patterns */
.element-divider.color-gradient .divider-pattern,
.element-divider.color-gradient .divider-shape {
    background: linear-gradient(90deg, transparent, var(--element-primary-color, #3b82f6), transparent);
    -webkit-background-clip: text;
    background-clip: text;
}

.element-divider.color-gradient .divider-svg {
    color: var(--element-primary-color, #3b82f6);
}

/* ========== ANIMATION ========== */
.element-divider.animate .divider-pattern .divider-svg,
.element-divider.animate .divider-shape .divider-svg {
    animation: dividerPulse 2s ease-in-out infinite;
}

.element-divider.animate.divider-line .divider-line {
    animation: dividerLineGrow 1s ease-out;
}

@keyframes dividerPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes dividerLineGrow {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .element-divider .divider-pattern,
    .element-divider.divider-line .divider-line {
        max-width: 100%;
        margin: 0 1rem;
    }

    .element-divider.full-width .divider-pattern,
    .element-divider.full-width.divider-line .divider-line {
        margin: 0;
    }

    /* Prevent overflow on mobile */
    .element-divider.full-width {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .element-divider .divider-pattern .divider-svg {
        max-width: 100%;
    }
}

/* Global responsive overflow prevention */
@media (max-width: 480px) {
    .element-divider.full-width,
    .element-highlight.full-width .highlight-body {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .element-highlight.full-width .highlight-body .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
