/* =========================
   RESET & VARIABLES (misma paleta)
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #dff5e1;
  --green-strong: #bdeac3;
  --yellow: #f4d35e;
  --white: #f9fdf9;
  --glass: rgba(255, 255, 255, 0.7);
  --text: #1e2a2e;
  --gold: rgba(139, 111, 8, 0.85);
  --gold-light: rgba(189, 155, 35, 0.2);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #fafef7 0%, #f3f9f0 100%);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Importar fuente moderna con display swap para optimizar carga */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section.alt {
  background: linear-gradient(180deg, #fffef8, #fffbf0);
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  background: var(--gold-light);
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #2c3e2f;
  letter-spacing: -0.02em;
}

/* =========================
   NAVBAR PROFESIONAL (optimizada)
========================= */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.3s ease, background 0.3s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold);
}

.logo-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #4a5b4e;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--gold);
}

.menu-btn {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gold);
  background: none;
  border: none;
  padding: 8px;
}

/* =========================
   HERO MODERNO
========================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #eef7ea 0%, #ffffff 100%);
  padding: 120px 0 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(244, 211, 94, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(139, 111, 8, 0.1);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8b6f08;
  margin-bottom: 24px;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #2a3b2c;
}

.highlight {
  color: #b48c1c;
  position: relative;
  display: inline-block;
}

.hero-text p {
  font-size: 1.2rem;
  color: #4a5b4e;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f4d35e, #e2bc3f);
  color: #2c2b26;
  box-shadow: 0 6px 18px rgba(244, 211, 94, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(244, 211, 94, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  opacity: 0.6;
  color: var(--gold);
}

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

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 24px 0;
  color: #3d4a3f;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.about-stats div {
  font-weight: 500;
  color: #5a6b5c;
}

.about-stats span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #b48c1c;
}

.image-placeholder {
  background: linear-gradient(145deg, #e9f3e5, #d4e6ce);
  border-radius: 32px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 500;
  color: #7f6a2c;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(4px);
}

/* Cards premium */
.cards-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 32px;
  padding: 32px 24px;
  width: 280px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(244, 211, 94, 0.2);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #5b4b1c;
}

/* Terapia - alineación izquierda para section-tag */
.terapia-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.terapia-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 32px;
}

.benefit {
  background: #fef7e0;
  padding: 8px 20px;
  border-radius: 60px;
  font-weight: 500;
  color: #6b561b;
}

/* Testimonios Carrusel */
.testimonial-carousel {
  max-width: 700px;
  margin: 40px auto;
}

.carousel-container {
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  padding: 8px;
}

.track {
  display: flex;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.comment {
  min-width: 100%;
  padding: 32px;
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
}

.comment h4 {
  color: #b48c1c;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.comment p {
  font-size: 1rem;
  margin: 12px 0;
  line-height: 1.5;
  color: #2c3a2f;
}

.comment small {
  font-size: 0.75rem;
  color: #8b9a7a;
}

.delete-btn {
  margin-top: 12px;
  background: rgba(180, 70, 70, 0.1);
  border: none;
  padding: 5px 12px;
  border-radius: 30px;
  color: #a3512b;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.2s;
}

.delete-btn:hover {
  background: rgba(180, 70, 70, 0.3);
}

/* Formulario moderno */
.comment-form-modern {
  max-width: 550px;
  margin: 48px auto 0;
  background: white;
  padding: 32px;
  border-radius: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid #f0efcf;
}

.comment-form-modern h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #5a4519;
}

.form-group {
  margin-bottom: 20px;
}

.comment-form-modern input,
.comment-form-modern textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e2e8d5;
  border-radius: 32px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fefef7;
}

.comment-form-modern textarea {
  border-radius: 24px;
  resize: vertical;
}

.comment-form-modern input:focus,
.comment-form-modern textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(244, 211, 94, 0.2);
}

/* Footer mejorado */
.footer-ios {
  background: #eef5e9;
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(139,111,8,0.2);
  padding: 64px 32px 40px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #6b591f;
}

.footer-brand p, .copyright {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 6px 0;
}

.footer-socials a {
  display: inline-block;
  margin: 0 12px 12px 0;
  text-decoration: none;
  color: #8b6f08;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
}

.footer-socials a:hover {
  color: #f4b842;
  transform: translateY(-2px);
}

.footer-contact p {
  margin: 8px 0;
  font-size: 0.9rem;
}

/* Animaciones reveal optimizadas */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE MEJORADO
========================= */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .cards-grid {
    gap: 24px;
  }
  .card {
    width: 260px;
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-stats {
    justify-content: center;
  }
  .terapia-benefits {
    justify-content: center;
  }
  .terapia-content {
    text-align: center;
  }
  /* Ajuste para que section-tag en terapia también quede centrado en móvil */
  .terapia-content .section-tag {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Menú móvil mejorado */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 80px 20px;
  }
  .nav-links.active {
    right: 0;
  }
  .menu-btn {
    display: block;
    position: relative;
    z-index: 1002;
  }
  .header.scrolled .menu-btn {
    color: var(--gold);
  }
  h2 {
    font-size: 2rem;
  }
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .hero-content {
    padding: 0 20px;
  }
  .hero {
    padding: 100px 0 40px;
  }
  .cards-grid {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
    max-width: 320px;
  }
  .comment-form-modern {
    padding: 24px;
    margin: 32px 16px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .footer-brand, .footer-socials, .footer-contact {
    text-align: center;
  }
  .footer-socials a {
    margin: 0 10px;
  }
}

@media (max-width: 580px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  .section-tag {
    font-size: 0.75rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .comment {
    padding: 20px;
  }
  .carousel-container {
    padding: 4px;
  }
  .scroll-indicator {
    bottom: 15px;
    font-size: 1.2rem;
  }
}

/* Optimización de rendimiento: evitar reflows en animaciones */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}