:root {
  --primary-color: #4A7C82;
  /* Teal from logo */
  --secondary-color: #B68D40;
  /* Gold from logo */
  --bg-dark: #B68D40;
  /* Gold as background */
  --bg-light: #f8fafc;
  --text-primary: #0f172a;
  /* Dark text for contrast */
  --text-secondary: #334155;
  --accent-color: #4A7C82;
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-primary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 60px 0;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 124, 130, 0.3);
}

.btn-primary:hover {
  background-color: #3e6a6f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(74, 124, 130, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  /* Instead of a black border, we use an elegant drop-shadow to separate it from backgrounds */
  box-shadow: 0 4px 15px rgba(182, 141, 64, 0.4);
}

.btn-secondary:hover {
  background-color: #a37e39;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(182, 141, 64, 0.5);
}

/* Specific contrast rule for secondary buttons on gold backgrounds or standalone Ver Más buttons */
#about .btn-secondary,
.cta-section .btn-secondary,
.story-actions .btn-secondary {
  background-color: #a37e39;
  /* Darker gold permanently so it separates from the gold background */
}

#about .btn-secondary:hover,
.cta-section .btn-secondary:hover,
.story-actions .btn-secondary:hover {
  background-color: #8b6b2d;
  /* Even darker on hover */
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

.section-subtitle {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title-center {
  text-align: center;
  margin-bottom: 30px;
}

.center-btn-container {
  text-align: center;
  margin-top: 35px;
}

.footer-text {
  margin-top: 35px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-location {
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-location i {
  color: var(--secondary-color);
  margin-right: 6px;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled .nav-links a {
  color: var(--primary-color);
  text-shadow: none;
}

/* Ensure the button stays perfectly white on scroll */
nav.scrolled .nav-links a.btn-primary {
  color: white;
}

nav.scrolled .nav-links a.btn-primary:hover {
  color: white;
  background-color: #3e6a6f;
}

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

nav.scrolled .nav-toggle {
  color: var(--primary-color);
}

nav.scrolled .logo img {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  mix-blend-mode: multiply;
  transform: scale(1.1);
  /* Slightly enlarge to compensate for lost padding */
}

nav.scrolled .logo img:hover {
  transform: scale(1.15);
  box-shadow: none;
}

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

.logo img {
  height: 80px;
  width: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 5px;
  box-shadow: 0 0 15px rgba(182, 141, 64, 0.3);
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
  /* Perfect vertical symmetry for text vs buttons */
}

.nav-links a {
  text-decoration: none;
  color: white;
  /* Changed from text-primary to white for visibility on dark backgrounds/hero */
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  /* Shadow to ensure it shows over the hero image */
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary-color);
  /* Hover shifts to gold */
}

/* Social icons in navbar */
.nav-socials {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon:hover {
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-bg {
  background: linear-gradient(135deg, rgba(10, 40, 60, 0.80), rgba(30, 70, 90, 0.70), rgba(15, 23, 42, 0.75)), url('CONSULTORIO-NEW1.webp') no-repeat center center/cover;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: white;
  /* Make sure base title is white/light for contrast */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  /* Premium shadow for legibility */
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  /* White with slight transparency instead of dark secondary */
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

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

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

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.story-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.story-full {
  max-height: 4500px;
  opacity: 1;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-full.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

/* Reemplaza los <br> hardcodeados dentro de story-full */
.story-full .story-subtitle:first-child {
  margin-top: 30px;
}

.story-list {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.story-list li {
  margin-bottom: 10px;
}

.btn-minimal {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 25px;
}

.btn-minimal:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Doctor Name Badge */
.about-name-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(15, 32, 39, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  z-index: 2;
  border-left: 2px solid var(--secondary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.about-name-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary-color);
}

.about-name-full {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.about-img::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--secondary-color);
  border-radius: 30px;
  z-index: -1;
}

/* Qué Aprenderás Section */
.aprenderas-bg {
  background: white;
  /* changed to full white background per request */
}

.aprenderas-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
  /* Reduced from 50px for symmetry */
}

.aprenderas-header h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.aprenderas-header p.description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Infografia / Pilares Section Layout */
.infografia-section {
  background: white;
}

/* New Pilares Layout: Logo left, 6 pillars right */
.pilares-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  align-items: center;
  margin-top: 30px;
}

.pilares-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pilares-logo img {
  width: 100%;
  max-width: 380px;
  height: auto;
  mix-blend-mode: multiply;
  transition: transform 0.5s ease;
}

.pilares-logo img:hover {
  transform: scale(1.05);
}

.pilares-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pilar-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(182, 141, 64, 0.04), rgba(182, 141, 64, 0.08));
  border: 1px solid rgba(182, 141, 64, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pilar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(182, 141, 64, 0.12);
  border-color: rgba(182, 141, 64, 0.3);
}

/* Hexagonal icon image */
.hex-icon-img {
  width: 55px;
  height: 55px;
  min-width: 55px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pilar-card:hover .hex-icon-img {
  transform: scale(1.1);
}

.pilar-text h4 {
  color: #8B6914;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 5px;
}

.pilar-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Features/Services Section */
#services {
  background: white;
  position: relative;
  overflow: hidden;
}

/* Elegant fade edges to hint at scrollable content */
#services .container {
  position: relative;
}

#services .container::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 80px;
  height: 100%;
  background: linear-gradient(to left, white, transparent);
  z-index: 2;
  pointer-events: none;
}

.services-grid {
  display: flex;
  gap: 25px;
  margin-top: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 5px 30px;
  scroll-behavior: smooth;
}

/* Elegant thin scrollbar */
.services-grid::-webkit-scrollbar {
  height: 4px;
}

.services-grid::-webkit-scrollbar-track {
  background: transparent;
}

.services-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
}

.service-card-detailed {
  display: flex;
  flex-direction: column;
  min-width: 360px;
  max-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(182, 141, 64, 0.35);
  border-radius: 20px;
  padding: 30px;
  background: linear-gradient(135deg, #f5f0e8, rgba(182, 141, 64, 0.10));
  box-shadow: 0 4px 20px rgba(182, 141, 64, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card-detailed:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(182, 141, 64, 0.25);
  border-color: rgba(182, 141, 64, 0.55);
}

.service-card-detailed h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.3;
  white-space: normal;
  /* Permite salto de línea en mobile */
  word-break: break-word;
}

.service-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge {
  background: linear-gradient(135deg, rgba(74, 124, 130, 0.08), rgba(182, 141, 64, 0.08));
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(74, 124, 130, 0.1);
}

.service-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

/* InBody Section */
.inbody-features {
  margin: 20px 0;
  list-style-position: inside;
  color: var(--text-secondary);
}

.inbody-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: start;
}

.inbody-3col {
  grid-template-columns: 1.2fr auto 1fr;
  align-items: center;
}

.inbody-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.inbody-prep {
  background: linear-gradient(135deg, rgba(74, 124, 130, 0.05), rgba(182, 141, 64, 0.05));
  border: 1px solid rgba(74, 124, 130, 0.12);
  border-radius: 16px;
  padding: 25px;
  width: 100%;
  max-width: 450px;
}

.inbody-prep ul {
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  list-style: none;
}

.inbody-prep ul li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 20px;
}

.inbody-prep ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.inbody-prep-warning {
  margin-top: 18px;
  background: rgba(180, 60, 60, 0.08);
  border: 1px solid rgba(180, 60, 60, 0.2);
  border-left: 4px solid #c0392b;
  border-radius: 10px;
  padding: 15px 18px;
}

.inbody-prep-warning p {
  font-size: 0.95rem;
  color: #c0392b;
  font-weight: 700;
  margin-bottom: 8px;
}

.inbody-prep-warning p i {
  margin-right: 6px;
}

.inbody-prep-warning ul {
  padding-left: 18px;
  list-style: disc;
  font-size: 0.88rem;
  color: #7a2020;
}

.inbody-prep-warning ul li {
  margin-bottom: 4px;
  padding-left: 0;
}

.inbody-prep-warning ul li::before {
  display: none;
}

.inbody-img img {
  width: 100%;
  max-width: 450px;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(182, 141, 64, 0.4));
  animation: float-inbody 6s ease-in-out infinite;
}

