/*
Theme Name: CDD
Theme URI: 
Author: virkapp
Author URI: https://virkapp.com
Description:
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cdd
Tags: cdd
*/

@font-face {
    font-family: 'Delfino';
    src: url('fonts/Delfino/Delfino-Normal.woff2') format('woff2'),
         url('fonts/Delfino/Delfino-Normal.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Delfino';
    src: url('fonts/Delfino/Delfino-Bold.woff2') format('woff2'),
         url('fonts/Delfino/Delfino-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}



:root {
  --primary-font: "Delfino", sans-serif;
  --text-color: #173432;
  --orange-color: #EC714D;
  --green: #0da34e;
  --white: #fff;
  --black: #111;
  --gray-layer: rgba(0, 0, 0, 0.03);
}

/* Tipografía base */
body {
  font-family: var(--primary-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  position: relative;
  color: var(--text-color);
}

/* Headers */
h1 {
  font-family: "Delfino", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 70px;
  letter-spacing: 0;
  text-align: center;
}

h2 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}

h3 {
  font-family: "Delfino", sans-serif;
  font-weight: 500;
  font-style: Medium;
  font-size: 42px;
  leading-trim: NONE;
  line-height: 60px;
  letter-spacing: 0%;
  text-align: center;
}
.margin-s-top{
  margin-top: 120px;
}
.margin-section-b{
  margin-bottom: 140px;
}
.margin-section-t{
  margin-top: 300px;
}
.sectionbanner{
 background: url('./images/photohead.webp') no-repeat center top;
  background-size: contain;  /* asegura proporción */
  width: 100%;
  aspect-ratio: 1440/622; /* pon aquí la proporción real de tu imagen */
  margin-bottom: 90px;
}
.introduction{

}
.introduction h2{
  font-family: "Delfino", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 58px;
  text-align: center;
  vertical-align: middle;
  color:#3F3F41;
}
.introduction p{
  font-family: "Delfino", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #4B5563;
}
.heartred{
  height: 149px;
  width: auto;
  margin: auto;
}
.citas{
  background: url('./images/textura.webp') no-repeat;
  background-size: cover;
  animation: olas 9s ease-in-out infinite;
  height: 576px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.unete-swiper {
  position: relative;
}

.unete-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
.diversidad-card{
  min-height: 417px;
}

.unete-swiper img {
  object-fit: cover;
  max-height: 718px;
  height: 480px;
}
.unete-prev:hover{
  background-color: gray;
  color: white !important;
}
.unete-next:hover{
  background-color: gray;
  color: white !important;
}
.unete-prev,
.unete-next {
  color: #000; /* Cambia el color a tu diseño */
  width: 40px !important;
  height: 40px !important;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0px 2px 12px 0px #0000004D;
}
.swiper-button-prev, .swiper-button-next{
  color: #000; /* Cambia el color a tu diseño */
  width: 40px !important;
  height: 40px !important;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0px 2px 12px 0px #0000004D;
}

.unete-prev::after,
.unete-next::after {
  font-size: 20px !important;
}
.swiper-button-prev::after, .swiper-button-next::after{
  font-size: 20px !important;
}
.unete-prev {
  left: -50px; /* Ajusta según diseño */
}

.unete-next {
  right: -50px; /* Ajusta según diseño */
}
.swiper-button-next, .swiper-button-prev{
  color: #2F520E !important;
}
.swiper-button-prev:hover, .swiper-button-next:hover{
  background-color: gray;
  color: white !important;
}
.swiper-button-next::after{
  padding-left: 2px;
}
.swiper-button-prev::after{
  padding-right: 2px;
}
.unete-next::after{
  padding-left: 2px;
}
.unete-prev::after{
  padding-right: 2px;
}


.unete-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.unete-swiper img {
  object-fit: cover;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9; /* Fuerza a que sea rectangular */
}
.unete-prev { left: calc(15% - 15px) !important; }
.unete-next { right: calc(15% - 15px) !important; }

.unete-swiper .swiper-slide img {
  transform: scale(0.95);
  opacity: 0.7;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.unete-swiper .swiper-slide-active img {
  transform: scale(1);
  opacity: 1;
}

/* =============================
   Sección Testimoniales
============================= */
.testimoniales-section {
  margin: 0 auto;
  padding: 2rem;
}

.testimoniales-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
}

.testimonial-card {
  flex-shrink: 0;
  width: 256px;
  height: 434px;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  cursor: pointer;
}

.testimonial-card video,
.testimonial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Primer testimonial abierto desde inicio */
.testimonial-card.active {
  width: 861px;
  height: 434px;
  flex: 2;
  z-index: 2;
}

/* Hover expand solo en desktop */
@media (min-width: 768px) {
  .testimoniales-wrapper {
    overflow: visible;
  }
  .testimonial-card {
    flex: 1;
  }
  .testimonial-card:hover {
    flex: 2;
    z-index: 2;
  }
}

/* =============================
   Play overlay
============================= */
.play-overlay {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  background: rgba(128, 128, 128, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
  transition: background 0.3s ease;
}

.play-overlay:hover {
  background: rgba(128, 128, 128, 0.9);
}

.play-overlay img,
.play-overlay i {
  width: 24px;
  height: 24px;
  object-fit: contain;
  color: #fff; /* para icon font */     /* tamaño del icono */
}

/* =============================
   Play overlay con efecto pulse + hover
============================= */


/* Circulo de pulso */
.play-overlay::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Hover: oscurece un poco y agranda suavemente */
.play-overlay:hover {
  background: rgba(128, 128, 128, 0.9);
  transform: scale(1.15);
}

.play-overlay img,
.play-overlay i {
  width: 24px;
  height: 24px;
  object-fit: contain;
  color: #fff;
  z-index: 2; /* siempre sobre el pulso */
  transition: transform 0.3s ease;
}

.play-overlay:hover img {
  transform: scale(1.2);
}

/* =============================
   Modal
============================= */
/* Modal fondo y centrado */
.video-modal {
    display: none; /* se muestra vía JS */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Contenedor del iframe */
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9; /* video grande y proporcional */
}

/* Iframe de video */
.video-container {
    width: 100%;
    max-width: 1200px;
    height: 600px; /* altura deseada */
    position: relative;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: block;
}

/* Botón de cierre sobre el video */
.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 99999; /* siempre sobre el iframe */
    padding: 0;
    transition: background 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(0,0,0,0.8);
}


/* =============================
   Botón de cierre estilo Slack
============================= */
.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    transition: background 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(0,0,0,0.8);
}

.video-modal-close .close-x {
    line-height: 1;
    font-size: 24px;
}

.video-modal-close .close-esc {
    font-size: 10px;
    margin-top: 2px;
    font-weight: normal;
}
.testimoniales{
  margin-top: 90px;
}
.testimoniales-title{
  font-family: "Delfino", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  text-align: center;
  vertical-align: middle;
  color: #3F3F41;
  margin-bottom: 50px;
}


.diversidad {
    position: relative;
}

.decor-top-left {
  position: absolute;
  top: -172px;
  left: -5px;
  z-index: 2;
  height: 350px;
}

.decor-top-left-paloma {
  position: absolute;
  top: -73px;
  left: 24px;
  z-index: 3;
  width: 230px;
}

.decor-top-right {
  position: absolute;
  top: -127px;
  right: 0px;
  z-index: 2;
  height: 280px;
}

.diversidad-title {
    position: relative;
    display: inline-block;
}

.subrayado {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-100%);
    z-index: 1;
    height: 21px;
}

.comillasrosa {
    position: absolute;
    margin-left: 0px;
    height: 40px;
}

.diversidad-card {
    padding: 15px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.diversidad-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.diversidad-card-body {
    padding: 16px;
}

.diversidad-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.diversidad-card-body .publicado {
    font-size: 0.9rem;
    color: #555;
}

.diversidad-card {
  padding: 15px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  min-height: 417px;

  /* transición suave */
  position: relative;
  transition: border 0.4s ease;
}

/* Crea un pseudo-elemento para el borde animado */
.diversidad-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 3.5px; /* grosor del borde */
  background: linear-gradient(
    90deg,
    #6AAF66 0%,
    #4A73FF 35.1%,
    #E879A4 65.87%,
    #FCA34A 98.56%
  );
  background-size: 300% 300%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* no bloquea interacción */
}

/* Hover: activa el gradiente animado */
.diversidad-card:hover::before {
  opacity: 1;
  animation: borderGradient 3s linear infinite;
}

/* Animación del gradiente */
@keyframes borderGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.diversidad-card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.diversidad-card-link .diversidad-card {
  height: 100%;
}
.diversidad-card-link:hover{
  text-decoration: none;
}

/* Swiper específico */
.diversidad-swiper .swiper-slide {
    width: auto;
    flex-shrink: 0;
}

h2.diversidad-title{
  font-family: "Delfino", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  text-align: center;
  vertical-align: middle;
  color: #3F3F41;
}
span.title-card{
  font-family: "Delfino", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 32px;
  vertical-align: middle;
  color: #3F3F41;
}
.grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
}
.grid-container {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px; /* compensa el margin-left de los hijos */
}
.grid-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.fancybox__link-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #007bff;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
}
.acf-gallery {
  margin: 0 auto;
}

