/* #region Sections(solo el hero) */
main {
    padding-top: var(--header-height);
    /* Prevent overlap */
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    /* Logical start */
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(31, 32, 38, 0.5);
    /* Slight dark overlay for text readability 
}

.hero-content {
    /*max-width: 800px;*/
    z-index: 1;
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: 20px;
    margin-top: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}


.hero-eyebrow {
    display: flex;
    /* Alinea la imagen y el texto en fila */
    align-items: center;
    /* Centra el texto verticalmente con la imagen */
    gap: 10px;
    /* Espacio exacto de 10px que pediste */
    margin-bottom: 24px;
    /* Separación con el H1 */
    width: max-content;
    /* El contenedor solo ocupa lo que mide el texto */
    max-width: 100%;
    /* Evita que el contenedor sea más ancho que la pantalla */
}

.eyebrow-text {
    font-family: var(--font-body);
    font-size: 18px;
    /* Tamaño para Desktop */
    color: var(--color-white);
    font-weight: 300;
    white-space: nowrap;
    /* Obliga al texto a quedarse en una sola línea */
}

/* FIX PARA QUE NO REBASE EN MOBILE */
@media (max-width: 768px) {
    .eyebrow-text {
        font-size: 14px;
        /* Reducimos el texto en móvil para que quepa siempre */
    }

    .avatar-group img {
        height: 30px;
        /* Reducimos un poco la imagen también en móvil */
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* #endregion */


/* #region SECTION2: PRACTICE AREAS (REINICIO) */

/* ESTADO BASE (Siempre Negro) */
.practice-areas-section {
    background-color: #1F2026 !important;
    /* Negro Universal */
    color: #f6f6f6;
    padding: 100px 0;
    /* Espaciado superior e inferior */
    width: 100%;
    overflow: hidden;
    /* Evita desbordamientos horizontales */
    position: relative;
    margin-top: -20px;
    z-index: 1;
    /* Asegura que esté por encima del fondo base */

    /* Configuración de la Animación de Entrada */
    opacity: 0;
    /* Empieza invisible */
    filter: blur(10px);
    /* Empieza desenfocada */
    transform: translateY(20px);
    /* Un ligero desplazamiento hacia abajo */
    transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, filter, transform;
    /* Optimización para móviles */
}

/* 2. ESTADO VISIBLE (Activado por JS) */
.practice-areas-section.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* LAYOUT DEL ENCABEZADO (Grid 70/30) */
.pa-wrapper {
    width: 90%;
    max-width: none;
    margin: 0 auto;
}

.pa-header-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    /* La columna izquierda ocupa el 70% */
    gap: 40px;
    align-items: flex-end;
    /* Alinea el botón abajo con el texto */
    margin-bottom: 60px;
}

/* Tipografía */
.pa-col-left h2 {
    font-size: clamp(45px, 6vw, 75px);
    /* Tamaño dinámico responsive */
    line-height: 1.1;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.pa-col-left p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 800px;
}

/* Alineación del Botón (Derecha en escritorio) */
.pa-col-right {
    display: flex;
    justify-content: flex-end;
}

/* 4. RESPONSIVE (Móviles y Tablets) */
@media (max-width: 992px) {
    .practice-areas-section {
        padding: 60px 0;
    }

    .pa-header-grid {
        grid-template-columns: 1fr;
        /* Se apila en una sola columna */
        gap: 30px;
        align-items: flex-start;
    }

    .pa-col-right {
        justify-content: flex-start;
        /* El botón se alinea a la izquierda en móvil */
    }
}

/* Soporte RTL (Árabe) para el botón */
html[dir="rtl"] .pa-col-right {
    justify-content: flex-start;
}

@media (max-width: 992px) {
    html[dir="rtl"] .pa-col-right {
        justify-content: flex-end;
        /* En móvil árabe, el botón a la derecha */
    }
}

/* #endregion */

/* #region SECTION 3: LEGACY --- */
.legacy-section {
    padding: 120px 0;
    background-color: #F6F6F6;
    /* Fondo claro como en la imagen */
    color: #1a1a1a;
}


.legacy-headline {
    font-size: clamp(40px, 5vw, 70px);
    font-family: var(--font-heading);
    /* Usa tu fuente Serif */
    line-height: 1.1;
    margin-bottom: 80px;
    font-weight: 400;
}




/* Filas */
.legacy-rows {
    border-top: 1px solid #d1d1d1;
}

.legacy-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 0.5fr;
    padding: 60px 0;
    border-bottom: 1px solid #d1d1d1;
    align-items: center;
    gap: 40px;
}

.legacy-col.title h3 {
    font-size: 28px;
    color: #2c3e50;
    /* Un azul muy oscuro/grisáceo */
    font-weight: 500;
}

.legacy-col.desc p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    max-width: 450px;
}

.legacy-col.number {
    font-size: 80px;
    font-family: var(--font-heading);
    color: #1a1a1a;
    text-align: right;
    font-weight: 400;
}

/* Footer con el símbolo + */
.legacy-footer {
    margin-top: 50px;
}

.legacy-learn-more {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: 0.3s;
}

