/* ESTRUCTURA DE SECCIONES */
.avz-section {
    position: relative;
    width: 100%;
}

.avz-section-videos-ctas {
    padding: 0px 0px;
    position: relative;
    background: linear-gradient(to bottom, var(--slider-gradient-start) 0%, var(--slider-gradient-end) 93%, var(--section-descri-bg) 100%);
}

#Capa_1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 0;
}

.avz-logo-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    height: 75px;
    position: absolute;
    margin-left: 10%;
    width: auto;
    max-width: 40%;
    overflow: hidden;
    margin-top: 7px;
}

.avz-logo-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.avz-section-descri {
    background-color: var(--section-descri-bg);
    padding: 25px 50px;
}

.avz-texto-descri{
    font-size: 15px;
    line-height: 1.4;
    background-color: var(--container-descri-bg);
    padding: 25px 35px;
    border-radius: 10px;
    color: var(--text-color-descri);
    position: relative;
}

.avz-descri-flecha-izq {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 50px;
    background-color: var(--flecha-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.avz-descri-flecha-izq:hover {
    background-color: var(--flecha-bg);
}

.avz-descri-flecha-izq svg {
    width: 30px;
    height: 30px;
    color: var(--flecha-icon);
}

.avz-section-testimonios {
    padding: 50px 20px;
    background: linear-gradient(
        to bottom,
        var(--testimonio-bg-start) 0%,
        var(--testimonio-bg-end) 35%,
        var(--testimonio-bg-end) 100%
    );
    position: relative;
}
.avz-section-testimonios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 50%;
    border-left: 1px solid var(--testimonio-bg-start);
    border-right: 1px solid var(--testimonio-bg-start);
    border-bottom: 1px solid var(--testimonio-bg-start);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 0;
    pointer-events: none;
}

.avz-section-datos {
    background-color: var(--datos-bg);
    padding: 50px 20px;
    position: relative;
    z-index: 1;
}
.avz-datos-border {
    position: absolute;
    left: 15%;
    right: 15%;
    top: auto;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 0;
    pointer-events: none;
}

.avz-section-banner {
    background-color: var(--datos-bg);
    padding: 0;
}


/* 02. DESCRIPCIÓN CORTA */
.avz-descripcion-corta {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    height: 90px;
    display: flex;
    width: 100%;
    justify-content: flex-end;
}
.avz-descripcion-corta .avz-text-descrip {
    border: 1px solid var(--slider-gradient-end);
    margin-top: 30px;
    width: 41%;
    margin-right: 25px;
    border-radius: 10px;
    color: var(--slider-arrow-color);
    font-size: 12px;
    text-align: left;
    padding: 2px 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}
.avz-descripcion-flecha-izq {
    background: none;
    border: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    transition: opacity 0.3s;
    z-index: 10;
    padding: 0;
}
.avz-descripcion-flecha-izq svg {
    width: 50px;
    height: 65px;
    fill: var(--slider-arrow-color);
}

/* 03-04. SLIDER DE VIDEOS CON FONDO DEGRADADO */
.avz-slider-videos {
    padding: 50px 20px;
    position: relative;
    margin-bottom: 0px;
}

.avz-slider-videos-content {
    width: 100%;
    margin: auto;
    position: relative;
    padding: 0 80px;
}
.avz-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    -webkit-box-shadow: 0px 20px 25px -10px rgba(0,0,0,0.6);
    box-shadow: 0px 20px 25px -10px rgba(0,0,0,0.6);
}
.avz-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.avz-video-slide { 
    outline: none;
    display: none;
}
.avz-video-slide:first-child {
    display: block;
}

/* Estilos Owl Carousel */
.avz-videos-owl {
    position: relative;
    -webkit-box-shadow: 0px 20px 30px -5px rgba(0,0,0,0.8);
    box-shadow: 0px 20px 30px -5px rgba(0,0,0,0.8);
    border-radius: 20px;
}
.avz-videos-owl .owl-stage-outer {
    overflow: hidden;
    border-radius: 20px;
}
.avz-videos-owl .owl-nav {
    position: static;
}
.avz-videos-owl .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    transition: opacity 0.3s;
    z-index: 100;
    pointer-events: auto;
}
.avz-videos-owl .owl-nav button.owl-prev {
    left: -70px;
}
.avz-videos-owl .owl-nav button.owl-next {
    right: -70px;
}
.avz-videos-owl .owl-nav button:hover {
    opacity: 0.7;
}
.avz-videos-owl .owl-nav button svg {
    width: 70px;
    height: 70px;
    fill: var(--slider-arrow-color);
}
.avz-videos-owl .owl-nav button span {
    display: none;
}

