/* ===================================================================================== */
/*                    SECCIÓN TESTIMONIOS — HOTEL OSLO  (tema claro)                    */
/* ===================================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --t-bg:           #ffffff;
  --t-card-bg:      #ffffff;
  --t-card-border:  rgba(184,146,46,0.2);
  --t-text:         #1a1a2e;
  --t-text-soft:    #4a4a5a;
  --t-text-muted:   #8a8a9a;
  --t-gold:         #b8922e;
  --t-gold-light:   #d4a845;
  --t-gold-pale:    rgba(184,146,46,0.08);
  --t-divider:      rgba(0,0,0,0.07);
  --t-shadow:       0 8px 40px rgba(0,0,0,0.07);
  --t-shadow-hover: 0 20px 60px rgba(0,0,0,0.12);
  --t-shadow-glow:  0 0 30px rgba(184,146,46,0.15);
  --radius-sm:      4px;
  --radius-lg:      20px;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes expandWidth {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}
@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to   { width: 120px; opacity: 1; }
}
@keyframes shimmerLine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(60px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-60px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideOutToLeft {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(-60px) scale(0.97); }
}
@keyframes slideOutToRight {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(60px) scale(0.97); }
}
@keyframes starPop {
  0%   { opacity: 0; transform: scale(0) rotate(-30deg); }
  60%  { transform: scale(1.35) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes textReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes avatarBounce {
  0%   { opacity: 0; transform: scale(0.5); }
  65%  { transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.35); }
}
@keyframes btnAppear {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.testimonials {
  position: relative;
  padding: 110px 0 120px;
  background-color: var(--t-bg);
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

/* Manchas de color cálido muy sutiles en el fondo blanco */
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 55% 40% at 80% 15%, rgba(184,146,46,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 15% 80%, rgba(184,146,46,0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
}

/* Línea dorada superior */
.testimonials::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--t-gold), transparent);
  animation: lineGrow 1s cubic-bezier(0.4,0,0.2,1) 0.2s both;
}

.testimonials .container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.testimonials .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials .section-subtitle {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--t-gold);
  margin-bottom: 16px;
  animation: fadeSlideDown 0.7s cubic-bezier(0.4,0,0.2,1) 0.3s both;
}

.testimonials .section-subtitle::before,
.testimonials .section-subtitle::after {
  content: '—';
  margin: 0 10px;
  opacity: 0.5;
}

.testimonials .section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  color: var(--t-text);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 24px;
  animation: fadeSlideDown 0.7s cubic-bezier(0.4,0,0.2,1) 0.5s both;
}

.testimonials .title-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--t-gold), transparent);
  margin: 0 auto;
  animation: expandWidth 0.6s cubic-bezier(0.4,0,0.2,1) 0.8s both;
}

/* ============================================================
   SLIDER WRAPPER
   ============================================================ */
.testimonials-slider {
  position: relative;
  min-height: 310px;
  animation: cardEnter 0.8s cubic-bezier(0.4,0,0.2,1) 0.7s both;
}

/* ============================================================
   TESTIMONIAL CARD
   ============================================================ */
.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--t-card-bg);
  border: 1px solid var(--t-card-border);
  border-radius: var(--radius-lg);
  padding: 52px 52px 44px;
  box-shadow: var(--t-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.35s ease;
}

/* Shimmer dorado en el borde superior */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--t-gold) 40%,
    var(--t-gold-light) 50%,
    var(--t-gold) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmerLine 3.5s linear infinite;
}

/* Comilla decorativa */
.testimonial-card::after {
  content: '"';
  position: absolute;
  top: 12px;
  right: 36px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 160px;
  font-weight: 600;
  color: var(--t-gold);
  line-height: 1;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

/* Card activa */
.testimonial-card.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* Hover */
.testimonial-card.active:hover {
  border-color: rgba(184,146,46,0.4);
  box-shadow: var(--t-shadow-hover), var(--t-shadow-glow);
  transform: translateY(-4px);
}

/* ---- Estados de animación ---- */
.testimonial-card.entering-right {
  position: relative; opacity: 1; pointer-events: auto;
  animation: slideInFromRight 0.55s cubic-bezier(0.4,0,0.2,1) both;
}
.testimonial-card.entering-left {
  position: relative; opacity: 1; pointer-events: auto;
  animation: slideInFromLeft 0.55s cubic-bezier(0.4,0,0.2,1) both;
}
.testimonial-card.leaving-left {
  position: absolute; opacity: 1; pointer-events: none;
  animation: slideOutToLeft 0.45s cubic-bezier(0.4,0,0.2,1) both;
}
.testimonial-card.leaving-right {
  position: absolute; opacity: 1; pointer-events: none;
  animation: slideOutToRight 0.45s cubic-bezier(0.4,0,0.2,1) both;
}

/* ============================================================
   ESTRELLAS
   ============================================================ */
.testimonial-rating { display: flex; gap: 6px; }

.testimonial-rating i {
  color: var(--t-gold);
  font-size: 14px;
  opacity: 0;
  filter: drop-shadow(0 1px 3px rgba(184,146,46,0.3));
}

.testimonial-card.active          .testimonial-rating i:nth-child(1) { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.05s forwards; }
.testimonial-card.active          .testimonial-rating i:nth-child(2) { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.15s forwards; }
.testimonial-card.active          .testimonial-rating i:nth-child(3) { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.25s forwards; }
.testimonial-card.active          .testimonial-rating i:nth-child(4) { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.35s forwards; }
.testimonial-card.active          .testimonial-rating i:nth-child(5) { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.45s forwards; }

.testimonial-card.entering-right .testimonial-rating i:nth-child(1),
.testimonial-card.entering-left  .testimonial-rating i:nth-child(1) { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.15s forwards; }
.testimonial-card.entering-right .testimonial-rating i:nth-child(2),
.testimonial-card.entering-left  .testimonial-rating i:nth-child(2) { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.25s forwards; }
.testimonial-card.entering-right .testimonial-rating i:nth-child(3),
.testimonial-card.entering-left  .testimonial-rating i:nth-child(3) { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.35s forwards; }
.testimonial-card.entering-right .testimonial-rating i:nth-child(4),
.testimonial-card.entering-left  .testimonial-rating i:nth-child(4) { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.45s forwards; }
.testimonial-card.entering-right .testimonial-rating i:nth-child(5),
.testimonial-card.entering-left  .testimonial-rating i:nth-child(5) { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.55s forwards; }

/* ============================================================
   TEXTO
   ============================================================ */
.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--t-text-soft);
  line-height: 1.8;
  margin: 0;
  position: relative;
  z-index: 1;
  opacity: 0;
}

