/**
 * Estilos Principales del Sitio
 * Contiene los estilos globales, utilitarios y de layout
 */

/* === CONFIGURACIÓN GLOBAL === */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -o-font-smoothing: antialiased;
}

/* Tipografía responsiva */
html {
    font-size: 1.125rem;
}

@media screen and (max-width:1920px) {
    html {
        font-size: calc(0.625rem + 0.41666666666666674vw);
    }
}

@media screen and (max-width:1440px) {
    html {
        font-size: calc(0.8126951092611863rem + 0.20811654526534862vw);
    }
}

@media screen and (max-width:479px) {
    html {
        font-size: calc(0.7494769874476988rem + 0.8368200836820083vw);
    }
}

/* === RESET DE ELEMENTOS WEBFLOW === */
/* Asegurar que elementos hereden color del padre */
a,
.w-input,
.w-select,
.w-tab-link,
.w-nav-link,
.w-nav-brand,
.w-dropdown-btn,
.w-dropdown-toggle,
.w-slider-arrow-left,
.w-slider-arrow-right,
.w-dropdown-link {
    color: inherit;
    text-decoration: inherit;
    font-size: inherit;
}

/* Estados de foco para navegación por teclado */
*[tabindex]:focus-visible,
input[type="file"]:focus-visible {
    outline: 0.125rem solid #4d65ff;
    outline-offset: 0.125rem;
}

/* === ESTILOS DE RICH TEXT === */
/* Eliminar margin superior del primer elemento */
.w-richtext > :not(div):first-child,
.w-richtext > div:first-child > :first-child {
    margin-top: 0 !important;
}

/* Eliminar margin inferior del último elemento */
.w-richtext>:last-child,
.w-richtext ol li:last-child,
.w-richtext ul li:last-child {
    margin-bottom: 0 !important;
}

/* === UTILIDADES DE INTERACCIÓN === */
/* Deshabilitar eventos de puntero */
.pointer-events-off {
    pointer-events: none;
}

/* Habilitar eventos de puntero */
.pointer-events-on {
    pointer-events: auto;
}

/* === UTILIDADES DE LAYOUT === */
/* Crear div cuadrado 1:1 */
.div-square::after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

/* Centrar contenedores */
.container-medium,
.container-small,
.container-large {
    margin-right: auto !important;
    margin-left: auto !important;
}