@keyframes float-inbody {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Footer/CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(to bottom, transparent, rgba(74, 124, 130, 0.05));
}

/* Reviews Section Premium - Matching Services Grid Style */
.reviews-section {
  padding: 80px 0;
  background-color: white !important;
  /* Force white background to override body gold */
  position: relative;
  overflow: hidden;
}

.reviews-wrapper {
  position: relative;
  width: 100%;
}

.reviews-horizontal-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 25px;
  margin-top: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 5px 40px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.reviews-horizontal-grid::-webkit-scrollbar {
  height: 4px;
}

.reviews-horizontal-grid::-webkit-scrollbar-track {
  background: transparent;
}

.reviews-horizontal-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
}

.review-card-premium {
  min-width: 350px;
  max-width: 350px;
  flex: 0 0 350px !important;
  scroll-snap-align: start;
  padding: 30px;
  background: white;
  /* Solid background for legibility */
  border: 1px solid rgba(182, 141, 64, 0.2);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.review-card-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(182, 141, 64, 0.1);
}

.review-stars {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.review-body {
  flex-grow: 1;
  margin-bottom: 25px;
}

.review-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  /* Cleaner font for minimalist look */
  font-weight: 300;
  /* Light weight */
}

.review-footer-premium {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(182, 141, 64, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.review-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.review-link-premium {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(74, 124, 130, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 124, 130, 0.2);
}

.review-link-premium:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.review-link-premium i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .review-card-premium {
    min-width: calc(100vw - 60px);
    max-width: calc(100vw - 60px);
    padding: 25px;
  }
}

.cta-section h2 {
  margin-bottom: 30px;
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.social-link {
  font-size: 2rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}

.social-link.instagram-link:hover {
  background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-5px);
  filter: drop-shadow(0 4px 8px rgba(220, 39, 67, 0.4));
}

.social-link.whatsapp-link:hover {
  color: #25D366;
  filter: drop-shadow(0 4px 8px rgba(37, 211, 102, 0.4));
}

/* Service detail styles (moved from inline) */
.service-detail-list {
  padding-left: 20px;
  font-size: 0.95rem;
}

.service-detail-note {
  margin-top: 15px;
}

.service-inbody-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--secondary-color);
  font-style: italic;
}