.acf-gallery .grid-item {
  width: 280px; /* ajusta según tu diseño */
  margin-bottom: 15px;
}

.acf-gallery img {
  width: 100%;
  display: block;
  border-radius: 8px;
  cursor: pointer;
}
.icon-heartrose{
  height: 40px;
}
.icon-comillas{
  height: 30px;
  position: absolute;
}

/* === DESCARGAS SECTION === */
.descargas {
  position: relative;
}

.descargas .decor {
  max-width: 160px;
  z-index: 1;
}

.descargas .girasol {
  max-width: 200px;
  bottom: -127px;
  right: 0px;
  z-index: 2;
  height: 280px;
}

.descargas h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin-top: 100px;
  color: #3F3F41;
}

.descargas h2 .subrayado {
  bottom: -17px;
  left: 50%;
  transform: translateX(-136%);
  z-index: 1;
  height: 16px;
}

.descargas h2 .comillas {
  right: -32px;
  top: -20px;
  width: 33px;
}

.steps .icon {
  width: 60px;
  height: auto;
}

.steps .icon-d{
  width: 48px;
  margin-top: 4px !important;
  margin-bottom: 13px !important;
}

.steps .linea {
  width: 80px;
}

.card-descarga {
  transition: transform .3s ease, box-shadow .3s ease;
  border-radius: 16px;
}

