:root {
  --primary: #4B522B;
  --secondary: #847C4C;
  --accent: #B98621;
  --bg: #FAF8F5;
  --text: #333333;
  --light: #666666;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary); font-weight: 500; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 100px 0; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }

.section-subtitle { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: var(--secondary); margin-bottom: 10px; }
.section-title { font-size: 2.5rem; margin-bottom: 20px; }
.section-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; opacity: 0.8; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-weight: 500; transition: all 0.3s ease; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--white); border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; height: 85px; display: flex; align-items: center; z-index: 999; transition: all 0.4s ease; border-bottom: 1px solid transparent; }
.navbar.scrolled { background: rgba(255, 255, 255, 0.98); height: 70px; border-bottom: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.navbar-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; height: 100%; }
.navbar-logo img { height: 60px; transition: all 0.3s ease; }
.navbar.scrolled .navbar-logo img { height: 50px; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-menu { display: flex; list-style: none; align-items: center; gap: 30px; }
.nav-menu a { font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--accent); }
.btn-nav { border: 1px solid var(--primary); padding: 8px 18px; border-radius: 30px; font-weight: 500; font-size: 0.9rem; transition: all 0.3s; white-space: nowrap; }
.btn-nav:hover { background: var(--primary); color: var(--white); }
.menu-icon { display: none; cursor: pointer; color: var(--primary); }

/* HERO */
.home-section { position: relative; padding: 200px 0 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.home-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease; z-index: 1; }
.home-slide.active { opacity: 1; z-index: 2; }
.home-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(250,248,245,0.9)); z-index: 3; }
.home-content { position: relative; z-index: 10; max-width: 800px; padding: 0 20px; }
.home-title { font-size: 4rem; margin-bottom: 20px; }
.home-subtitle { font-size: 1.15rem; margin-bottom: 40px; color: var(--text); }
.home-actions { display: flex; justify-content: center; gap: 20px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-images { position: relative; height: 500px; }
.img-main { width: 80%; height: 80%; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.img-secondary { position: absolute; bottom: 0; right: 0; width: 55%; height: 55%; object-fit: cover; border-radius: 4px; border: 10px solid var(--bg); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.features-list { margin-top: 30px; }
.feature { display: flex; align-items: center; margin-bottom: 15px; color: var(--primary); font-weight: 500; }
.feature svg { margin-right: 15px; color: var(--accent); }

/* PARALLAX BANNER */
.parallax-banner {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  padding: 120px 0;
  text-align: center;
  color: #fff;
}
.parallax-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(75, 82, 43, 0.75); /* --primary color con opacidad */
  z-index: 1;
}
.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}
.parallax-title {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.parallax-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 1px;
}

/* SERVICES */
.services-section { position: relative; background: var(--bg); }
.parallax-bg { position: absolute; top:0; left:0; width:100%; height:100%; background-size: cover; background-position: center; background-attachment: fixed; opacity: 0.04; z-index: 0; }
.relative-z { position: relative; z-index: 2; }
.treatments-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.treatment-card { display: flex; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.03); cursor: pointer; transition: all 0.3s; border-left: 3px solid transparent; }
.treatment-card:hover { transform: translateY(-5px); border-left-color: var(--accent); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.treatment-img { width: 35%; overflow: hidden; }
.treatment-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.treatment-card:hover .treatment-img img { transform: scale(1.05); }
.treatment-info { width: 65%; padding: 30px 20px; display: flex; flex-direction: column; justify-content: center; }
.t-icon { color: var(--accent); margin-bottom: 10px; }
.treatment-info h3 { font-size: 1.2rem; margin-bottom: 8px; }
.treatment-info p { font-size: 0.9rem; color: var(--light); }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--white); max-width: 500px; width: 90%; border-radius: 8px; overflow: hidden; position: relative; transform: translateY(20px); transition: transform 0.3s; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 15px; background: #fff; border: none; font-size: 1.5rem; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; color: var(--primary); display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal-content img { width: 100%; height: 250px; object-fit: cover; }
.modal-text { padding: 30px; text-align: center; }
.modal-text h3 { font-size: 1.6rem; margin-bottom: 15px; }
.modal-text p { color: var(--light); margin-bottom: 25px; }

/* FOOTER */
.footer { background: var(--primary); color: #fff; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 70px; }
.footer-logo { height: 60px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer p { color: rgba(255,255,255,0.7); display: flex; align-items: center; margin-bottom: 10px; font-size: 0.95rem; }

.footer-bottom {
  background-color: #3b4022; /* Verde más oscuro */
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* GALERIA INFINITA */
.gallery-section {
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  padding: 0 0 80px 0; /* Espacio antes del footer */
}
.gallery-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: scrollGallery 25s linear infinite;
}
.gallery-track:hover {
  animation-play-state: paused;
}
.gallery-track img {
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* TESTIMONIOS */
.testimonials-section { 
  background: linear-gradient(rgba(75, 82, 43, 0.9), rgba(75, 82, 43, 0.9)), url('img/Captura de pantalla 2026-05-25 a la(s) 11.44.30 p. m..png') center/cover fixed; 
  padding: 100px 0;
}
.testimonials-section .section-subtitle,
.testimonials-section .section-title { color: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: #fff; padding: 40px 30px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); text-align: center; border-bottom: 3px solid var(--accent); transition: transform 0.3s; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.stars { margin-bottom: 15px; color: var(--accent); font-size: 1.4rem; letter-spacing: 2px; }
.testimonial-text { font-style: italic; color: var(--light); margin-bottom: 20px; font-size: 0.95rem; }
.testimonial-author { font-weight: 600; color: var(--primary); }

/* BOOKING SECTION */
.booking-section { background-color: var(--white); }
.booking-grid { display: flex; flex-direction: column; max-width: 650px; margin: 0 auto; }
.booking-form-wrapper { background: #fff; padding: 50px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: var(--primary); }
.form-group input, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 1rem; color: var(--text); outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus { border-color: var(--accent); }
.w-100 { width: 100%; }

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); } 
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media(max-width: 768px) {
  .nav-right { gap: 15px; }
  .menu-icon { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    border-top: 1px solid #eee;
  }
  .nav-menu.active { display: flex; }
  .btn-nav { padding: 8px 15px; font-size: 0.8rem; }
  .navbar.scrolled .navbar-logo img { height: 45px; }
  .navbar-logo img { height: 45px; }

  .about-grid, .treatments-grid, .footer-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .home-title { font-size: 2.8rem; }
  .home-actions { flex-direction: column; }
  .treatment-card { flex-direction: column; }
  .treatment-img { width: 100%; height: 200px; }
  .treatment-info { width: 100%; }
  .nav-menu { display: none; }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
