@font-face {
    font-family: 'NewYork';
    /* Nombre que usaremos en el slider */
    src: url('https://cotte.webcreativa.us/wp-content/uploads/2025/08/NewYork.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir LT Std 65 Medium';
    src: url('https://cotte.webcreativa.us/wp-content/uploads/2025/08/Avenir-LT-Std-65-Medium.woff2') format('woff2');
    /* Revisa el nombre/extensión real del archivo */
    font-weight: 600;
    /* Medium suele ser 500 o 600 */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'avenir-regular';
    src: url('https://cotte.webcreativa.us/wp-content/uploads/2025/08/avenir-regular.woff2') format('woff2');
    font-weight: 400;
    /* Regular es 400 */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'avenir-next-regular';
    src: url('https://cotte.webcreativa.us/wp-content/uploads/2025/08/avenir-next-regular.woff2') format('woff2');
    font-weight: 400;
    /* Regular es 400 */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'avenir-next-bold';
    src: url('https://cotte.webcreativa.us/wp-content/uploads/2025/09/avenir-next-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* Header fijo */
header.elementor-header,
.elementor-location-header {
    position: absolute;
    top: 2.5em;
    left: 0;
    width: 100%;
    z-index: 9999;
}


#header-movil {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 9999;
}


.text p {
    margin: 0;
    padding: 0;
}

/* Botón animado */
.animated-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease-in-out;
    background-color: #FFFFFF !important;
    width: 189px;
    border-radius: 30px;
    min-height: 45px;
}

.animated-button .elementor-button-text {
    position: relative;
    z-index: 2;
    color: #333333;
    transition: color 0.4s ease-in-out;
}

.animated-button::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    width: 37px;
    height: 37px;
    background-color: #D7CFA8;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover::before {
    width: 120px;
    height: 200px;
    bottom: -100px;
    transform: translateX(-50%);
}

/* Our experience */
.char-text {
    font-weight: bold;
    color: #D8C8B6 !important;
}

.char-text span {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    font-family: 'avenir-next-bold';
    transform: translateY(20px) translateX(-20px);
    color: #D8C8B6 !important;
}

.char-span {
    color: #D8C8B6 !important;
    font-size: 16px !important;
    font-family: 'avenir-next-bold' !important;
}

/* Blogs */
.boton-compartir {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    text-decoration: none;
    background: transparent;
}

.boton-compartir img {
    margin-right: 8px;
    width: 19px;
    height: auto;
}

.boton-compartir:hover {
    background-color: transparent !important;
}

.elementor-pagination .page-numbers.current {
    background-color: #001C4A;
    border-radius: 2px;
    padding: 4px 10px;
}

/* Contact */
#submit-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease-in-out;
    background-color: #FFFFFF !important;
    width: 179px;
    border-radius: 30px;
    min-height: 45px;
}

#submit-button .elementor-button-text {
    position: relative;
    z-index: 2;
    color: #333333;
    transition: color 0.4s ease-in-out;
}

#submit-button::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    width: 37px;
    height: 37px;
    background-color: #D7CFA8;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#submit-button:hover::before {
    width: 120px;
    height: 200px;
    bottom: -100px;
    transform: translateX(-50%);
}


#submit-button-form {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease-in-out;
    background-color: #FFFFFF !important;
    width: 179px;
    border-radius: 30px;
    min-height: 45px;
}

#submit-button-form .elementor-button-text {
    position: relative;
    z-index: 2;
    color: #333333;
    transition: color 0.4s ease-in-out;
}

#submit-button-form::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    width: 37px;
    height: 37px;
    background-color: #D7CFA8;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#submit-button-form:hover::before {
    width: 120px;
    height: 200px;
    bottom: -100px;
    transform: translateX(-50%);
}

.elementor-502 .elementor-element.elementor-element-fd7473d .elementor-field-group .elementor-field:not(.elementor-select-wrapper) {
    text-align: center;
}

