/* ============================================
   INDEX.CSS – Estilos específicos del Home
   ============================================ */

/* === HERO === */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 7s ease;
  will-change: transform, opacity;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 76, 35, 0.72) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(244, 156, 77, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: heroFadeIn 1.2s ease 0.4s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--naranja);
  background: rgba(244, 156, 77, 0.15);
  border: 1px solid rgba(244, 156, 77, 0.4);
  padding: 8px 20px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--blanco);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  font-weight: 300;
  line-height: 1.1;
}

.hero-title-accent {
  color: var(--naranja-claro);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-slider-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active {
  background: var(--naranja);
  width: 28px;
  border-radius: 4px;
  border-color: var(--naranja);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  right: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-arrow {
  animation: bounce 1.8s infinite;
  font-size: 1.2rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* === FRASE === */
.frase-section {
  background: var(--verde);
  padding: 50px 0;
}

.frase-inner {
  text-align: center;
}

.frase-deco {
  font-size: 2rem;
  color: var(--naranja);
  margin-bottom: 16px;
  display: block;
}

.frase-texto {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--blanco);
  max-width: 700px;
  margin: 0 auto 14px;
  line-height: 1.5;
}

.frase-autor {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--naranja);
  text-transform: uppercase;
}

/* === EXPERIENCIAS GRID === */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.exp-card {
  background: var(--blanco);
  border: 1px solid var(--gris-medio);
  border-radius: var(--radio-grande);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--naranja), var(--verde));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.exp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-media);
  border-color: transparent;
}

.exp-card:hover::before { transform: scaleX(1); }

.exp-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.exp-card h3 {
  font-size: 1.3rem;
  color: var(--verde);
  margin-bottom: 12px;
}

.exp-card p {
  font-size: 0.9rem;
}

/* === PARALLAX === */
.parallax-section {
  position: relative;
  padding: 120px 0;
  background: url('../img/foto.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 76, 35, 0.88),
    rgba(0, 0, 0, 0.6)
  );
}

.parallax-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: var(--blanco);
}

.parallax-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--blanco);
  margin: 10px 0 24px;
  line-height: 1.2;
}

.parallax-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.8;
}

/* === PROGRAMAS === */
.prog-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.prog-card {
  background: var(--blanco);
  border-radius: var(--radio-grande);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--gris-medio);
  display: flex;
  flex-direction: column;
  transition: var(--transicion);
}

.prog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-fuerte);
  border-color: transparent;
}

.prog-img-wrap {
  position: relative;
  overflow: hidden;
}

.prog-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.prog-card:hover .prog-img-wrap img { transform: scale(1.07); }

.prog-card-featured .prog-img-wrap img { height: 280px; }

.prog-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--naranja);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 50px;
}

.prog-badge-pronto {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}

.prog-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prog-body .section-tag { margin-bottom: 12px; }
.prog-body h3 { color: var(--verde); margin-bottom: 12px; }
.prog-body p { font-size: 0.9rem; flex: 1; }

.prog-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.prog-highlights span {
  background: var(--verde-muy-claro);
  color: var(--verde);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
}

.prog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gris-medio);
}

.prog-footer .btn {
  padding: 10px 18px;
  font-size: 0.74rem;
}

.prog-price-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--gris-texto);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prog-price-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--verde);
  font-weight: 600;
}

/* === STATS === */
.stats-section {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(circle, rgba(244, 156, 77, 0.05) 0%, transparent 70%);
  transform: rotate(-15deg);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radio-grande);
  transition: var(--transicion);
  height: 100%;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
  border-color: rgba(244, 156, 77, 0.3);
}

.stat-icon-wrap {
  width: 54px;
  height: 54px;
  background: rgba(244, 156, 77, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--naranja);
}

.stat-icon {
  width: 28px;
  height: 28px;
}

.stat-content {
  flex: 1;
}

.stat-num-block,
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  color: var(--blanco);
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: baseline;
}

.stat-suffix {
  font-size: 1.2rem;
  color: var(--naranja);
  margin-left: 2px;
  font-family: var(--font-sans);
  font-weight: 700;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  line-height: 1.3;
}

/* === TESTIMONIOS === */
.testimonios-slider {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.testimonio-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonio-card {
  min-width: calc(33.333% - 16px);
  background: var(--blanco);
  border: 1px solid var(--gris-medio);
  border-radius: var(--radio-grande);
  padding: 36px;
  box-shadow: var(--sombra-suave);
  flex-shrink: 0;
}

.testimonio-stars {
  color: var(--naranja);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonio-card p {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--negro-suave);
  margin-bottom: 24px;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--naranja), var(--verde));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
}

.testimonio-author strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--negro-suave);
}

.testimonio-author span {
  font-size: 0.8rem;
  color: var(--gris-texto);
}

.test-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.test-btn {
  width: 46px;
  height: 46px;
  background: var(--blanco);
  border: 1.5px solid var(--gris-medio);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
}

.test-btn:hover {
  background: var(--naranja);
  color: white;
  border-color: var(--naranja);
  transform: scale(1.1);
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--naranja) 0%, var(--naranja-oscuro) 100%);
  padding: 100px 0;
}

.cta-inner {
  text-align: center;
  color: var(--blanco);
}

.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--blanco);
  margin: 14px 0 18px;
}

.cta-inner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .prog-grid { grid-template-columns: 1fr 1fr; }
  .prog-card:first-child { grid-column: 1 / -1; }

  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
  .prog-grid { grid-template-columns: 1fr; }
  .prog-card:first-child { grid-column: 1; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonio-card { min-width: calc(100% - 0px); }

  .parallax-section { background-attachment: scroll; }

  .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .exp-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}
