/* ===================================================
   DentaCare – Clínica Odontológica
   style.css
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --mint:    #1a8c6e;
  --mint-lt: #e8f7f3;
  --mint-dk: #0f5c48;
  --cream:   #faf8f4;
  --warm:    #f5f0e8;
  --gold:    #c9a96e;
  --text:    #1e1e1e;
  --muted:   #6b6560;
  --light:   #ede9e2;
  --white:   #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 50px;

  --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.10);
  --shadow-mint: 0 12px 30px rgba(26,140,110,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--mint-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-mint);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--mint);
  border: 1.5px solid var(--mint);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.25s;
}
.btn-outline:hover { background: var(--mint-lt); }

.btn-full { width: 100%; justify-content: center; }

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--mint);
}
.section-label.light { color: rgba(255,255,255,0.65); }
.section-label.light::before { background: rgba(255,255,255,0.4); }

.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 14px; }
.lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
}
.lead.light { color: rgba(255,255,255,0.7); }

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,248,244,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26,140,110,0.08);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--mint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--mint-dk);
  font-weight: 600;
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--mint); }

.nav-cta {
  background: var(--mint);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--mint-dk); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--cream);
  padding: 24px 5% 32px;
  border-bottom: 1px solid var(--light);
  z-index: 199;
  box-shadow: var(--shadow-md);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu.visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu ul { list-style: none; margin-bottom: 20px; }
.mobile-menu ul li { border-bottom: 1px solid var(--light); }
.mobile-menu ul li a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-menu ul li a:hover { color: var(--mint); }
.mobile-cta { width: 100%; justify-content: center; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 5%;
  padding-top: 80px;
  align-items: center;
  gap: 60px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm) 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint-lt);
  color: var(--mint-dk);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
}

.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--mint); }

.hero > .hero-content > p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--light);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--mint-dk);
  font-weight: 600;
  line-height: 1;
}
.stat-lbl { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* Hero Card */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  position: relative;
}
.hero-badge {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: white;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}
.smile-illustration {
  width: 100%;
  height: 210px;
  background: var(--mint-lt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
}
.smile-illustration svg { width: 160px; }

.card-info { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.doctor-ava {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--mint-dk));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.doctor-name { font-weight: 500; font-size: 0.95rem; }
.rating-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; margin: 2px 0; }
.doctor-spec { font-size: 0.78rem; color: var(--muted); }

.next-available {
  background: var(--mint-lt);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.avail-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 2px; }
.avail-time { font-size: 0.9rem; font-weight: 500; color: var(--mint-dk); }
.avail-btn {
  background: var(--mint);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: background 0.2s;
}
.avail-btn:hover { background: var(--mint-dk); }

/* ---------- SERVICES ---------- */
.section { padding: 90px 5%; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--light);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--mint-lt));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 48px; height: 48px;
  background: var(--mint-lt);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.service-price {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--light);
  font-size: 0.82rem;
  color: var(--mint-dk);
  font-weight: 500;
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--warm);
  padding: 90px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-xl);
  height: 500px;
  position: relative;
  overflow: hidden;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-xl);
  transition: transform 0.5s ease;
}
.about-img:hover .about-photo { transform: scale(1.03); }

.team-badges {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  white-space: nowrap;
}
.team-badge {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mint-dk);
  box-shadow: var(--shadow-sm);
}

.about-text h2 { margin-bottom: 14px; }
.about-text > p { color: var(--muted); line-height: 1.8; margin-bottom: 28px; }

.features-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-check {
  width: 28px; height: 28px;
  background: var(--mint-lt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-check svg { width: 14px; height: 14px; }
.feature-title { font-weight: 500; font-size: 0.9rem; margin-bottom: 2px; }
.feature-desc { font-size: 0.82rem; color: var(--muted); }

/* ---------- TESTIMONIALS CAROUSEL ---------- */
.testimonials {
  padding: 90px 5%;
  background: var(--mint-dk);
  color: white;
  overflow: hidden;
}
.testimonials h2 { color: white; }

.testi-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.testi-header h2 { margin-bottom: 10px; }

.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.carousel-btn:hover { background: rgba(255,255,255,0.22); transform: scale(1.06); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; transform: none; }

.carousel-wrapper {
  overflow: hidden;
  margin: 0 -5%;
  padding: 0 5%;
}
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.carousel-track.dragging { cursor: grabbing; transition: none; }

.testi-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: background 0.3s, transform 0.3s;
  flex: 0 0 calc(33.333% - 14px);
  min-width: 260px;
  box-sizing: border-box;
}
.testi-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-3px); }
.testi-rating { color: var(--gold); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text {
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-ava {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.testi-name { font-weight: 500; font-size: 0.88rem; }
.testi-desc { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.carousel-dot.active {
  background: white;
  transform: scale(1.2);
  width: 24px;
  border-radius: 4px;
}

/* ---------- APPOINTMENT ---------- */
.appointment-section { background: var(--cream); }

.appt-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 52px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(26,140,110,0.1);
}
.form-group input.error,
.form-group select.error { border-color: #e24b4a; }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-error {
  display: block;
  font-size: 0.78rem;
  color: #e24b4a;
  margin-top: 5px;
  min-height: 16px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
.form-success {
  display: none;
  background: var(--mint-lt);
  color: var(--mint-dk);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  margin-top: 14px;
}
.form-success.show { display: block; }

.appt-info h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 12px;
  line-height: 1.25;
}
.appt-info > p { color: var(--muted); line-height: 1.75; margin-bottom: 28px; }

.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-icon {
  width: 40px; height: 40px;
  background: var(--mint-lt);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-value { font-weight: 500; font-size: 0.88rem; }
.contact-desc { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }

.hours-box {
  background: var(--warm);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}
.hours-title { font-weight: 500; font-size: 0.85rem; margin-bottom: 12px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--light);
}
.hours-row:last-child { border-bottom: none; }
.hours-day { color: var(--muted); }
.hours-time { font-weight: 500; color: var(--mint-dk); }
.hours-row.closed .hours-time { color: var(--muted); font-weight: 400; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.75;
  max-width: 280px;
  margin-top: 14px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-icon {
  width: 32px; height: 32px;
  background: var(--mint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
}
footer h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  font-family: var(--font-body);
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}
footer ul li a:hover { color: var(--mint); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Scroll Animations ---------- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate="fade-up"]    { transform: translateY(28px); }
[data-animate="fade-left"]  { transform: translateX(28px); }
[data-animate="fade-right"] { transform: translateX(-28px); }
[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .testi-card { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-img { height: 280px; }

  .testi-card { flex: 0 0 calc(100% - 0px); }
  .testi-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .appt-container {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 40px;
  }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section { padding: 60px 5%; }
  .testimonials, .about { padding: 60px 5%; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { justify-content: center; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  [data-animate] { opacity: 1; transform: none; }
}
