*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg-primary: #f4f6fb;
  --bg-secondary: #ebeef5;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-nav: rgba(255,255,255,0.82);
  --bg-footer: #d8dde8;
  --text-primary: #0a0f1d;
  --text-secondary: #141b2e;
  --text-muted: rgba(10,15,29,0.4);
  --text-accent: #059669;
  --border-color: rgba(0,0,0,0.05);
  --border-input: rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 16px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.05);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.07);
  --shadow-glow: 0 8px 40px rgba(5,150,105,0.2);
  --hero-overlay: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.2) 100%);
  --page-hero-overlay: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 100%);
  --map-filter: none;
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
  --btn-secondary-bg: rgba(0,0,0,0.04);
  --btn-secondary-color: #0a0f1d;
  --btn-secondary-border: rgba(0,0,0,0.08);
  --btn-outline-color: #047857;
  --btn-outline-border: #047857;
  --service-bg: #ffffff;
  --features-bg: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  --specialist-bg: linear-gradient(135deg, #ffffff 0%, #f4f6fb 100%);
  --cta-bg: linear-gradient(135deg, #0a0f1d, #059669);
  --nav-border: rgba(0,0,0,0.04);
  --compromiso-bg: #ffffff;
  --gradient-accent: linear-gradient(135deg, #0a0f1d, #059669);
  --gradient-glow: linear-gradient(135deg, #059669, #34d399);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }

.gradient-text {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 8px 32px rgba(5,150,105,0.25);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 48px rgba(5,150,105,0.4);
}
.btn-primary:active { transform: translateY(-1px) scale(1.01); }
.wa-widget { position:fixed; bottom:24px; right:24px; z-index:10000; }
.wa-btn {
  width:56px; height:56px; border-radius:50%;
  background:#25D366; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(37,211,102,0.4);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-btn:hover { transform:scale(1.08); box-shadow:0 6px 28px rgba(37,211,102,0.5); }
.wa-btn svg { width:28px; height:28px; }
.wa-popup {
  position:absolute; bottom:68px; right:0;
  width:320px; background:#fff; border-radius:16px;
  box-shadow:0 8px 40px rgba(0,0,0,0.15);
  overflow:hidden; display:none;
  transform-origin:bottom right;
}
.wa-popup.open { display:block; animation:waPop 0.3s ease; }
@keyframes waPop { from { opacity:0; transform:scale(0.85) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }
.wa-header {
  background:#075E54; color:white; padding:14px 16px;
  display:flex; align-items:center; gap:8px; font-weight:600; font-size:0.9rem;
  flex-wrap:wrap;
}
.wa-body { padding:12px 16px 8px; }
.wa-msg {
  background:#f0f0f0; border-radius:12px 12px 12px 4px;
  padding:10px 14px; margin-bottom:12px;
  font-size:0.85rem; color:#333; max-width:85%;
}
.wa-msg p { margin:0; line-height:1.4; }
.wa-input-row { display:flex; gap:6px; align-items:center; }
.wa-input-row input {
  flex:1; padding:10px 14px; border:1px solid #ddd;
  border-radius:24px; font-size:0.85rem; outline:none; font-family:inherit;
}
.wa-input-row input:focus { border-color:#25D366; }
.wa-send {
  width:40px; height:40px; border-radius:50%;
  background:#25D366; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:white; flex-shrink:0;
}

.nav-reserva { background:#059669 !important; }
.nav-reserva:hover { background:#047857 !important; color:#fff !important; }

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border: 1px solid var(--btn-secondary-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(0,0,0,0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.btn-outline {
  background: transparent;
  color: var(--btn-outline-color);
  border: 2px solid var(--btn-outline-border);
}
.btn-outline:hover {
  background: var(--btn-outline-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.2);
}

.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

/* Navbar */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow-sm);
}
nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5,150,105,0.12), rgba(4,120,87,0.12), transparent);
  pointer-events: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  letter-spacing: 0.3px;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-glow);
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: #059669; }
.nav-links a.active::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1100;
  position: relative;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 3px;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 5% 3rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 50%, rgba(5,150,105,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 80% 60%, rgba(52,211,153,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 300px 300px at 50% 30%, rgba(5,150,105,0.04) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero-overlay-gradient { background: radial-gradient(ellipse 300px 250px at 20% 40%, rgba(5,150,105,0.08) 0%, transparent 60%); }
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.4rem;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: 50px;
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.2rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-gradient-orb {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,0.08) 0%, transparent 65%);
  top: -25%; right: -12%;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero-gradient-orb { width: 400px; height: 400px; top: -15%; right: -30%; }
}

/* Section Common */
section { padding: 6rem 5%; position: relative; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(5,150,105,0.08);
  color: #059669;
  border: 1px solid rgba(5,150,105,0.12);
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}
.section-header p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0.8rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* Services */
.services { background: var(--service-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(5,150,105,0.2); box-shadow: 0 20px 60px rgba(5,150,105,0.06); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(5,150,105,0.12), rgba(52,211,153,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #059669;
  margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text-primary); }
.service-card .sub { font-size: 0.8rem; color: #059669; font-weight: 600; margin-bottom: 0.8rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.service-card ul { list-style: none; margin: 1rem 0; }
.service-card ul li {
  padding: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card ul li i { color: #059669; font-size: 0.75rem; }

/* Features */
.features { background: var(--features-bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 3rem auto 0;
}
.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(5,150,105,0.15); box-shadow: 0 20px 50px rgba(5,150,105,0.06); }
.feature-card:hover::before { opacity: 1; }
.feature-card .fc-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* Specialist */
.specialist-section {
  background: var(--specialist-bg);
  position: relative;
  overflow: hidden;
}
.specialist-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,0.06), transparent 70%);
  pointer-events: none;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 900;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -1px;
}
.stat-item p { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.4rem; font-weight: 500; letter-spacing: 0.3px; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.4s;
}
.value-card:hover { transform: translateY(-6px); border-color: rgba(5,150,105,0.15); box-shadow: 0 16px 40px rgba(5,150,105,0.06); }
.value-card:hover::before { opacity: 1; }
.value-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(5,150,105,0.12), rgba(52,211,153,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #059669;
  margin: 0 auto 1rem;
}
.value-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.value-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* Slot buttons */
.slot-btn {
  padding: 0.65rem 1.1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}
.slot-btn:hover {
  border-color: #059669;
  background: rgba(5,150,105,0.06);
  color: #059669;
  box-shadow: 0 4px 16px rgba(5,150,105,0.1);
}
.slot-btn.selected {
  border-color: #059669;
  background: rgba(5,150,105,0.1);
  color: #059669;
  box-shadow: 0 4px 16px rgba(5,150,105,0.15);
}
.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Calendar notice */
.calendar-notice {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, rgba(5,150,105,0.06), rgba(52,211,153,0.04));
  border: 1px solid rgba(5,150,105,0.1);
  border-radius: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.calendar-notice i { color: #059669; font-size: 1.1rem; }

/* Captcha */
.captcha-box {
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  transition: border-color 0.3s;
}
.captcha-box:focus-within {
  border-color: rgba(5,150,105,0.2);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.05);
}
.captcha-box input[type="checkbox"] { display: none; }
.captcha-box label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  width: 100%;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}
.captcha-check {
  width: 28px; height: 28px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
  background: transparent;
}
.captcha-check i { font-size: 0.8rem; color: transparent; transition: color 0.25s ease; }
.captcha-box input[type="checkbox"]:checked + label .captcha-check {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: transparent;
}
.captcha-box input[type="checkbox"]:checked + label .captcha-check i { color: #fff; }
.captcha-text { flex: 1; }
.captcha-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.5px;
}
.captcha-badge i { font-size: 0.8rem; }

/* CTA */
.cta-section {
  background: var(--cta-bg);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 5%;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 65%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 65%);
  pointer-events: none;
}

/* Footer */
footer {
  background: var(--bg-footer);
  padding: 4rem 5% 2rem;
  color: var(--text-muted);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5,150,105,0.12), rgba(52,211,153,0.12), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}
.footer-col h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: 0.5px;
}
.footer-col p, .footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
  line-height: 1.6;
}
.footer-col a:hover { color: #059669; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Page hero */
.page-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5% 3rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: var(--page-hero-overlay);
}

/* Touch-friendly base */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-toggle, .slot-btn, .wa-btn, .captcha-box label { cursor: default; -webkit-tap-highlight-color: transparent; }
  .btn:active, .slot-btn:active { transform: scale(0.97); }
}

/* ===== RESPONSIVE ===== */

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 80vw);
    height: 100dvh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.25rem;
    list-style: none;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.08);
    overflow-y: auto;
    display: flex !important;
    border: none;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-links.open li {
    opacity: 1;
    transform: translateX(0);
  }
  .nav-links.open li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.25s; }
  .nav-links a {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    transition: all 0.25s ease;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: rgba(5,150,105,0.06); color: #059669 !important; }
  .nav-links a.active { color: #059669 !important; background: rgba(5,150,105,0.08); }
  .nav-links .nav-reserva {
    margin-top: 0.5rem;
    padding: 0.8rem 1rem !important;
    font-size: 0.95rem !important;
    justify-content: center;
    border-radius: 14px !important;
    text-shadow: none !important;
  }
  .nav-links .nav-reserva svg { width: 16px !important; height: 16px !important; }
}

@media (max-width: 768px) {
  /* General */
  section { padding: 3rem 5%; }
  .section-header h2 { font-size: 1.6rem; }

  /* Hero */
  .hero { min-height: auto; padding: 5.5rem 5% 3rem; }
  .hero h1 { font-size: 2rem; letter-spacing: -1.5px; }
  .hero p { font-size: 0.92rem; max-width: 100%; margin-bottom: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 0.9rem 1.8rem; }
  .hero-badge { font-size: 0.65rem; padding: 0.4rem 1rem; }

  /* Service cards */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card[style*="grid-column"] > div { grid-template-columns: 1fr !important; }

  /* Features */
  .features-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .feature-card { padding: 1.8rem 1.2rem; }

  /* Values / stats */
  .values-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; }

  /* Specialist photo grid */
  .km-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }

  /* Contact page */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .booking-card, .contact-info-card, .cta-card { padding: 1.5rem; border-radius: 18px; }

  /* Calendar / slot */
  .slot-grid { gap: 0.4rem; }
  .slot-btn { padding: 0.55rem 0.9rem; font-size: 0.82rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  footer { padding: 3rem 5% 1.5rem; }

  /* WhatsApp */
  .wa-widget { bottom: 16px; right: 16px; }
  .wa-btn { width: 50px; height: 50px; }
  .wa-btn svg { width: 24px; height: 24px; }
  .wa-popup { width: calc(100vw - 32px); right: 0; bottom: 60px; }

  /* Page hero */
  .page-hero { min-height: 40vh; padding: 6rem 5% 2rem; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: 0.92rem; }

  /* Select options */
  select option { background: var(--bg-primary); color: var(--text-primary); }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .hero-badge { font-size: 0.6rem; }
  .section-header h2 { font-size: 1.4rem; }
  .compromiso-badge { flex-direction: column; text-align: center; padding: 1rem 1.2rem; border-radius: 24px; }
  .compromiso-badge .cb-icon { width: 40px; height: 40px; border-radius: 12px; }
  .compromiso-badge .cb-icon svg { width: 20px; height: 20px; }
  .km-photo { aspect-ratio: 1/1; max-width: 280px; margin: 0 auto; }
  .fc-icon { width: 48px; height: 48px; border-radius: 14px; }
  .fc-icon svg { width: 22px; height: 22px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 1.5rem; }
  .logo-img { height: 34px; }
  .nav-links { width: 100vw; }
}