/* 05-06. CTA 1 y CTA 2 */
.avz-ctas-row {
    display: flex;
    gap: 20px;
    padding-right: 30px;
    padding-left: 30px;
}
.avz-cta-item {
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    flex: 1;
}
.avz-cta-item img {
    height: 100%;
    object-fit: cover;
}
.avz-cta-content {
    flex: 1;
    padding: 30px 5px 30px 5px;
    display: flex;
    align-items: center;
}
.avz-cta-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    padding-left: 10px;
}
.avz-cta-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 5px;
    transition: transform 0.3s;
}
.avz-cta-item:hover .avz-cta-arrow {
    transform: translateX(5px);
}
.avz-cta-arrow svg {
    width: 20px;
    height: 20px;
    fill: var(--slider-gradient-end);
}

/* 10. BLOQUE CTA (CTA 3 y CTA 4) */
.avz-bloque-cta-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
    width: 100%;
    min-height: 80px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.avz-bloque-cta-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.avz-bloque-cta-arrow {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--flecha-bg);
    flex-shrink: 0;
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    z-index: 2;
}
.avz-bloque-cta-arrow svg {
    width: 30px;
    height: 30px;
    fill: var(--flecha-icon);
}
.avz-bloque-cta-contenido {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 auto;
    padding-left: 110px;
    z-index: 2;
}
.avz-bloque-cta-texto-box {
    border-radius: 10px;
    padding: 15px 20px 15px 50px;
    position: relative;
    text-decoration: none;
}
.avz-bloque-cta-icon {
    width: 50px;
    height: 50px;
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}
.avz-bloque-cta-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.avz-bloque-cta-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

/* 11. BLOQUE TESTIMONIOS */
.avz-testimonios-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
}
.avz-testimonios-slider {
    position: relative;
}
.avz-testimonios-owl {
    opacity: 0;
    transition: opacity 0.3s;
}
.avz-testimonios-owl.owl-loaded {
    opacity: 1;
}
.avz-testimonios-owl .owl-stage-outer {
    padding: 15px 0;
}
.avz-testimonios-owl .owl-nav {
    position: static;
}
.avz-testimonios-owl .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.avz-testimonios-owl .owl-nav button.owl-prev {
    left: -90px;
    border-radius: 25px;
}
.avz-testimonios-owl .owl-nav button.owl-next {
    right: -90px;
    border-radius: 25px;
}
.avz-testimonios-owl .owl-nav button:hover {
    opacity: 0.8;
}
.avz-testimonios-owl .owl-nav button svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}
.avz-testimonios-owl .owl-nav button span {
    display: none;
}
.avz-testimonio-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 250px;
    outline: none;
    padding-bottom: 20px;
    justify-content: flex-end;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    position: relative;
    overflow: hidden;
}
.avz-testimonio-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, var(--testimonio-bg-tarjetas) 0%, transparent 65%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.avz-testimonio-item:hover {
    filter: grayscale(0%);
}
.avz-testimonio-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: transparent;
    border: 3px solid var(--testimonio-bg-tarjetas);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 2;
}
.avz-testimonio-item:hover .avz-testimonio-play {
    border-color: var(--testimonio-bg-tarjetas);
    opacity: 0.9;
}
.avz-testimonio-play svg {
    width: 30px;
    height: 30px;
    fill: var(--testimonio-bg-tarjetas);
}
.avz-testimonio-nombre {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}
.avz-testimonio-cargo {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    position: relative;
    z-index: 2;
}

/* 12. BLOQUE DATOS */
.avz-datos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}
.avz-dato-item {
    flex: 0 0 calc(25% - 15px);
    width: 220px;
    height: 220px;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0px 8px 5px rgba(0, 0, 0, 0.6));
}
.avz-dato-item svg {
    width: 100%;
    height: 100%;
}
.avz-dato-contenido {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.avz-dato-icono {
    width: 80px;
    height: 80px;
    margin: 0px auto 10px;
    padding-bottom: 0px;
    border-bottom: 2px solid currentColor;
}
.avz-dato-icono img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.avz-dato-campo2 {
    font-size: 22px;
    font-weight: 700;
}
.avz-dato-campo1 {
    font-size: 22px;
}

/* 13-14. BANNERS ESTÁTICOS */
.avz-banner {
    width: 100%;
}
.avz-banner img {
    width: 100%;
    height: auto;
    display: block;
}
.avz-banner-desktop {
    display: block;
}
.avz-banner-mobile {
    display: none;
}

/* MODAL VIDEO */
.avz-modal-video {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.avz-modal-video.active {
    display: flex;
}
.avz-modal-content {
    width: 90%;
    max-width: 900px;
    position: relative;
}
.avz-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}
.avz-modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.avz-modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .avz-ctas-row {
        flex-direction: column;
        margin-top: -20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .avz-testimonio-item {
        flex: 0 0 calc(50% - 10px);
    }
    .avz-dato-item {
        flex: 0 0 calc(50% - 10px);
    }
}

/* Ocultar/mostrar grids de datos según resolución */
@media (max-width: 767px) {
    .avz-datos-grid-desktop {
        display: none !important;
    }
    .avz-datos-grid-mobile {
        display: block !important;
    }

     /* Datos - Slider en móvil */
    .avz-section-datos {
        padding: 30px 0 10px 0;
    }
    .avz-datos-border {
        top: -15px !important;
    }
    .avz-datos-grid-desktop {
        display: none !important;
    }
    .avz-datos-grid-mobile {
        padding: 0 60px;
        margin-bottom: 30px;
        position: relative;
    }
    .avz-datos-grid-mobile .owl-nav {
        position: static;
    }
    .avz-datos-grid-mobile .owl-nav button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        outline: none;
        transition: all 0.3s ease;
        z-index: 10;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--flecha-bg) !important;
    }
    .avz-datos-grid-mobile .owl-nav button.owl-prev {
        left: 2px;
    }
    .avz-datos-grid-mobile .owl-nav button.owl-next {
        right: 2px;
    }
    .avz-datos-grid-mobile .owl-nav button:hover {
        opacity: 0.8;
    }
    .avz-datos-grid-mobile .owl-nav button svg {
        width: 24px;
        height: 24px;
        fill: var(--flecha-icon);
    }
    .avz-datos-grid-mobile .owl-nav button span {
        display: none;
    }
    .avz-datos-grid-mobile .avz-dato-item {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .avz-datos-grid-mobile {
        display: none !important;
    }
    .avz-datos-grid-desktop {
        display: flex !important;
    }
}