.service-inbody-note a {
  color: var(--primary-color);
  text-decoration: underline;
}

.service-contraindication {
  margin-top: 15px;
  color: #a37e39;
}

/* InBody features grid */
.inbody-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style-type: none;
  padding-left: 0;
}

/* Motivation Section */
.motivation-section {
  padding: 80px 0;
  background: #ffffff;
}

.motivation-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.motivation-icon {
  margin-bottom: 30px;
}

.motivation-icon i {
  font-size: 2.2rem;
  color: var(--primary-color);
  opacity: 0.8;
  filter: drop-shadow(0 0 12px rgba(74, 124, 130, 0.3));
}

.motivation-lead {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #2c2c2c;
  margin-bottom: 24px;
}

.motivation-lead strong {
  color: var(--primary-color);
}

.motivation-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #3a3a3a;
  margin-bottom: 28px;
}

.motivation-body em {
  color: var(--secondary-color);
  font-style: italic;
}

.motivation-closing {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 500;
  border-left: 3px solid var(--secondary-color);
  padding-left: 24px;
  text-align: left;
  margin: 0 auto 35px;
  max-width: 600px;
}

.motivation-closing strong {
  color: var(--primary-color);
}

.motivation-closing em {
  color: var(--secondary-color);
}

.motivation-cta {
  text-align: center;
}

.inbody-features i.fa-check {
  color: var(--primary-color);
  margin-right: 6px;
}

/* InBody prep section refinements */
.inbody-prep-title {
  margin-top: 0;
}

.inbody-prep-title i {
  margin-right: 8px;
}

.inbody-prep-disclaimer {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Story actions spacing variant */
.story-actions-spaced {
  margin-top: 30px;
}

/* Disabled button */
.btn-disabled {
  pointer-events: none;
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-coming-soon {
  font-size: 0.8em;
  font-weight: normal;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   PREMIUM ANIMATIONS & EFFECTS
   ============================================ */

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a2830, #1a3a40, #0f2027);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  animation: pulse-load 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(182, 141, 64, 0.5));
}

.loading-bar {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 25px;
  overflow: hidden;
}

.loading-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  animation: load-bar 1.5s ease-in-out forwards;
}

@keyframes pulse-load {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes load-bar {
  0% {
    width: 0%;
  }

  60% {
    width: 80%;
  }

  100% {
    width: 100%;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 1001;
  width: 0%;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(74, 124, 130, 0.5);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered reveal for children */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.revealed>*:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-stagger.revealed>*:nth-child(2) {
  transition-delay: 0.15s;
}

.reveal-stagger.revealed>*:nth-child(3) {
  transition-delay: 0.25s;
}

.reveal-stagger.revealed>*:nth-child(4) {
  transition-delay: 0.35s;
}

.reveal-stagger.revealed>*:nth-child(5) {
  transition-delay: 0.45s;
}

.reveal-stagger.revealed>*:nth-child(6) {
  transition-delay: 0.55s;
}

.reveal-stagger.revealed>* {
  opacity: 1;
  transform: translateY(0);
}

/* Image Reveal (Curtain Effect) */
.img-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.revealed {
  clip-path: inset(0 0% 0 0);
}

/* About image golden overlay reveal */
.about-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  border-radius: 30px;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.2s;
  z-index: 1;
}

.about-img.revealed::after {
  transform: scaleX(0);
}

/* 3D Tilt Effect */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(74, 124, 130, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 30px rgba(74, 124, 130, 0.6);
}

/* Floating Social Buttons */
.floating-social-buttons {
  position: fixed;
  right: 30px;
  bottom: 100px;
  /* Above the back-to-top button */
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 998;
}

.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-ig {
  background: linear-gradient(45deg, rgba(230, 104, 60, 0.5) 0%, rgba(220, 39, 67, 0.5) 50%, rgba(188, 24, 136, 0.5) 100%);
}

.float-wa {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.5), rgba(18, 140, 126, 0.5));
}

.float-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: white;
}