.testimonial-card.active         .testimonial-text { animation: textReveal 0.6s ease 0.3s both; }
.testimonial-card.entering-right .testimonial-text { animation: textReveal 0.6s ease 0.2s both; }
.testimonial-card.entering-left  .testimonial-text { animation: textReveal 0.6s ease 0.2s both; }

/* ============================================================
   AUTHOR
   ============================================================ */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--t-divider);
  opacity: 0;
}

.testimonial-card.active         .testimonial-author { animation: textReveal 0.6s ease 0.5s both; }
.testimonial-card.entering-right .testimonial-author { animation: textReveal 0.6s ease 0.35s both; }
.testimonial-card.entering-left  .testimonial-author { animation: textReveal 0.6s ease 0.35s both; }

.testimonial-author img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(184,146,46,0.3);
  box-shadow: 0 0 0 4px rgba(184,146,46,0.07), 0 4px 12px rgba(0,0,0,0.08);
  opacity: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card.active         .testimonial-author img { animation: avatarBounce 0.55s cubic-bezier(0.34,1.56,0.64,1) 0.55s both; }
.testimonial-card.entering-right .testimonial-author img { animation: avatarBounce 0.55s cubic-bezier(0.34,1.56,0.64,1) 0.4s  both; }
.testimonial-card.entering-left  .testimonial-author img { animation: avatarBounce 0.55s cubic-bezier(0.34,1.56,0.64,1) 0.4s  both; }

.testimonial-author img:hover {
  border-color: var(--t-gold);
  box-shadow: 0 0 0 4px rgba(184,146,46,0.15), 0 6px 20px rgba(184,146,46,0.2);
}

.author-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--t-text);
  margin: 0 0 4px;
  letter-spacing: 0.03em;
}

.author-info span {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-gold);
}

/* ============================================================
   CONTROLS
   ============================================================ */
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  animation: btnAppear 0.6s cubic-bezier(0.4,0,0.2,1) 1.2s both;
}

.testimonial-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(184,146,46,0.25);
  border-radius: var(--radius-sm);
  color: var(--t-text-muted);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

.testimonial-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--t-gold-pale), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-btn:hover {
  border-color: var(--t-gold);
  color: var(--t-gold);
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(184,146,46,0.2);
}

.testimonial-btn:hover::before { opacity: 1; }
.testimonial-btn:active { transform: scale(0.94); box-shadow: none; }

.testimonial-btn i {
  position: relative; z-index: 1;
  transition: transform 0.25s ease;
}

.testimonial-btn.prev:hover i { transform: translateX(-3px); }
.testimonial-btn.next:hover i { transform: translateX(3px); }

/* ============================================================
   DOTS
   ============================================================ */
.testimonial-dots { display: flex; align-items: center; gap: 10px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.dot:hover {
  background: rgba(184,146,46,0.4);
  border-color: var(--t-gold);
  transform: scale(1.2);
}

.dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--t-gold);
  border-color: var(--t-gold);
  box-shadow: 0 0 10px rgba(184,146,46,0.4);
  animation: dotPulse 2s ease-in-out infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .testimonials { padding: 80px 0 90px; }
  .testimonial-card { padding: 36px 28px 32px; }
  .testimonial-card::after { font-size: 100px; top: 8px; right: 20px; }
  .testimonials-slider { min-height: 360px; }
}

@media (max-width: 480px) {
  .testimonial-card { padding: 28px 20px 24px; }
  .testimonials-slider { min-height: 400px; }
  .testimonial-controls { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}