/* ============================================================
   CASA HACIENDA LAS PALMERAS — testimonios.css (versión premium)
   ============================================================ */

.test-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* Imagen de fondo: cambia la ruta por la tuya */
 background-image: url('../img/matr1.png');
  background-size: cover;
  background-position: center 30%;
  background-attachment: scroll;   /* parallax suave */
}

/* Sin imagen propia → degradado de la paleta de la hacienda */
.test-hero:not([style*="background-image"]) {
  background: linear-gradient(160deg, #f7283d 0%, #f32e2e 60%, #e11818 100%);
}

.test-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 5, 5, 0.55) 0%,
    rgba(30, 10, 15, 0.72) 60%,
    rgba(10, 5, 5, 0.85) 100%
  );
  z-index: 1;
}

.test-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 780px;
  margin: 0 auto;
}

.test-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(212, 170, 82, 0.85);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.test-hero-eyebrow::before,
.test-hero-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(212, 170, 82, 0.5);
}

.test-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.test-hero-title em {
  font-style: italic;
  color: #d4aa52;
}

.test-hero-divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b8922a, transparent);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.test-hero-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.02em;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .test-hero {
    min-height: 360px;
    background-attachment: scroll; /* parallax off en móvil */
  }
  .test-hero-content {
    padding: 5rem 1.5rem 3rem;
  }
}
@media (max-width: 480px) {
  .test-hero { min-height: 300px; }
  .test-hero-content { padding: 4.5rem 1.25rem 2.5rem; }
}
#testimonios {
  background: var(--crema-page, #f5efe4);
  padding: 6rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}
#testimonios::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(184,146,42,0.06) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(30,61,47,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   CABECERA
   ══════════════════════════════════════════════ */
.test-eyebrow {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dorado, #b8922a);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.test-eyebrow::before,
.test-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--dorado, #b8922a);
  opacity: 0.5;
}
.test-titulo {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.test-titulo em {
  font-style: italic;
  color: var(--guindo);
}
.test-subtitulo {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 3.5rem;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════
   FILA PRINCIPAL: VIDEO + STATS
   ══════════════════════════════════════════════ */
.test-main-row {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
  align-items: stretch;
}

/* ── Video principal ── */
.test-video-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--guindo-light);
  min-height: 340px;
  cursor: pointer;
}
.test-video-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/matr1.png');
  background-size: cover;
  background-position: center;
}
.bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(35px);
  pointer-events: none;
}
.bokeh-1 { width:160px; height:160px; background:rgba(184,146,42,0.25); top:-30px; left:60px; }
.bokeh-2 { width:100px; height:100px; background:rgba(184,146,42,0.15); bottom:80px; right:40px; }
.bokeh-3 { width:80px;  height:80px;  background:rgba(255,220,120,0.12); top:100px; right:20px; }

.test-video-arcos {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.08;
}
.test-video-arcos svg { width: 100%; height: 60%; }

.test-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,15,0.75) 0%, transparent 45%);
}
.test-video-estrellas {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  font-size: 0.7rem;
  color: rgba(212,170,82,0.6);
  letter-spacing: 4px;
}

.test-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(184,146,42,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 8px 32px rgba(184,146,42,0.4);
  transition: transform 0.2s, background 0.2s;
}
.test-play-btn:hover {
  transform: translate(-50%,-55%) scale(1.08);
  background: #d4aa52;
}
.test-play-btn svg { width: 26px; height: 26px; margin-left: 4px; }

.test-video-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.test-video-autor { display: flex; align-items: center; gap: 10px; }
.test-vid-avatares { display: flex; }
.test-vid-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #b8922a;
  background: #e01111;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: #b8922a;
  margin-left: -10px;
}
.test-vid-av:first-child { margin-left: 0; }
.test-vid-sub { font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; text-transform: uppercase; }
.test-vid-nom { font-size: 14px; font-weight: 600; color: #fff; }
.test-vid-dur {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  display: flex; align-items: center; gap: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.25);
}
.test-vid-dur svg { width: 12px; height: 12px; }

/* ── Panel Stats ── */
.test-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.test-confianza-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 0.25rem;
}
.test-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* ════════════════════════════════════════════
   STATS — COLOR GUINDO LIGHT (BORGOÑA SUAVE)
   ════════════════════════════════════════════ */
.test-stat {
  background: #c0485a;          /* guindo light / borgoña suave */
  border-radius: 14px;
  padding: 1.25rem 0.75rem 1rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(192, 72, 90, 0.22);
}
.test-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(192, 72, 90, 0.30);
}
.test-stat::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 60px; height: 60px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.test-stat-icon {
  font-size: 20px;
  color: #f5c8ce;           /* icono en tono rosado claro */
  margin-bottom: 0.4rem;
  line-height: 1;
}
.test-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: white;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.test-stat-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.test-stat-estrellas {
  font-size: 0.65rem;
  color: #f5c8ce;
  margin-top: 0.4rem;
  letter-spacing: 2px;
}

