/* #region CSS Variables & Core Resets */


:root {
    /* Colors */
    --color-black: #1F2026;
    --color-yellow: #FEC96D;
    --color-white: #F6F6F6;
    --color-grey: #979797;
    --color-border: #DADADA;

    /* Typography */
    --font-heading: 'Abhaya Libre', serif;
    /* Medium 500 / Bold 700 */
    --font-body: 'Poppins', sans-serif;
    /* Light 300 / Regular 400 */

    /* Layout */
    --header-height: 75px;
    --border-radius: 3px;
    --container-width: 90%;
    --container-max: 90%;
}

/* Global Reset & Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}


img,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* #endregion */

/* #region Typography Base */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-black);
}

h4 {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-black);
}

/* Responsive Font Sizes utilizing clamped values for better mobile experience */
h1 {
    font-size: clamp(60px, 8vw, 160px);
}

h2 {
    font-size: clamp(40px, 6vw, 120px);
}

h4 {
    font-size: clamp(20px, 3vw, 24px);
}

p {
    font-size: 16px;
}

/* #endregion */

/* #region Utility Classes */
.container {
    width: var(--container-width);
    max-width: var(--container-max);
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 50px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

.btn-primary:hover {
    background-color: #e5b45f;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ocultar elementos de mobile en desktop */
.mobile-cta-icon {
    display: none;
}

/* #endregion */

/* #region Header & Navigation */

/* ESTADO INICIAL: Totalmente opaco en la cima */
.site-header {
    height: 75px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #1F2026;
    /* Negro sólido sin transparencia */
    transition: all 0.4s ease;
    /* Transición suave para el cambio */
    backdrop-filter: none;
    /* Sin desenfoque al inicio */
}

/* ESTADO AL HACER SCROLL: Glassmorphism activo */
.site-header.scrolled {
    background: rgba(31, 32, 38, 0.4);
    /* 40% de opacidad */
    backdrop-filter: blur(10px);
    /* AQUÍ MODIFICAS EL BLUR */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--color-white);
    font-weight: 300;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-yellow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    /* Desktop default */
}

/* #endregion */

/* #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 Floating Widgets */

.lang-toggle-wrapper {
    position: fixed;
    bottom: 30px;
    inset-inline-end: 100px;
    /* Logical position */
    z-index: 1500;
}

.lang-btn {
    background: var(--color-black);
    color: var(--color-white);
    height: 50px;
    padding: 0 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn .active {
    color: var(--color-yellow);
}

/* WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    inset-inline-end: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-black);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* #endregion */

/* #region Social Floating Button */
.social-floating-wrapper {
    position: fixed;
    bottom: 30px;
    inset-inline-start: 30px;
    /* Logical start */
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-main-btn {
    width: 50px;
    height: 50px;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    /* Using circle for fab look typically, or stay consistent with border-radius: 3px */
    border-radius: var(--border-radius);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.social-icons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Hidden by default, handled via GSAP */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    padding-bottom: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--color-white);
    color: var(--color-black);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* #endregion */

/* #region Media Queries */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 60px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .practice-areas-grid {
        flex: 1 1 100%;
    }

    .section-header {
        position: static;
        margin-bottom: 30px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

}

/* #endregion */

/* #region --- HEADER (Mobile & Tablet) --- */
@media (max-width: 1024px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Orden: Menu(1) | Logo(2) | CTA(3) */
    .menu-toggle {
        display: block !important;
        position: absolute;
        left: 20px;
        /* Lo anclamos a la izquierda */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002
    }

    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-actions {
        position: absolute;
        right: 20px;
        /* Esto lo clava a la derecha */
        top: 50%;
        transform: translateY(-50%);
        display: flex;
    }

    .desktop-cta {
        display: none !important;
    }

    /* Matamos el CTA grande en mobile */

    .mobile-cta-icon {
        background: var(--color-yellow);
        height: 45px;
        width: auto;
        /* Importante: 'auto' para que el padding funcione */
        padding-inline: 10px;
        /* Los 10px de padding izquierda/derecha que pediste */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 3px;
    }

    /* CTA Mobile: Solo icono */
    .btn-cta-mobile {
        width: 45px;
        height: 45px;
        padding: 0 !important;
        justify-content: center;
    }

    .btn-cta-mobile .cta-text {
        display: none;
        /* Ocultamos el texto */
    }

    .btn-cta-mobile img {
        margin: 0 !important;
    }

    /* Dropdown Estilo Premium */
    .main-nav {
        display: none;
        /* Oculto por defecto */
        position: absolute;
        top: 75px;
        /* Altura del header */
        left: -2.5%;
        /* Compensa el padding del container */
        width: 105%;
        background: #1F2026;
        /* Negro sólido */
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.active {
        display: block;
        /* Se muestra con el JS */
        animation: fadeInDown 0.3s ease;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li {
        border-bottom: 1px solid rgba(151, 151, 151, 0.2);
        /* Separador gris */
    }

    .main-nav ul li a {
        display: block;
        padding: 20px 5%;
        color: var(--color-white);
        font-size: 18px;
    }

    .main-nav ul li a.active {
        color: var(--color-yellow) !important;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* #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;
    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-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 */
}

/* #endregion */

/* #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 */



/* =========================================
   SECTION: FOOTER MASTER 
   ========================================= */

/* 1. Base y Animación de Entrada */
.site-footer {
    background-color: #1F2026;
    color: #F6F6F6;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    /* Vital para contener la animación de los arcos */
    width: 100%;

    /* Animación de Desenfoque inicial */
    opacity: 0;
    filter: blur(15px);
    transition: opacity 1s ease-out, filter 1s ease-out;
}

.site-footer.is-visible {
    opacity: 1;
    filter: blur(0);
}

/* 2. Animación de Fondo (Arcos Opacos) */
.footer-arches {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Evita que estorben al dar click */
}

.arch {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Aumentado a 8% */
    border-radius: 50%;
    transform: translateX(-50%);
    bottom: -20%;
    animation: pulseArch 5s infinite alternate ease-in-out;
}

.arch-1 {
    width: 150vw;
    height: 150vw;
    left: 50%;
    animation-duration: 8s;
}

.arch-2 {
    width: 100vw;
    height: 100vw;
    left: 50%;
    animation-duration: 12;
    animation-delay: 2s;
}

@keyframes pulseArch {
    0% {
        transform: translateX(-50%) scale(1) translateY(0);
        opacity: 0.5;
    }

    100% {
        transform: translateX(-50%) scale(1.05) translateY(-50px);
        opacity: 1;
    }
}



/* 3. Grid Principal (Forzando 90%) */
.footer-grid {
    display: grid;
    /* Ajustamos el peso para balancear mejor el logo y el contacto */
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
    width: 90% !important;
    max-width: none !important;
    /* Le ponemos un tope elegante para que no se desparrame en pantallas ultra anchas */
    margin: 0 auto !important;
    /* Esto garantiza el centrado exacto */
    position: relative;
    z-index: 1;
    box-sizing: border-box !important;
}

/* 4. Logo y Textos */
.footer-logo img {
    height: 80px;
    /* Logo 2 veces más grande */
}

/* Títulos Amarillos en Poppins */
.footer-col h4 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 20px !important;
    /* De 18 a 20 */
    font-weight: 500;
    color: #FEC96D;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 16px;
    /* De 14 a 16 */
    color: rgba(246, 246, 246, 0.7);
}

.footer-links a {
    color: inherit;
    transition: color 0.3s ease;
    text-decoration: none;
    /* Quitamos subrayados por si acaso */
}

.footer-links a:hover {
    color: #FFFFFF;
    /* Hover Blanco */
}

.contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 16px;
    /* De 14 a 16 */
    color: rgba(246, 246, 246, 0.7);
    line-height: 1.6;
}

.contact-item i {
    color: #FEC96D;
    margin-top: 4px;
}

.email-stack a {
    color: rgba(246, 246, 246, 0.7);
    transition: color 0.3s;
    text-decoration: none;
}

.email-stack a:hover {
    color: #FFFFFF;
    /* Hover Blanco en correos */
}

/* 5. Copyright (Centrado, Poppins 18px Amarillo y 16px) */
.footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrado total */
    justify-content: center;
    text-align: center;
}

.copyright-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    color: #FEC96D !important;
    margin: 0 0 10px 0;
}

.credits p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    color: rgba(246, 246, 246, 0.6);
    margin: 0;
}

.credits a {
    color: #F6F6F6;
    text-decoration: underline;
    transition: color 0.3s;
}

.credits a:hover {
    color: #FEC96D;
}

/* 6. Responsive Móvil */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Colapsa a 1 columna */
        gap: 40px;
    }

    .hide-on-mobile {
        display: none;
        /* Oculta el título vacío en móvil para no generar espacios muertos */
    }

    .footer-bottom {
        padding: 30px 20px;
    }

    .copyright-text {
        font-size: 16px !important;
        /* Ajuste para que no rompa la pantalla en celular */
    }
}


/* =========================================
   TRANSLATION
   ========================================= */
html[lang="en"] .ar-text {
    display: none !important;
}

html[lang="ar"] .en-text {
    display: none !important;
}

h1.en-text,
h2.en-text,
h3.en-text {
    font-family: 'Abhaya Libre', serif !important;
}

p.en-text,
span.en-text,
a.en-text,
div.en-text {
    font-family: 'Poppins', sans-serif !important;
}

.ar-text {
    font-family: "greycliff-arabic-cf", sans-serif !important;
}

html[dir="rtl"] {
    text-align: right;
}

/* =========================================
   RESTO DE TU SITIO (Header, Hero, etc.)
   ========================================= */