/* === UTILIDADES DE TEXTO === */
/* Truncar texto después de 3 líneas */
.text-style-3lines {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Truncar texto después de 2 líneas */
.text-style-2lines {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Truncar texto al 100% del ancho */
.truncate-width {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === UTILIDADES DE DISPLAY === */
.display-inlineflex {
    display: inline-flex;
}

.hide {
    display: none !important;
}

/* === RESPONSIVE UTILITIES === */
@media screen and (max-width: 991px) {
    .hide, .hide-tablet {
        display: none !important;
    }
}

@media screen and (max-width: 767px) {
    .hide-mobile-landscape{
        display: none !important;
    }
}

@media screen and (max-width: 479px) {
    .hide-mobile{
        display: none !important;
    }
}

/* === UTILIDADES DE SPACING === */
.margin-0 {
    margin: 0rem !important;
}

.padding-0 {
    padding: 0rem !important;
}

.spacing-clean {
    padding: 0rem !important;
    margin: 0rem !important;
}

/* Margin específicos */
.margin-top {
    margin-right: 0rem !important;
    margin-bottom: 0rem !important;
    margin-left: 0rem !important;
}

.margin-right {
    margin-top: 0rem !important;
    margin-bottom: 0rem !important;
    margin-left: 0rem !important;
}

.margin-bottom {
    margin-top: 0rem !important;
    margin-right: 0rem !important;
    margin-left: 0rem !important;
}

.margin-left {
    margin-top: 0rem !important;
    margin-right: 0rem !important;
    margin-bottom: 0rem !important;
}

.margin-horizontal {
    margin-top: 0rem !important;
    margin-bottom: 0rem !important;
}

.margin-vertical {
    margin-right: 0rem !important;
    margin-left: 0rem !important;
}

/* Padding específicos */
.padding-top {
    padding-right: 0rem !important;
    padding-bottom: 0rem !important;
    padding-left: 0rem !important;
}

.padding-right {
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
    padding-left: 0rem !important;
}

.padding-bottom {
    padding-top: 0rem !important;
    padding-right: 0rem !important;
    padding-left: 0rem !important;
}

.padding-left {
    padding-top: 0rem !important;
    padding-right: 0rem !important;
    padding-bottom: 0rem !important;
}

.padding-horizontal {
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
}

.padding-vertical {
    padding-right: 0rem !important;
    padding-left: 0rem !important;
}

/* === UTILIDADES DE SCROLLBAR === */
/* Remover scrollbars nativas */
.no-scrollbar {
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* === SELECT PERSONALIZADO === */
/* Remover chevron por defecto de Webflow */
select {
    -webkit-appearance: none;
}

/* === FILTROS DE INDUSTRIA PARA TESTIMONIOS === */
.industry-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.industry-btn {
    background-color: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.industry-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.industry-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Efectos de transición para testimonios filtrados */
.swiper-slide.is-testimonial {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Botones de navegación movidos abajo */
.testimonial_swiper-button-wrapper.moved-bottom {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ALTURA UNIFORME PARA TESTIMONIOS - Moved to TESTIMONIALS TRUNCATION STYLES section */

.testimonial_content-top {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.testimonial_content-top .text-size-medium {
    flex: 1 !important;
    min-height: 180px !important; /* Altura mínima para uniformidad */
}

/* Permitir expansión cuando el texto está expandido */
.testimonial_card .testimonial-toggle.expanded ~ .testimonial-text-container .text-size-medium,
.testimonial_card .testimonial-text-container .testimonial-full {
    min-height: auto !important; /* Permitir altura automática cuando expandido */
}

/* Forzar altura uniforme en todos los swiper slides de testimonios */
.swiper-slide.is-testimonial {
    height: auto !important;
}

.swiper.is-testimonial .swiper-wrapper {
    align-items: stretch !important;
}

/* Responsive para filtros de industria */
@media screen and (max-width: 768px) {
    .industry-filter-wrapper {
        gap: 8px;
        margin-bottom: 20px;
    }

    .industry-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .testimonial_content-top .text-size-medium {
        min-height: 200px !important; /* Altura mayor en mobile */
    }
}

@media screen and (max-width: 479px) {
    .industry-filter-wrapper {
        gap: 6px;
        margin-bottom: 16px;
        overflow-x: auto; /* Permitir scroll horizontal si es necesario */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling en iOS */
        scrollbar-width: none; /* Ocultar scrollbar en Firefox */
    }

    .industry-filter-wrapper::-webkit-scrollbar {
        display: none; /* Ocultar scrollbar en Chrome/Safari */
    }

    .industry-btn {
        font-size: 12px;
        padding: 5px 10px;
        flex-shrink: 0; /* Evitar que los botones se compriman */
    }

    .testimonial_content-top .text-size-medium {
        min-height: auto !important; /* Altura automática en mobile pequeño */
    }

    /* Mobile testimonial adjustments moved to TESTIMONIALS TRUNCATION STYLES section */
}

/* === ESTILOS PARA SECCIÓN SPARK (TYPED TEXT) === */
.spark_component {
    text-align: center;
    padding: 60px 0;
}

.spark_input-wrapper {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 2rem;
}

.spark_input-field {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 20px 30px;
    font-size: 1.1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typed-text {
    color: #ffffff;
    font-weight: 500;
}

/* Cursor de typed.js */
.typed-cursor {
    opacity: 1;
    animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
    50% { opacity: 0; }
}

/* Responsive para spark */
@media screen and (max-width: 768px) {
    .spark_input-field {
        font-size: 1rem;
        padding: 15px 20px;
        min-height: 50px;
    }

    .spark_component {
        padding: 40px 0;
    }
}

@media screen and (max-width: 479px) {
    .spark_input-field {
        font-size: 0.9rem;
        padding: 12px 16px;
        min-height: 45px;
    }

    .spark_component {
        padding: 30px 0;
    }
}

/* === ESTILOS PARA HERO TEXT ROTATION === */
.hero_text-bubble.is-list {

    width: 180px !important; /* Ancho aumentado para "Procesando documentos" + padding */
}

.hero_text-list {
    display: flex !important;
    align-items: center !important;
}

.hero_text-single-line {
    width: 100% !important;
    text-align: left !important;
}

.hero_rotating-text {
    transition: opacity 0.3s ease !important;
    display: inline !important;
    min-width: 125px !important; /* Ancho exacto para "Leyendo documentos" */
}

/* === ESTILOS PARA HERO VIDEO === */
.hero_call-wrapper {
    transform: scale(1.4) !important; /* Hacer el video 40% más grande */
    transform-origin: center !important; /* Mantener centrado al escalar */
    position: relative !important; /* Necesario para el posicionamiento del bubble */
    background-color: white !important; /* Fondo blanco en lugar del azul claro */
}

.hero_video-wrapper {
    position: relative !important;
    z-index: 1 !important;
}

/* === MOBILE FIXES FOR HERO VIDEO SCALING === */
@media screen and (max-width: 991px) {
    .hero_call-wrapper {
        transform: scale(1.2) !important; /* Reducir escala en tablet */
    }
}

@media screen and (max-width: 767px) {
    .hero_call-wrapper {
        transform: scale(1.1) !important; /* Reducir escala en mobile landscape */
    }
}

@media screen and (max-width: 479px) {
    .hero_call-wrapper {
        transform: scale(1) !important; /* Sin escala en mobile portrait */
    }
}

/* === ESTILOS PARA HERO BUBBLE POSITIONING === */
.hero_call-wrapper .hero_bubble-wrapper,
.hero_bubble-wrapper {
    position: absolute !important;
    top: 10px !important; /* Esquina superior */
    right: -80px !important; /* Posicionar un poco hacia la izquierda del video */
    left: auto !important; /* Remover posicionamiento izquierdo */
    z-index: 10 !important; /* Por encima del video */
    max-width: 180px !important; /* Ancho aumentado para "Procesando documentos" */
    align-items: flex-end !important; /* Alinear a la derecha */
    transform: none !important; /* Remover cualquier transform que pueda afectar */
}

/* === MOBILE FIXES FOR HERO BUBBLE === */
@media screen and (max-width: 991px) {
    .hero_call-wrapper .hero_bubble-wrapper,
    .hero_bubble-wrapper {
        right: 10px !important; /* Mantener dentro del viewport en tablet */
        top: 15px !important;
    }
}

@media screen and (max-width: 767px) {
    .hero_call-wrapper .hero_bubble-wrapper,
    .hero_bubble-wrapper {
        right: 5px !important; /* Mantener dentro del viewport en mobile */
        top: 10px !important;
        max-width: 140px !important; /* Reducir ancho en mobile */
    }
}

@media screen and (max-width: 479px) {
    .hero_call-wrapper .hero_bubble-wrapper,
    .hero_bubble-wrapper {
        position: relative !important; /* Cambiar a relative en mobile pequeño */
        right: auto !important;
        top: auto !important;
        left: auto !important;
        margin: 0 auto 1rem auto !important; /* Centrar y dar espacio */
        max-width: 100% !important;
    }
}

.hero_text-bubble.is-list {
    background: rgba(0, 78, 150, 0.33) !important;
    backdrop-filter: blur(5px) !important;
    border-radius: 0 !important;
    padding: 10px 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* === MOBILE OVERFLOW PREVENTION === */
/* Prevenir overflow horizontal en todos los dispositivos móviles */
@media screen and (max-width: 991px) {
    body {
        overflow-x: hidden !important;
    }

    /* Asegurar que los contenedores no excedan el viewport */

    /* Prevenir overflow en secciones específicas */
    .hero_content,
    .features_component,
    .testimonial_content {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}


@media screen and (max-width: 479px) {
    body {
        overflow-x: hidden !important;
    }

    /* Padding más pequeño en móviles */

    /* Additional mobile menu fixes for very small screens */
    .navbar_menu.w--open .locales_toggle {
        padding: 12px 16px !important;
    }

    .navbar_menu.w--open .navbar_dropdown-link {
        font-size: 16px !important;
    }

    .navbar_menu.w--open .locales_dropdown_link {
        padding: 10px 16px 10px 32px !important;
        font-size: 14px !important;
    }


    /* Asegurar que todos los elementos se ajusten al viewport */
    * {
        max-width: 100% !important;
    }

    /* Excepciones para elementos que necesitan ancho completo */
    body, html, .w-layout-grid, .swiper, .swiper-wrapper, .swiper-slide {
        max-width: none !important;
    }

    /* Fix navbar logo scaling on mobile */
    .navbar_logo {
        transform: none !important;
        width: auto !important;
        height: 32px !important;
        max-width: 120px !important;
    }



/* =================================================================== */
/* TESTIMONIALS TRUNCATION STYLES */
/* =================================================================== */

.testimonial_card {
    height: 100% !important; /* Altura completa del contenedor */
    min-height: 320px !important; /* Altura mínima pero permite expansión */
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box;
}

/* .testimonial_content-top styles consolidated above in FILTROS DE INDUSTRIA section */

/* .testimonial-text-container and .testimonial-text-wrapper styles consolidated below */

.testimonial-preview {
    display: block;
}

.testimonial-full {
    display: none;
}

.testimonial-toggle {
    background: none;
    border: none;
    color: #146ac9;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.testimonial-toggle:hover {
    color: #FB7C00;
}

.toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.testimonial-toggle.expanded .toggle-icon {
    transform: rotate(45deg);
}

/* Button text handled via JavaScript */

/* Testimonial truncation container */
.testimonial-text-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: auto !important; /* Permitir altura automática */
}

.testimonial-text-wrapper {
    flex: 1;
    height: auto !important; /* Permitir altura automática */
    min-height: auto !important; /* Sobrescribir altura mínima cuando esté expandido */
}

/* .testimonial-toggle styles consolidated above */

/* Cuando está expandido, permitir altura completa */
.testimonial_card.is-expanded {
    height: auto !important;
    min-height: 320px !important;
}

.testimonial_card.is-expanded .text-size-medium {
    min-height: auto !important;
    height: auto !important;
}

.testimonial_card.is-expanded .testimonial-text-container {
    height: auto !important;
}

.testimonial_card.is-expanded .testimonial-text-wrapper {
    min-height: auto !important;
    height: auto !important;
}

/* Ensure consistent card heights */
.swiper-slide.is-testimonial {
    height: auto;
}

/* Responsive styles for testimonials */
@media screen and (max-width: 479px) {
    .testimonial_card {
        min-height: auto !important; /* Auto height on small mobile */
        padding: 1rem !important; /* Consistent padding */
    }
}

/* =================================================================== */
/* CLIENT TRUST TEXT STYLES */
/* =================================================================== */

.client-trust-text {
    display: flex;
    align-items: center;
    margin-right: 0; /* Eliminar completamente el espacio */
}

/* Asegurar que no hay espacio entre el contenedor y el marquee */
.logo_content-left {
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.logo_content {
    gap: 0 !important;
    align-items: center;
}

.client-trust-text p {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive ajustes */
@media (max-width: 991px) {
    .client-trust-text {
        margin-right: 0; /* Sin espacio en tablet */
    }
    .client-trust-text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .client-trust-text {
        margin-right: 0; /* Sin espacio en mobile */
        margin-bottom: 0.5rem;
    }
    .client-trust-text p {
        white-space: normal; /* Permitir wrap en mobile */
        font-size: 0.875rem;
        line-height: 1.3;
    }
}

@media (max-width: 479px) {
    .client-trust-text p {
        font-size: 0.8rem;
    }
}

/* =================================================================== */
/* SOCIAL MEDIA ICONS STYLES */
/* =================================================================== */

.footer-social {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap !important;
}

.footer-social a {
    display: inline-flex !important;
    flex-shrink: 0;
}

.footer-social .social-icon {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    display: block;
}

.footer-social a:hover .social-icon {
    opacity: 0.7;
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .footer-social {
        gap: 0.875rem;
        justify-content: center;
        display: flex !important;
        flex-direction: row !important;
    }
}

@media (max-width: 767px) {
    .footer-social {
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: nowrap !important;
        display: flex !important;
        flex-direction: row !important;
    }

    .footer-social a {
        display: inline-flex !important;
    }

    .footer-social .social-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 479px) {
    .footer-social {
        gap: 0.5rem;
        display: flex !important;
        flex-direction: row !important;
    }

    .footer-social a {
        display: inline-flex !important;
    }

    .footer-social .social-icon {
        width: 18px;
        height: 18px;
    }
}

/* .testimonial_card consolidated in TESTIMONIALS TRUNCATION STYLES section */

/* =================================================================== */
/* DYNAMIC FEATURE IMAGES STYLES */
/* =================================================================== */

/* Contenedor principal sticky para desktop */
.features_desktop-image-wrapper {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;
}

/* Contenedor de imagen dinรกmica */
.features_dynamic-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Imagen dinámica con transiciones suaves */
.features_dynamic-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
    display: block;
}

/* Video dinámico - mismo tamaño que imágenes */
video.features_dynamic-image {
    width: auto;
    height: auto;
    max-height: 300px;
    max-width: 100%;
    object-fit: contain;
}

/* Imágenes mobile - ocultas en desktop por defecto */
.features_mobile-image {
    display: none !important;
}

.features_content .features_mobile-image {
    display: none !important;
}

/* Desktop - mostrar imagen dinámica, ocultar imágenes mobile */
@media screen and (min-width: 992px) {
    .features_mobile-image {
        display: none !important;
    }

    .features_content .features_mobile-image {
        display: none !important;
    }

    .features_desktop-image-wrapper {
        display: flex !important;
    }
}

/* Responsive: Desktop grande */
@media screen and (min-width: 1440px) {
    .features_desktop-image-wrapper {
        top: 120px;
    }

    .features_dynamic-image-container {
        min-height: 500px;
        max-height: 600px;
    }
}

/* Responsive: Desktop estándar */
@media screen and (min-width: 992px) and (max-width: 1439px) {
    .features_desktop-image-wrapper {
        top: 100px;
    }

    .features_dynamic-image-container {
        min-height: 400px;
        max-height: 500px;
    }
}

/* Responsive: Tablet */
@media screen and (max-width: 991px) {
    .features_component {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Ocultar imagen desktop compartida en mobile */
    .features_desktop-image-wrapper {
        display: none !important;
    }

    /* Mostrar imágenes individuales en mobile - sobrescribe inline style */
    .features_mobile-image {
        display: block !important;
    }

    .features_content .features_mobile-image {
        display: block !important;
    }

    .features_content-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
    }

    .features_dynamic-image-container {
        min-height: 350px;
        max-height: 450px;
    }
}

/* Responsive: Mobile landscape */
@media screen and (max-width: 767px) {
    .features_desktop-image-wrapper {
        display: none !important;
    }

    .features_mobile-image {
        display: block !important;
    }

    .features_dynamic-image-container {
        min-height: 300px;
        max-height: 400px;
        border-radius: 0;
    }
}

/* Responsive: Mobile portrait */
@media screen and (max-width: 479px) {
    .features_desktop-image-wrapper {
        display: none !important;
    }

    .features_mobile-image {
        display: block !important;
    }

    .features_dynamic-image-container {
        min-height: 250px;
        max-height: 350px;
        border-radius: 0;
    }
}

/* Estado de carga */
.features_dynamic-image-container.loading {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* =================================================================== */
/* HERO LAYOUT RESTRUCTURE - DESKTOP */
/* =================================================================== */

/**
 * NUEVA ESTRUCTURA PARA DESKTOP (≥992px):
 * - Título "IA para procesos administrativos" spans ancho completo en primera fila
 * - Descripción y video se posicionan en columnas en segunda fila
 * - Mobile mantiene comportamiento actual (single column)
 *
 * HTML STRUCTURE:
 * - Title is now extracted to .hero_title-wrapper outside of grid
 * - Grid contains only description+buttons and video
 */

@media screen and (min-width: 992px) {
    /* Hero component layout - title takes full width at top */
    .hero_component {
        display: block !important;
        width: 100% !important;
    }

    /* Title wrapper - completely separate, full width */
    .hero_title-wrapper {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 3rem !important;
        padding: 0 !important;
    }

    .hero_title-wrapper .margin-bottom.margin-small {
        margin-bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .hero_title-wrapper h1 {
        text-align: center !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
    }

    /* Grid layout - two columns for description and video ONLY */
    .w-layout-grid.hero_content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        gap: 4rem !important;
        align-items: start !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    /* Left content positioning - description and buttons */
    .hero_content-left {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    /* Right content positioning - video */
    .hero_content-wrapper {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
    }

    /* Description content styling */
    .hero_content-left .max-width-small {
        max-width: 450px !important;
        width: 100% !important;
    }

    /* Ensure description text is left-aligned */
    .hero_content-left .max-width-small > p {
        text-align: left !important;
        font-size: 1.125rem !important;
        line-height: 1.6 !important;
    }
}

/* Mobile behavior - single column layout */
@media screen and (max-width: 991px) {
    /* Keep original mobile behavior - title shows in mobile-friendly way */
    .hero_title-wrapper {
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }

    .hero_title-wrapper h1 {
        text-align: center !important;
    }

    .w-layout-grid.hero_content {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .hero_content-left {
        text-align: center !important;
        justify-content: center !important;
        align-items: flex-start !important;
        display: flex !important;
    }
}