.card-descarga:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.download-icon {
  width: 50px;
  transition: transform .3s ease;
}

.download-link:hover .download-icon {
  transform: scale(1.1);
}

/* === EFECTO BORDE GRADIENTE EN DESCARGAS === */
.card-descarga {
  position: relative;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border 0.4s ease;
  z-index: 0; /* importante para que el pseudo-elemento quede por encima */
}

/* Pseudo-elemento para borde animado */
.card-descarga::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 3.5px; /* grosor del borde */
  background: linear-gradient(
    90deg,
    #6AAF66 0%,
    #4A73FF 35.1%,
    #E879A4 65.87%,
    #FCA34A 98.56%
  );
  background-size: 300% 300%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* no bloquea interacción */
  z-index: 1;
}

/* Hover: activa el borde degradado animado */
.card-descarga:hover::before {
  opacity: 1;
  animation: borderGradient 3s linear infinite;
}

/* Reaprovechamos la misma animación */
@keyframes borderGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Asegura que el contenido quede sobre el fondo y debajo del borde */
.card-descarga > * {
  position: relative;
  z-index: 2;
}

.deco-arco{
  position: absolute;
  left: 0px;
  z-index: 3;
  width: 149px;
  margin-top: 14%;
}
.padding-parrafo{
  padding-left: 80px;
  padding-right: 80px;
}
span.contenido-span{
  font-family: "Delfino", sans-serif;
  font-weight: 400;
  font-style: Normal;
  font-size: 30px;
  text-align: center;
  color: #910E43;
}
h2.contenido-title{
  font-family: "Delfino", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  text-align: center;
  vertical-align: middle;
  color: #3F3F41;
}

.citas {
  background: url('./images/textura.webp') no-repeat;
  background-size: cover;
  animation: olas 9s ease-in-out infinite;
  height: 576px;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
}

.deco-arcoiris-citas {
  top: -30px;
  left: -30px;
  width: 200px;
}