.test-cita-bloque {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  border: 1px solid rgba(184,146,42,0.15);
  box-shadow: 0 4px 20px rgba(30,61,47,0.08);
}
.test-cita-comillas {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--beige-light, #f5efe4);
  border: 1px solid rgba(184,146,42,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #b8922a;
  line-height: 1;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.test-cita-texto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.test-cita-linea {
  display: block;
  width: 32px; height: 2px;
  background: #b8922a;
  border-radius: 2px;
  margin-top: 8px;
  opacity: 0.6;
}

/* ══════════════════════════════════════════════
   TARJETAS TESTIMONIO
   ══════════════════════════════════════════════ */
.test-cards-row {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.test-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.test-card-new {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid rgba(184,146,42,0.12);
  box-shadow: 0 4px 18px rgba(30,61,47,0.07);
  transition: transform 0.22s, box-shadow 0.22s;
}
.test-card-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(30,61,47,0.13);
}
.test-card-foto {
  width: 72px; height: 72px;
  border-radius: 12px;
  background: var(--guindo);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.test-card-foto-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #e71414, #e00d0d);
}
.test-card-foto-initials {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(184,146,42,0.8);
  line-height: 1;
}
.test-card-foto-play {
  position: absolute;
  inset: 0;
  background: rgba(10,25,15,0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: opacity 0.2s;
}
.test-card-foto-play svg { width: 22px; height: 22px; }
.test-card-foto:hover .test-card-foto-play { opacity: 0; }

.test-card-body { flex: 1; }
.test-card-stars {
  color: #b8922a;
  font-size: 0.72rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.test-card-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  position: relative;
}
.test-card-quote::before {
  content: '\201C';
  font-size: 2rem;
  color: #b8922a;
  opacity: 0.25;
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 2px;
  font-family: Georgia, serif;
}
.test-card-nombre { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 1px; }
.test-card-tipo   { font-size: 0.7rem; color: var(--text-mid); letter-spacing: 0.04em; }

/* ── Flechas navegación ── */
.test-nav-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(184,146,42,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30,61,47,0.10);
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
}
.test-nav-arr:hover { background: var(--guindo); border-color: var(--guindo); }
.test-nav-arr:hover svg path { stroke: white; }
.test-nav-arr svg { width: 18px; height: 18px; }
.test-nav-arr svg path { stroke: var(--text-mid, #4a3f2f); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.test-nav-prev { left: -20px; }
.test-nav-next { right: -20px; }

/* ── Paginación puntos ── */
.test-paginacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.test-pag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(30,61,47,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}
.test-pag-dot.active {
  background: var(--guindo);
  width: 22px;
  border-radius: 4px;
}

/* ── CTA ── */
.test-cta-wrap { text-align: center; margin-top: 3rem; }
.test-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--guindo);
  color: var(--beige, #d6c5b0);
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, letter-spacing 0.25s;
  box-shadow: 0 8px 28px rgba(122,16,32,0.2);
}
.test-cta-btn:hover { background: var(--guindo-light); letter-spacing: 0.3em; }
.test-cta-btn svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #testimonios { padding: 5rem 3rem; }
}
@media (max-width: 900px) {
  #testimonios { padding: 4rem 2rem; }
  .test-main-row { grid-template-columns: 1fr; }
  .test-video-wrap { min-height: 260px; }
  .test-titulo { font-size: 2.6rem; }
  .test-cards-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 600px) {
  #testimonios { padding: 3rem 1.25rem; }
  .test-titulo { font-size: 2rem; }
  .test-stats-grid { grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
  .test-stat-num { font-size: 1.5rem; }
  .test-nav-prev { left: -10px; }
  .test-nav-next { right: -10px; }
}


/* ============================================================
   SECCIÓN INSTAGRAM FEED (ELFSIGHT INTEGRATION)
   ============================================================ */
.test-instagram-section {
  max-width: 1100px;
  margin: 5rem auto 2rem;
  padding: 0 1rem;
  position: relative;
}

.test-insta-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.test-insta-eyebrow {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dorado, #b8922a);
  margin-bottom: 0.5rem;
}

.test-insta-titulo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-dark, #1e3d31);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.test-insta-subtitulo {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-mid, #4a3f2f);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.test-insta-widget-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(184, 146, 42, 0.12);
  box-shadow: 0 4px 20px rgba(30, 61, 47, 0.06);
  min-height: 300px; /* Evita saltos bruscos de maquetación mientras carga */
}

/* Adaptación responsive para pantallas menores */
@media (max-width: 768px) {
  .test-instagram-section {
    margin-top: 4rem;
  }
  .test-insta-titulo {
    font-size: 1.8rem;
  }
  .test-insta-widget-container {
    padding: 1rem;
  }
}