.plus-icon {
    background: #1a1a1a;
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ANIMACIÓN DE CARGA EN ORDEN */
.animate-row {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: calc(var(--order) * 0.2s);
    /* El truco del orden */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 1024px) {
    .legacy-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }

    .legacy-col.number {
        text-align: left;
        font-size: 60px;
        order: -1;
        /* El número aparece arriba en móvil */
    }
}

/* #endregion */

/* #region SECTION4 */
.insights-section {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #1F2026;
    /* Empieza en Negro Universal */
    filter: blur(15px);
    /* Empieza fuertemente desenfocado */
    position: relative;

    /* La transición suave de 0.8 segundos */
    transition: background-color 0.8s ease-out, filter 0.8s ease-out;
    will-change: background-color, filter;
}

/* Estado Final (Disparado por el Scroll en JS) */
.insights-section.is-visible {
    background-color: #F6F6F6;
    /* Termina en Blanco Hueso */
    filter: blur(0);
    /* Se vuelve completamente nítido */
}

/* 2. LAYOUT 70/30 DEL HEADER */

.insights-wrapper {
    width: 100%;
}

.insights-header-grid {
    display: flex;
    justify-content: space-between;
    /* Texto a un lado, botón al otro */
    align-items: flex-start;
    /* Pegados arriba */
    gap: 40px;
    margin-bottom: 60px;
}

.insights-col-left {
    flex: 1;
    /* Ocupa el 70% restante */
    max-width: 800px;
}

.insights-col-right {
    flex-shrink: 0;
    /* Evita que el botón se aplaste */
    display: flex;
}

/* 3. TIPOGRAFÍA Y ESTILOS */
.insights-col-left h2 {
    font-size: clamp(40px, 5vw, 70px);
    line-height: 1.1;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 20px;
}

.insights-col-left .subtitle {
    font-size: 18px;
    color: #555;
    margin: 0;
}

/* 4. BOTÓN DEL BLOG */
.btn-blog {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #2B3561;
    /* Azul Universal */
    color: #FFFFFF !important;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-blog:hover {
    background-color: #1f274a;
    transform: translateY(-2px);
}

.btn-blog .arrow-icon {
    transition: transform 0.3s ease;
}

/* Animación de la flecha al pasar el mouse */
.btn-blog:hover .arrow-icon {
    transform: translateX(5px);
}

/* Lógica RTL (Árabe): Voltear la flecha para que apunte a la izquierda */
html[lang="ar"] .btn-blog .arrow-icon {
    transform: scaleX(-1);
}

html[lang="ar"] .btn-blog:hover .arrow-icon {
    transform: scaleX(-1) translateX(5px);
}

/* 5. RESPONSIVE (Móviles) */
@media (max-width: 992px) {
    .insights-header-grid {
        flex-direction: column;
        /* Pasa el botón debajo del título */
        align-items: flex-start;
        /* Todo alineado a la izquierda (o derecha en AR) */
        gap: 30px;
    }
}

/* 6. CONTENEDOR DEL SLIDER (Vacío) */
.insights-slider-container {
    width: 100%;
    min-height: 10px;
    /* Para que el DOM no colapse visualmente */
}

/* Blog cards grid inside insights section */
.insights-section .blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.insights-section .blog-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.insights-section .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(31, 32, 38, 0.12);
}

.insights-section .blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.insights-section .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insights-section .blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

.insights-section .blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insights-section .blog-card-date {
    font-size: 13px;
    color: #979797;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.insights-section .blog-card-date i {
    color: #FEC96D;
    font-size: 12px;
}

.insights-section .blog-card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #1F2026;
    margin-bottom: 12px;
}

.insights-section .blog-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insights-section .blog-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.insights-section .blog-card-tag {
    font-size: 11px;
    padding: 3px 10px;
    background: rgba(31, 32, 38, 0.06);
    color: #555;
    border-radius: 3px;
    font-family: 'Poppins', sans-serif;
}

.insights-section .blog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1F2026;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: color 0.3s, gap 0.3s;
    margin-top: auto;
}

.insights-section .blog-card:hover .blog-card-cta {
    color: #FEC96D;
    gap: 12px;
}