#custom-touch-cursor {
    /* El elemento siempre existe, pero empieza invisible y no interactivo */
    display: block;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    background-color: rgba(215, 207, 168, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

.sr7-module .sr7-layer,
.sr7-module .sr7-layer {
    font-family: 'Avenir LT Std 65 Medium' !important;
}

#contact-form .elementor-form-fields-wrapper.elementor-labels-above .elementor-field-group .elementor-field-subgroup,
.elementor-form-fields-wrapper.elementor-labels-above .elementor-field-group>.elementor-select-wrapper,
.elementor-form-fields-wrapper.elementor-labels-above .elementor-field-group>input,
.elementor-form-fields-wrapper.elementor-labels-above .elementor-field-group>textarea {
    text-align: left !important;
}

.elementor-form-fields-wrapper.elementor-labels-above .elementor-field-group .elementor-field-subgroup,
.elementor-form-fields-wrapper.elementor-labels-above .elementor-field-group>.elementor-select-wrapper,
.elementor-form-fields-wrapper.elementor-labels-above .elementor-field-group>input,
.elementor-form-fields-wrapper.elementor-labels-above .elementor-field-group>textarea {
    text-align: center;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
}

.expanding-box {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.expanding-box .hidden-button {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.2s, height 0.4s ease;
    order: 2;
}

.info-card:hover .expanding-box {
    padding-top: 10px;
    padding-bottom: 10px;
    transform: translateY(-5px);
}

.info-card:hover .expanding-box .hidden-button {
    opacity: 1;
    height: 20px;
}

.expanding-box-alt {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: bottom center;
}

.expanding-box-alt .hidden-button {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.2s, height 0.4s ease;
    position: relative;
}

.info-card:hover .expanding-box-alt {
    transform: translateY(-10px) scaleY(1.1);
}

.info-card:hover .expanding-box-alt .hidden-button {
    opacity: 1;
    height: 20px;
}



/* Estilos para el botón flotante principal */
.floating-button {
    position: fixed;
    bottom: 20%;
    right: 20px;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.floating-button:hover {
    transform: scale(1.05);
}

.floating-button img {
    width: 64px;
    height: 64px;
}

/* Estilos para la barra de menú desplegable */
.floating-menu-bar {
    position: fixed;
    bottom: calc(20% + 56px + 10px);
    right: 20px;
    width: 60px;
    background-color: #000;
    border-radius: 8px;
    padding: 5px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    /* Para la animación de despliegue hacia arriba */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Estado activo de la barra de menú */
.floating-menu-bar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Estilos para el contenedor de todos los ítems del menú */
.floating-menu-content {
    display: flex;
    flex-direction: column;
    /* Iconos y textos en bloque (vertical) */
    gap: 7px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Estilos para cada ítem del menú dentro de la barra */
.floating-menu-item {
    width: 100%;
}

.floating-menu-item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 2px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
    text-align: center;
    height: auto;
}

.floating-menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Ligero fondo al pasar el ratón */
}

.floating-menu-icon {
    margin-right: 0;
    margin-bottom: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-menu-icon img {
    width: 50px;
    height: 50px;
}

.floating-menu-text {
    font-size: 16px;
    white-space: normal;
    font-family: 'avenir-regular';
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 60px;
}


/* ==============================================
   ATTORNEYS GRID - STYLES
   Basado en el diseño de Figma
   ============================================== */

.attorneys-grid-container {
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
    position: relative;
}

.attorneys-grid-wrapper {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.attorneys-grid-wrapper::-webkit-scrollbar {
    display: none;
}

/* ==============================================
   ATTORNEY ITEM CONTAINER
   ============================================== */

.attorney-item {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
    outline: none;
}

/* Estado de focus para accesibilidad */
.attorney-item:focus {
    outline: 2px solid rgba(0, 28, 74, 0.5);
    outline-offset: 2px;
}

/* ==============================================
   IMAGE BACKGROUND CONTAINER
   ============================================== */

.attorney-image-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Agregar un overlay adicional para mejor legibilidad del texto */
.attorney-image-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: 1;
}

.attorney-image-bg>* {
    position: relative;
    z-index: 2;
}

/* ==============================================
   DESKTOP STATES
   ============================================== */

/* Primer attorney - Expandido por defecto */
.attorney-item:first-child .attorney-image-bg {
    width: 291px;
    height: 329px;
    background-image: linear-gradient(180deg, rgba(0, 28, 74, 0) 0%, rgba(0, 28, 74, 1) 100%);
}

/* Otros attorneys - Colapsados por defecto */
.attorney-item:not(:first-child) .attorney-image-bg {
    width: 188px;
    height: 329px;
    background-image: linear-gradient(180deg, rgba(0, 28, 74, 0) 0%, rgba(0, 28, 74, 1) 100%);
    display: flex;
    justify-content: center;
}

/* Estado expandido para cualquier attorney */
.attorney-item.expanded .attorney-image-bg {
    width: 291px;
    height: 329px;
}

/* NUEVO: Estado colapsado para el primer attorney cuando pierde el foco */
.attorney-item:first-child:not(.expanded) .attorney-image-bg {
    width: 188px;
    height: 329px;
    display: flex;
    justify-content: center;
}

/* ==============================================
   TÍTULOS
   ============================================== */

/* Título colapsado - Solo visible cuando NO está expandido */
.attorney-title-collapsed {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Ocultar título colapsado en estados expandidos */
.attorney-item.expanded .attorney-title-collapsed {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Mostrar título colapsado en estados colapsados (INCLUIDO EL PRIMERO) */
.attorney-item:not(.expanded) .attorney-title-collapsed {
    opacity: 1;
    max-height: 60px;
    transform: translateY(0);
    color: #D8C8B6;
    font-size: 18px;
    font-family: 'Avenir LT Std 65 Medium';
    font-weight: 500;
    text-align: center;
}

/* ==============================================
   CONTENIDO EXPANDIDO
   ============================================== */

.attorney-content-expanded {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estados de visibilidad del contenido expandido */
.attorney-item.expanded .attorney-content-expanded {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    visibility: visible;
}

/* ACTUALIZADO: Solo expandido cuando tiene la clase expanded */
.attorney-item:not(.expanded) .attorney-content-expanded {
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    visibility: hidden;
}

/* ==============================================
   TÍTULO EXPANDIDO
   ============================================== */

.attorney-title-expanded {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    transition: opacity 0.3s ease 0.1s;
}

.attorney-item.expanded .attorney-title-expanded {
    opacity: 1;
    font-family: 'avenir-next-heavy';
    font-weight: 900;
    line-height: 24px;
    font-size: 16px;
    color: #D8C8B6;
}

.attorney-item:not(.expanded) .attorney-title-expanded {
    opacity: 0;
}

/* ==============================================
   DESCRIPCIÓN
   ============================================== */

.attorney-description {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.attorney-description p {
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-family: 'avenir-regular';
    font-size: 15px;
    line-height: 17px;
    color: #D8C8B6;
}

/* ==============================================
   BOTÓN SEE MORE
   ============================================== */

.attorney-see-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Raleway';
    color: #333;
    transition: all 0.3s ease;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.attorney-see-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.3s ease;
    z-index: 1;
}

.attorney-see-more-btn span {
    position: relative;
    z-index: 2;
}

.attorney-see-more-btn:hover::before {
    left: 0;
}

.attorney-see-more-btn:hover {
    color: #001C4A;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   HOVER EFFECTS
   ============================================== */

.attorney-item:not(.expanded):hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.attorney-item:not(.expanded):hover .attorney-image-bg {
    transform: scale(1.02);
}

/* Efecto de hover en el título colapsado */
.attorney-item:not(.expanded):hover .attorney-title-collapsed {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* ==============================================
   LOADING STATES Y TRANSICIONES
   ============================================== */

.attorney-item.loading {
    pointer-events: none;
    opacity: 0.7;
}

.attorney-item.animating {
    pointer-events: none;
}

/* ==============================================
   RESPONSIVE - TABLET
   ============================================== */

@media (max-width: 1024px) and (min-width: 769px) {

    .attorney-item.expanded .attorney-image-bg {
        width: 250px;
    }

    .attorney-item:not(.expanded) .attorney-image-bg {
        width: 160px;
    }

    .attorney-content-expanded {
        padding: 15px;
    }

    .attorney-title-expanded {
        font-size: 18px;
    }

    .attorney-item.expanded .attorney-content-expanded {
        position: absolute !important;
        bottom: 0;
        left: 0;
        width: 100% !important;
        z-index: 2;
        padding: 10px;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 200px !important;
        transition: all 0.3s ease-in-out;
    }

    .attorney-item:not(.expanded) .attorney-content-expanded {
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden;
    }

    .attorney-item:not(.expanded) .attorney-image-bg {
        justify-content: flex-start !important;
        align-items: center;
    }

    .attorney-item:not(.expanded) .attorney-title-collapsed {
        text-align: left !important;
    }
}

/* ==============================================
   RESPONSIVE - MOBILE
   ============================================== */

@media (max-width: 768px) {
    .background-container {
        background-color: transparent !important;
    }

    .floating-button {
        display: none;
    }
    
    .attorneys-grid-container {
        margin: 20px 0;
    }

    .attorneys-grid-wrapper {
        flex-direction: column; /* Rejilla de una columna */
        overflow-x: hidden;
        overflow-y: visible;
        gap: 0;
    }

    /* ==============================================
       ESTRUCTURA BASE DE ITEMS
       ============================================== */
    
    .attorney-item {
        width: 100%;
        flex-shrink: 1; /* Permite que el item se encoja si es necesario */
        position: relative; /* Necesario para el positioning absolute del contenido expandido */
        margin: 0; /* Sin márgenes */
        padding: 0; /* Sin padding */
        border: none; /* Sin bordes */
    }

    /* ==============================================
       IMÁGENES DE FONDO
       ============================================== */
    
    .attorney-item .attorney-image-bg {
        width: 100% !important;
        height: 115px !important; /* Mantener tu altura preferida */
        background-image: linear-gradient(90deg, rgba(0, 28, 74, 0) 0%, rgba(0, 28, 74, 1) 100%);
        background-size: cover;
        background-position: center center;
        align-items: center; /* Centrado vertical */
        justify-content: flex-start !important; /* Alineado a la izquierda */
        display: flex;
        margin: 0;
        padding: 20px;
    }

    /* Estados expandidos en mobile */
    .attorney-item.expanded .attorney-image-bg {
        height: 166px !important;
        align-items: flex-end; /* Para el contenido expandido */
        justify-content: flex-start;
    }

    /* ==============================================
       CONTENIDO EXPANDIDO - SOLUCIÓN PRINCIPAL
       ============================================== */
    
    .attorney-content-expanded {
        position: absolute !important; /* SIEMPRE absolute para no ocupar espacio */
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px 20px;
        text-align: left;
        border-top: none;
        margin: 0;
        z-index: 5;
    }

    /* Estado VISIBLE (expandido) */
    .attorney-item.expanded .attorney-content-expanded {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 180px !important;
        z-index: 10;
    }

    /* Estado OCULTO (colapsado) */
    .attorney-item:not(.expanded) .attorney-content-expanded {
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
        pointer-events: none; /* Evita interacciones cuando está oculto */
    }

    /* ==============================================
       ELEMENTOS DE CONTENIDO
       ============================================== */
    
    .attorney-title-expanded {
        font-size: 18px;
        margin: 0 0 8px 0;
        text-align: left;
    }

    .attorney-description {
        font-size: 13px;
        margin: 0 0 12px 0;
        text-align: left;
    }

    .attorney-see-more-btn {
        font-size: 11px;
        padding: 6px 14px;
        margin: 0;
    }

    /* ==============================================
       TÍTULO COLAPSADO
       ============================================== */
    
    .attorney-item:not(.expanded) .attorney-title-collapsed {
        text-align: left !important;
        font-size: 16px;
        line-height: 1.2;
        margin: 0;
        white-space: normal; /* Permitir que el texto se ajuste */
        max-width: 200px; /* Limitar ancho para evitar overflow */
        color: #D8C8B6;
        font-family: 'Avenir LT Std 65 Medium';
        font-weight: 500;
    }

    /* ==============================================
       ELIMINAR EFECTOS DE HOVER
       ============================================== */
    
    .attorney-item:hover {
        transform: none;
        filter: none;
    }

    .attorney-item:hover .attorney-image-bg {
        transform: none;
    }

    /* ==============================================
       ESTADOS ESPECIALES
       ============================================== */
    
    /* Item expandido: asegurar posición correcta */
    .attorney-item.expanded {
        z-index: 15;
        position: relative;
    }

    /* ==============================================
       RESETEO ADICIONAL
       ============================================== */
    
    .attorney-item,
    .attorney-item * {
        box-sizing: border-box;
    }
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */

@media (prefers-reduced-motion: reduce) {

    .attorney-item,
    .attorney-image-bg,
    .attorney-title-collapsed,
    .attorney-content-expanded,
    .attorney-title-expanded,
    .attorney-see-more-btn {
        transition: none;
    }

    .attorneys-grid-wrapper {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .attorney-content-expanded {
        border: 2px solid white;
    }

    .attorney-see-more-btn {
        border-width: 2px;
    }
}

/* ==============================================
   PRINT STYLES
   ============================================== */

@media print {
    .attorneys-grid-wrapper {
        flex-direction: column;
        overflow: visible;
    }

    .attorney-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }

    .attorney-content-expanded {
        position: relative;
        opacity: 1 !important;
        max-height: none !important;
        transform: none !important;
        display: block;
    }

    .attorney-see-more-btn {
        display: none;
    }
}

.attorney-item.expanded .attorney-content-expanded {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    position: absolute !important;
    z-index: 999;
    width: 260px;
    border: none;
}




.custom-mega-menu-wrapper {
    position: relative;
    z-index: 1000;
    font-family: 'Avenir LT Std 65 Medium'; /* Aplicar a todo el menú */
    /* NUEVO: Altura fija pequeña para mostrar solo ~5 ítems */
    height: 280px; /* Altura fija para mostrar aproximadamente 5 ítems */
    overflow-y: auto; /* Scroll vertical siempre disponible */
    overflow-x: hidden; /* Sin scroll horizontal */
    border: 1px solid rgba(216, 200, 182, 0.2); /* Borde sutil opcional */
    border-radius: 8px; /* Bordes redondeados opcionales */
}

/* NUEVO: Scrollbar personalizado - más visible para caja fija */
.custom-mega-menu-wrapper::-webkit-scrollbar {
    width: 8px; /* Más ancho para mejor visibilidad */
}

.custom-mega-menu-wrapper::-webkit-scrollbar-track {
    background: rgba(216, 200, 182, 0.15);
    border-radius: 4px;
}

.custom-mega-menu-wrapper::-webkit-scrollbar-thumb {
    background: rgba(216, 200, 182, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(216, 200, 182, 0.3);
}

.custom-mega-menu-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(216, 200, 182, 0.8);
}

.custom-mega-menu-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-mega-menu-wrapper > ul { /* Nivel superior: los ítems principales se apilan verticalmente */
    display: flex;
    flex-direction: column;
    /* NUEVO: Padding para dar espacio interno y al scrollbar */
    padding: 10px 15px 10px 10px; /* top, right, bottom, left */
    margin: 0; /* Sin margen externo */
}

/* MEJORADO: Menús padre más destacados - Ajustado para caja fija */
.custom-mega-menu-wrapper > ul > li {
    position: relative;
    padding: 12px 20px; /* Padding más compacto */
    font-size: 20px; /* Tamaño más grande para menús padre */
    font-weight: bold; /* Texto en negrita para menús padre */
    color: #D8C8B6;
    margin-bottom: 3px; /* Menos espacio entre elementos para aprovechar altura */
}

/* MEJORADO: Enlaces de menús padre más destacados */
.custom-mega-menu-wrapper > ul > li > a {
    text-decoration: none;
    color: inherit; 
    display: inline-block;
    position: relative; 
    padding-right: 35px;
    font-size: 16px; /* Coincide con el li padre */
    font-weight: bold; /* Negrita para enlaces padre */
    letter-spacing: 0.5px; /* Espaciado de letras para elegancia */
}

/* Enlaces de submenús (mantener estilo original) */
.custom-mega-menu-wrapper ul ul li a {
    text-decoration: none;
    color: inherit; 
    display: inline-block;
    position: relative; 
    padding-right: 35px;
    font-size: 15px; /* Ligeramente más pequeño que el original */
    font-weight: normal; /* Peso normal para submenús */
    text-transform: none; /* Sin mayúsculas para submenús */
    letter-spacing: normal; /* Espaciado normal */
}

/* Todos los submenús (incluyendo sub-submenús) */
.custom-mega-menu-wrapper ul ul {
    display: none; 
    position: relative;
    min-width: 200px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 25px; /* Más indentación para mayor jerarquía visual */
    padding-top: 10px;
    margin-top: 8px; /* Separación del elemento padre */
}

/* NUEVO: Altura máxima para submenús muy largos */
.custom-mega-menu-wrapper ul ul {
    max-height: 300px; /* Altura máxima para submenús */
    overflow-y: auto; /* Scroll para submenús largos */
}

/* NUEVO: Scrollbar personalizado para submenús */
.custom-mega-menu-wrapper ul ul::-webkit-scrollbar {
    width: 4px;
}

.custom-mega-menu-wrapper ul ul::-webkit-scrollbar-track {
    background: rgba(216, 200, 182, 0.05);
    border-radius: 2px;
}

.custom-mega-menu-wrapper ul ul::-webkit-scrollbar-thumb {
    background: rgba(216, 200, 182, 0.3);
    border-radius: 2px;
}

.custom-mega-menu-wrapper ul ul::-webkit-scrollbar-thumb:hover {
    background: rgba(216, 200, 182, 0.5);
}

/* Estilos para los ítems dentro de los submenús */
.custom-mega-menu-wrapper ul ul li {
    padding: 6px 0; /* Ligeramente menos padding que antes */
    white-space: normal;
    font-size: 16px; /* Más pequeño que los padres */
    font-weight: normal; /* Peso normal */
    color: rgba(216, 200, 182, 0.9); /* Color ligeramente más tenue */
    border-bottom: none; /* Sin líneas en submenús */
    margin-bottom: 0; /* Sin margen en submenús */
}

/* Toggle más grande para menús padre */
.custom-mega-menu-wrapper > ul > li .custom-mega-menu-dropdown-toggle {
    position: absolute;
    right: 8px; 
    top: 50%;
    transform: translateY(-50%);
    width: 18px; /* Más grande para menús padre */
    height: 18px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Toggle normal para submenús */
.custom-mega-menu-dropdown-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Icono por defecto (cerrado) */
.custom-mega-menu-dropdown-toggle {
    background-image: url('/wp-content/uploads/2025/09/bottom-chevron.svg');
}

/* Icono cuando el submenú está abierto */
.custom-mega-menu-dropdown-toggle.active {
    background-image: url('/wp-content/uploads/2025/09/icon-top-chevron.svg');
}

/* NUEVO: Efecto hover para menús padre */
.custom-mega-menu-wrapper > ul > li:hover {
    background-color: rgba(216, 200, 182, 0.1); /* Fondo sutil al hover */
    transition: background-color 0.2s ease; /* Transición suave */
}

/* NUEVO: Efecto hover para submenús */
.custom-mega-menu-wrapper ul ul li:hover {
    color: #ffffff; /* Color más brillante al hover en submenús */
    transition: color 0.2s ease; /* Transición suave */
}

/* NUEVO: Indicador visual de más contenido disponible */
.custom-mega-menu-wrapper::after {
    content: '';
    position: sticky;
    bottom: 0;
    height: 15px;
    background: linear-gradient(transparent, rgba(216, 200, 182, 0.1));
    pointer-events: none;
    opacity: 1; /* Siempre visible para indicar que hay scroll */
    transition: opacity 0.3s ease;
}

/* NUEVO: Indicador superior cuando no estás en el top */
.custom-mega-menu-wrapper::before {
    content: '';
    position: sticky;
    top: 0;
    height: 15px;
    background: linear-gradient(rgba(216, 200, 182, 0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* NUEVO: Mostrar indicador superior cuando hay scroll hacia arriba */
.custom-mega-menu-wrapper.scrolled::before {
    opacity: 1;
}

/* NUEVO: Responsive - Ajustar altura para diferentes pantallas */
@media (max-width: 768px) {
    .custom-mega-menu-wrapper {
        height: 240px; /* Menor altura en móviles */
    }
    
    .custom-mega-menu-wrapper ul ul {
        max-height: 180px; /* Submenús más pequeños en móviles */
    }
}

@media (max-width: 480px) {
    .custom-mega-menu-wrapper {
        height: 200px; /* Aún menor en pantallas muy pequeñas */
    }
    
    .custom-mega-menu-wrapper > ul > li {
        padding: 10px 15px; /* Padding más compacto en móviles */
        font-size: 18px; /* Texto ligeramente más pequeño */
    }
}

/* Testimonials */
.container-img {
	position: relative;
}

.container-img img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	
}
.container-cont {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 0 1em;
	box-sizing: border-box;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}