.float-ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.float-wa:hover {
  background: #25D366;
}

/* Wave Section Dividers */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 70px;
}

/* Pillar Pulse Animation */
.pilar-card .hex-icon-img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pilar-pulse .hex-icon-img {
  animation: pilar-icon-pulse 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pilar-icon-pulse {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }

  60% {
    transform: scale(1.15) rotate(3deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Setmore Booking Loader */
.setmore-loader-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2147483647 !important;
  /* Absolute max z-index */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-out;
}

.setmore-loader-container.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.setmore-loader-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.setmore-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(182, 141, 64, 0.2);
  border-top-color: #B68D40;
  border-radius: 50%;
  animation: setmore-spin 1s linear infinite;
}

@keyframes setmore-spin {
  to {
    transform: rotate(360deg);
  }
}

.setmore-loader-text {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Social Link Glow Effect */
.social-link {
  position: relative;
  z-index: 1;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 124, 130, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.6);
  z-index: -1;
}

.social-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.social-link.instagram-link:hover::before {
  background: radial-gradient(circle, rgba(220, 39, 67, 0.2), transparent 70%);
}

.social-link.whatsapp-link:hover::before {
  background: radial-gradient(circle, rgba(37, 211, 102, 0.2), transparent 70%);
}

/* Parallax Hero Enhancement */
.hero-bg {
  background-attachment: scroll;
}

.hero-content h1,
.hero-content p {
  transition: transform 0.1s linear;
}

/* ============================================
   CONTACT & LOCATION — PREMIUM
   ============================================ */
.contact-location-section {
  padding: 100px 0;
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.contact-location-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.contact-location-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-location-info .section-subtitle {
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.contact-location-info h2 {
  margin-bottom: 35px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.contact-location-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-location-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-location-item>i {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: rgba(182, 141, 64, 0.12);
  border: 1px solid rgba(182, 141, 64, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-location-item:hover>i {
  background: rgba(182, 141, 64, 0.25);
  border-color: var(--secondary-color);
  transform: scale(1.08);
}

.contact-location-item h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.contact-location-item p,
.contact-location-item a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.contact-location-item a {
  text-decoration: none;
  transition: var(--transition);
}

.contact-location-item a:hover {
  color: var(--secondary-color);
}

.contact-location-map {
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.contact-location-map:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
}

.footer-credit i {
  color: var(--primary-color);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.footer-credit a:hover {
  color: var(--secondary-color);
}

/* Media Queries */
@media (max-width: 900px) {
  .pilares-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pilares-logo img {
    max-width: 250px;
  }

  .pilares-grid {
    grid-template-columns: 1fr;
  }

  .contact-location-grid {
    grid-template-columns: 1fr;
  }

  .contact-location-map {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .inbody-section {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-img::before {
    display: none;
  }

  /* Hero: centrar texto y achicar botones en mobile */
  .hero-content {
    text-align: center;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn {
    width: auto;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
  }

  .wave-divider svg {
    height: 40px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .tilt-card {
    transform: none !important;
  }

  /* En mobile se oculta el fade de borde del carrusel para no cortar el contenido */
  #services .container::after {
    display: none;
  }

  /* Tarjetas de servicio más anchas en mobile para mejor lectura */
  .service-card-detailed {
    min-width: 320px;
    max-width: 320px;
  }

  /* Títulos de servicio más pequeños en mobile para que entren en la caja */
  .service-card-detailed h3 {
    font-size: 1.05rem;
  }

  /* Ajuste de botones flotantes para pantallas chicas */
  .floating-social-buttons {
    right: 15px;
    bottom: 80px;
    gap: 10px;
  }

  .float-btn {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
}