.citas h3 {
  font-size: 1.8rem;
  font-weight: bold;
}

.citas .comilla-inicio {
  position: absolute;
  left: -40px;
  top: 5px;
  width: 30px;
}
.citas .comilla-cierre {
  position: absolute;
  right: -40px;
  bottom: -10px;
  width: 30px;
}
h3.citash3{
  font-family: "Delfino", sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 64px;
  text-align: center;
  vertical-align: middle;
  color: #3F3F41;
  width: 56%;
}
span.autor{
  font-family: "Delfino", sans-serif;
  font-weight: 100;
  font-style: Normal;
  font-size: 32px;
  line-height: 64px;
  text-align: center;
  vertical-align: middle;
  color: #3F3F41;
}
.comparte {
  position: relative;
}

.comparte .deco-heart { 
  top: -53px;
  left: 10%;
  width: 140px;
  z-index: 9;
}
.comparte .deco-arrow { 
  top: -97px;
  width: 100px;
  left: 50%;
  z-index: 9;
 }
.comparte .deco-hand { right: 0px; bottom: -15px; height: 100%; }

.comparte h2 { font-size: 2rem; font-weight: bold; }

.btn-enviar {
  background-color: #F04C94;
  color: #fff;
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
}
.btn-enviar:hover { background-color: #d43d7d; }
span.spancomparte{
  font-family: "Delfino", sans-serif;
  font-weight: 400;
  font-size: 30px;
  leading-trim: NONE;
  text-align: center;
  color: #910E43;
}
h2.comparte{
  font-family: "Delfino", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  text-align: center;
  vertical-align: middle;
  color: #3F3F41;
}
.form-control{
  height: 50px;
  border-radius: 8px;
}
.comparte-form select{
  height: 50px;
  color: #878995;
  font-family: "Delfino", sans-serif;
  font-weight: 400;
  font-size: 18px !important;
  line-height: 28px;
  width: 100%;
  border-radius: 8px;
  padding-left: 10px;
}
.comparte-form input{
  height: 50px;
  color: #878995;
  font-family: "Delfino", sans-serif;
  font-weight: 400;
  font-size: 18px !important;
  line-height: 28px;
  width: 100%;
  border-radius: 8px;
}
.comparte-form textarea{
  height: 116px;
  color: #878995;
  font-family: "Delfino", sans-serif;
  font-weight: 400;
  font-size: 18px !important;
  line-height: 28px;
  width: 100%;
  border-radius: 8px;
}
.icono-descarga{
  height: 48px;
  width: auto;
}
.card-descarga:hover .icono-descarga {
  animation: download-move 0.8s infinite;
}

@keyframes download-move {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.form-select {
  appearance: none;           /* Oculta el icono nativo (cross-browser) */
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url('./images/Icon.svg'); /* ruta del icono */
  background-repeat: no-repeat;
  background-position: right 1rem center; /* mueve el icono hacia la izquierda */
  background-size: 17px 8px;  /* tamaño exacto de tu svg */

  padding-right: 2.5rem;      /* deja espacio para que el texto no choque con el icono */
}

.acf-gallery .direct-link {
  cursor: pointer;
  display: block;
}


@media (max-width: 991px) {
  .subrayado{
    width: 116px;
  }
  .comillasrosa{
    height: 22px;
  }
  .sectionbanner{
    background: url('./images/photoheadmobile.webp') no-repeat;
    background-size: contain;
    height: 576px;
    margin-bottom: 60px;
  }
  .deco-arco{
    display: none;
  }
  h2.diversidad-title{
    font-size: 24px;
    line-height: 28px;
  }
  .acf-gallery .grid-item{
    width: 180px;
  }
  .decor-top-left{
    height: 250px;
  }
  .decor-top-left-paloma{
    width: 130px;
  }
  .decor-top-right{
    bottom: -120px;
    height: 173px;
  }
  span.contenido-span{
    font-size: 18px;
    line-height: 22px;
  }
  h2.contenido-title{
    font-size: 24px;
    line-height: 32px;
  }
  .descargas .arcoiris, .descargas .flor{
    top: -112px;
  }
  .descargas h2{
    font-size: 24px;
    line-height: 26px;
  }
  .descargas h2 .subrayado{
    left: 66%;
    width: 145px;
  }
  .icono-descarga{
    height: 32px;
  }
  h3.citash3{
    font-size: 24px;
    line-height: 32px;
  }
  span.autor{
    font-size: 16px;
  }
  .deco-arcoiris-citas{
    left: 0px;
    width: 134px;
  }
  .introduction h2{
    font-size: 28px;
    line-height: 32px;
  }
  .introduction p{
    font-size: 14px;
    line-height: 20px;
  }
  .testimoniales-title{
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 30px;
  }
  .icon-comillas{
    height: 25px;
  }
  .padding-parrafo{
    padding-left: 30px;
    padding-right: 30px;
  }
  .comparte .deco-hand{
    display: none;
  }
  .redes-header{
    flex-wrap: wrap;
    width: 50%;
  }
  h2.comparte{
    font-size: 24px;
    line-height: 28px;
  }
  .redes-header{
    gap: 10px !important;
  }
  .redes-header img{
    height: 18px !important;
  }
  .testimoniales{
    margin-top: 30px;
  }
  .container-img-logo{
    justify-content: center;
  }
  footer span{
    font-size: 28px !important;
  }
  .heard-content{
    margin-bottom: 6px;
    justify-content: center !important;
  }
  .content-mobile-ul{
    align-items: center;
  }
  .testimoniales-section{
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  .icon-heartrose{
    height: 28px;
  }
  .margin-section-b{ 
    margin-bottom: 105px !important;
  }
  .grid-item{
    padding: 0px;
  }
}
@media (max-width: 767px) {
  .testimoniales-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;     /* scroll suave */
    gap: 16px;
    padding: 0 12px;
  }

  .testimonial-card {
    flex: 0 0 85%;              /* ocupa casi toda la pantalla */
    max-width: 320px;           /* ajusta al gusto */
    scroll-snap-align: center;  /* centra cada tarjeta */
  }

  .testimonial-card:hover {
    flex: 0 0 85%;              /* desactiva hover expand en mobile */
  }

  /* respiro al final para que no quede cortado */
  .testimoniales-wrapper::after {
    content: "";
    flex: 0 0 12%;  /* "espacio fantasma" para que el último pueda centrarse */
  }
}

.acf-gallery .grid-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.acf-gallery .grid-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
/* Fade-in al entrar en viewport */
.acf-gallery img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.acf-gallery img.visible {
  opacity: 1;
  transform: translateY(0);
}







/* Contenedor con borde degradado */
.acf-gallery .grid-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  z-index: 0;
}

/* Borde degradado */
.acf-gallery .grid-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 3px; /* grosor del borde */
  background: linear-gradient(
    90deg,
    #6AAF66 0%,
    #4A73FF 35.1%,
    #E879A4 65.87%,
    #FCA34A 98.56%
  );
  background-size: 300% 300%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* Activa el borde en hover */
.acf-gallery .grid-item:hover::before {
  opacity: 1;
  animation: borderGradient 3s linear infinite;
}

/* Imagen "encogida" dentro del borde */
.acf-gallery .grid-item img {
  border-radius: 10px; /* un poco menos que el contenedor */
  display: block;
  width: 100%;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

/* Zoom en hover */
.acf-gallery .grid-item:hover img {
  transform: scale(1.05);
}

/* Animación borde degradado */
@keyframes borderGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



/* === EFECTO BORDE GRADIENTE EN GALERÍA === */
.acf-gallery .grid-item a {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  z-index: 0;
}

/* Borde degradado animado */
.acf-gallery .grid-item a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 3px; /* grosor del borde */
  background: linear-gradient(
    90deg,
    #6AAF66 0%,
    #4A73FF 35%,
    #E879A4 65%,
    #FCA34A 100%
  );
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* Hover activa el borde */
.acf-gallery .grid-item a:hover::before {
  opacity: 1;
  animation: borderGradient 3s linear infinite;
}

/* Imagen encima del borde */
.acf-gallery .grid-item a img {
  display: block;
  width: 100%;
  border-radius: 10px; /* un poquito menor que el contenedor */
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

/* Zoom en hover */
.acf-gallery .grid-item a:hover img {
  transform: scale(1.05);
}