@media (max-width: 992px) {
    .avz-cta-content{
        width: 50%;
    }
     /* CTA 1 y 2 - imagen izquierda, texto derecha */
    .avz-cta-item {
        flex-direction: row;
    }
    .avz-cta-item img {
        height: 130px;
        width: auto;
        min-width: 40%;
        object-fit: contain;
    }
}

@media (max-width: 576px) {
    /* Slider video - ancho completo con dots abajo */
    .avz-slider-videos {
        padding: 30px 0;
        padding-bottom: 60px;
        position: relative;
    }
    .avz-slider-videos-content {
        padding: 0;
    }
    .avz-videos-owl {
        margin-bottom: 0;
    }
    .avz-videos-owl .owl-nav {
        display: none;
    }
    .avz-videos-owl .owl-dots {
        display: block;
        text-align: center;
        position: absolute;
        bottom: -45px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0;
    }
    .avz-videos-owl .owl-dots .owl-dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 5px;
        background: rgba(255,255,255,0.3);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s;
    }
    .avz-videos-owl .owl-dots .owl-dot.active {
        background: var(--slider-arrow-color);
        width: 12px;
        height: 12px;
    }
    .avz-videos-owl .owl-dots .owl-dot span {
        display: none;
    }
    
   .avz-cta-item img {
        height: 100px;
   }
    
    /* Descripción - menos padding lateral y flecha más pequeña */
    .avz-section-descri {
        padding: 25px 15px;
    }
    .avz-texto-descri {
        padding: 20px 15px;
    }
    .avz-descri-flecha-izq {
        left: -15px;
        width: 30px;
        height: 40px;
    }
    .avz-descri-flecha-izq svg {
        width: 20px;
        height: 20px;
    }
    
    /* Reducción de font-sizes */
    .avz-cta-text {
        font-size: 13px;
    }
    .avz-bloque-cta-text {
        font-size: 13px;
    }
    .avz-bloque-cta-texto-box {
        padding: 10px 15px 10px 40px;
    }
    .avz-testimonio-nombre {
        font-size: 13px;
    }
    .avz-dato-campo1,
    .avz-dato-campo2 {
        font-size: 16px;
    }
    
    /* CTA 3 y 4 - quitar espacio izquierdo de flecha */
    .avz-bloque-cta-item {
        padding: 20px 20px 20px 0;
    }
    .avz-bloque-cta-arrow {
        left: 0;
    }
    .avz-bloque-cta-contenido {
        padding-left: 75px;
    }
    
    /* Testimonios - tarjetas más grandes */
    .avz-testimonios-container {
        max-width: 500px;
        padding: 0 60px;
    }
    .avz-testimonio-item {
        flex: 0 0 100%;
        height: 280px;
    }
    .avz-testimonios-owl .owl-item.active .avz-testimonio-item {
        filter: grayscale(0%);
    }
    
   
       
    .avz-logo-imagen {
        margin-left: 5%;
        height: auto;
        max-width: 40%;
        margin-top: 5%;
    }

    #Capa_1 {
        height: 70px;
    }

    .avz-descripcion-corta{
        height: 75px;
        line-height: 1.4;
        font-size: 12px;
    }
    
    .avz-descripcion-corta .avz-text-descrip {
        margin-right: 10px;
        font-size: 12px;
        -webkit-line-clamp: 3;
        width: 45%;
        margin-top: 20px;
        padding: 2px 5px;
    }
    
    .avz-descripcion-flecha-izq {
        left: -50px;
    }
    
    .avz-descripcion-flecha-izq svg {
        width: 50px;
        height: 50px;
    }
}