@media (max-width: 992px) {
    .insights-section .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .insights-section {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .insights-section .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* #region SECTION 5: FAQ --- */

.faq-section {
    padding-block: 100px;
    background-color: #f9f9f9;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.faq-item h4 {
    margin-bottom: 15px;
}

.faq-item p {
    color: var(--color-grey);
}

.faq-section {
    background-color: #1F2026;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    /*min-height: 100vh;*/
}

#faq-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Permite clickear los elementos de abajo */
}

.faq-container {
    position: relative;
    z-index: 2;
}

/* Headline FAQ Centrado */
.faq-main-title {
    font-size: clamp(60px, 8vw, 100px);
    font-family: var(--font-heading);
    color: #F6F6F6;
    text-align: center;
    /* Único centrado */
    margin-bottom: 80px;
    font-weight: 300;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 60px;
}

.faq-item {
    border-bottom: 1px solid rgba(246, 246, 246, 0.1);
    padding: 30px 0;
}

/* Excepción de fuente para Preguntas */

.faq-question {
    display: flex;
    /* Convierte el div en una fila */
    justify-content: space-between;
    /* Empuja el texto a un lado y el icono al otro */
    align-items: center;
    /* Los centra verticalmente entre sí */
    width: 100%;
    /* Asegura que use todo el ancho de la columna */
    gap: 20px;
    /* Espacio mínimo entre texto e icono */
    cursor: pointer;
}

/* =========================================
   FAQ QUESTION & ICON (CONSOLIDADO)
   ========================================= */

/* Ajustes base para el texto de la pregunta */
.faq-question h3 {
    flex: 1;
    /* El texto toma todo el espacio disponible */
    margin: 0;
    color: #F6F6F6;
    transition: color 0.3s ease;
}

/* Tipografía forzada para INGLÉS */
.faq-question h3.en-text {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 300 !important;
    font-size: 16px !important;
}

/* Tipografía forzada para ÁRABE */
.faq-question h3.ar-text {
    font-family: "greycliff-arabic-cf", sans-serif !important;
    font-weight: normal !important;
    font-size: 18px !important;
}

/* Ajustes base para el icono (Estructura + Diseño) */
.faq-icon {
    flex-shrink: 0;
    /* Evita que el icono se aplaste o baje */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    font-size: 24px;
    color: #F6F6F6;
    transition: transform 0.4s ease;
}

/* Estado Activo */
.faq-item.active .faq-question h3 {
    color: var(--color-yellow) !important;
}

.faq-item.active .faq-icon {
    color: var(--color-yellow);
    transform: rotate(45deg);
}

/* Respuesta y Fade In */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-top: 20px;
    color: rgba(246, 246, 246, 0.7);
    font-size: 18x;
    line-height: 1.6;
    /* Efecto Fade In */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

/* --- RTL SUPPORT --- */
html[lang="ar"] .faq-section {
    direction: rtl;
}

html[lang="ar"] .faq-question {
    text-align: right;
}

html[lang="ar"] .faq-main-title {
    text-align: center;
}

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}


/* #endregion */

/* #region SECTION 6: REPRESENTATION */
/* --- SECTION 6: REPRESENTATION --- */
.rep-section {
    padding: 120px 0;
    background-color: #f6f6f6;
    /* Fondo universal solicitado */
    overflow: hidden;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    /* Sube 8 píxeles */
    100% {
        transform: translateY(0px);
    }
}

.rep-shield-icon {
    width: 120px !important;
    /* Tamaño reducido a la mitad */
    height: auto;
    display: block;
    margin-bottom: 40px;

    /* Aplicar la animación: 3 segundos, suave, infinita */
    animation: float 3s ease-in-out infinite;
    will-change: transform;
    /* Optimización para que el navegador lo procese mejor */

    /* Lógica de alineación por idioma */
    margin-right: auto;
    margin-left: 0;
}

/* Ajuste para Árabe (Derecha) */
html[lang="ar"] .rep-shield-icon {
    margin-left: auto;
    margin-right: 0;
}

/* Fila superior */
.rep-header-action {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.rep-yellow-line {
    flex-grow: 1;
    height: 1px;
    background-color: #FEC96D;
}

/* Titular */
.rep-title-area h2 {
    font-size: clamp(45px, 6vw, 80px);
    font-family: var(--font-heading);
    color: #1F2026;
    line-height: 1.1;
    margin-bottom: 30px;
}

.rep-gray-line {
    width: 100%;
    height: 1px;
    background-color: #E0E0E0;
    margin-bottom: 70px;
}

/* Grid */
.rep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.rep-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Cuadros negros */
.rep-num-box {
    width: 75px;
    height: 75px;
    background-color: #1F2026;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 28px;
    border-radius: 3px;
    /* Radius solicitado */
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rep-card:hover .rep-num-box {
    /* Crece un 8% (1.08) */
    transform: scale(1.08);

    /* Opcional: Si quieres que brille un poquito el fondo negro universal */
    /* background-color: #2a2c35; */
}

/* EXCEPCIÓN: Poppins Light 20px */
.rep-content h3.en-text {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 300 !important;
    font-size: 18px !important;
    color: #1F2026;
    margin-bottom: 12px;
}

.rep-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* ANIMACIÓN SECUENCIAL */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.rep-section.visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* Delays */
.rep-section.visible .stagger-item:nth-child(1) {
    transition-delay: 0.2s;
}

.rep-section.visible .stagger-item:nth-child(2) {
    transition-delay: 0.5s;
}

.rep-section.visible .stagger-item:nth-child(3) {
    transition-delay: 0.8s;
}

/* RTL SUPPORT */
html[lang="ar"] .rep-header-action {
    flex-direction: row-reverse;
}

html[lang="ar"] .rep-title-area h2 {
    text-align: right;
}

html[lang="ar"] .rep-grid {
    direction: rtl;
}

html[lang="ar"] .rep-card {
    flex-direction: row-reverse;
    text-align: right;
}

@media (max-width: 1024px) {
    .rep-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rep-header-action {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .rep-yellow-line {
        width: 100%;
    }
}

/* #endregion */