/* =============================================
   DOCTORA SAMANTA WAJNFELD — Estilos Globales
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Lato:wght@300;400;600;700&display=swap');

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:      #7D5763;
  --primary-dark: #5e3f4a;
  --dark:         #1D1E20;
  --gray:         #56585E;
  --text-light:   #A68F98;
  --white:        #FFFFFF;
  --bg-light:     #F9F5F6;
  --border:       #e8dde0;
  --font-heading: 'Lato', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === TIPOGRAFÍA === */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 3.5rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--gray);
  line-height: 1.4;
}

h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* === BOTONES === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 2px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
}

/* === NAVEGACIÓN === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(125,87,99,0.12);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(125,87,99,0.06);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 8px 0;
  z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--gray);
  transition: color 0.2s, padding-left 0.2s;
}

.dropdown-menu a:hover {
  color: var(--primary);
  padding-left: 28px;
}

/* Nav social icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.nav-social a {
  color: var(--gray);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.nav-social a:hover {
  color: var(--primary);
}

.nav-social svg {
  width: 18px;
  height: 18px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 32px 24px;
  gap: 4px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--dark);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav .submenu-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  padding: 12px 0 4px;
}

.mobile-nav .sub-link {
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--gray);
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-logo {
  width: 220px;
  opacity: 0.95;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

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

/* === PAGE HERO (subpages) === */
.page-hero {
  padding-top: 72px;
  background: var(--bg-light);
  padding-bottom: 60px;
  text-align: center;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px 0;
}

.page-hero h1 {
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
  margin-top: 12px;
  font-size: 1.1rem;
}

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === SECTION === */
.section {
  padding: 80px 0;
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* === SERVICIOS GRID === */
.services-section {
  padding: 80px 0;
  background: var(--white);
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-header h2 {
  margin-bottom: 8px;
}

.services-header p {
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
  box-shadow: 0 12px 36px rgba(125,87,99,0.15);
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.service-card-body {
  padding: 28px;
}

.service-card-body h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.service-card-body p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-card-body .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}

.service-card-body .btn-link:hover {
  gap: 10px;
}

/* === SOBRE MÍ === */
.about-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  border-radius: 8px;
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 16px;
}

.about-credentials {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray);
}

.credential-item::before {
  content: "•";
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.certifications {
  margin-top: 36px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.certifications img {
  height: 56px;
  width: auto;
  filter: grayscale(30%);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.certifications img:hover {
  opacity: 1;
}

/* === WHY CHOOSE ME === */
.why-section {
  padding: 80px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.why-item h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.why-item p {
  font-size: 0.95rem;
}

.why-image img {
  border-radius: 8px;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* === TESTIMONIALES === */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px;
  border: 1px solid var(--border);
}

.stars {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* === FAQ === */
.faq-section {
  padding: 80px 0;
  background: var(--white);
}

.faq-list {
  max-width: 780px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 22px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* === CTA BAND === */
.cta-band {
  padding: 80px 0;
  background: var(--primary);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* === INSTAGRAM STRIP === */
.instagram-section {
  padding: 60px 0;
  background: var(--bg-light);
  text-align: center;
}

.instagram-section h2 {
  margin-bottom: 8px;
}

.instagram-section p {
  margin-bottom: 32px;
}

.instagram-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.instagram-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--primary);
  border-radius: 4px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.instagram-links a:hover {
  background: var(--primary);
  color: var(--white);
}

.instagram-links svg {
  width: 18px;
  height: 18px;
}

/* === FOOTER === */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-logo p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-col p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 32px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.4;
}

/* === SUBPAGE SERVICES === */
.subservices-section {
  padding: 80px 0;
  background: var(--white);
}

.subservice-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

/* === CONTACT PAGE === */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.contact-info h2 {
  margin-bottom: 40px;
}

.contact-branch {
  margin-bottom: 40px;
}

.contact-branch h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail p {
  font-size: 0.9rem;
}

.contact-detail a {
  color: var(--primary);
  text-decoration: underline;
  font-size: 0.9rem;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--primary);
  margin: 32px 0;
  opacity: 0.4;
}

/* === TRATAMIENTOS === */
.tratamiento-desc {
  max-width: 800px;
  margin: 0 auto 56px;
  text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    gap: 48px;
  }
  .subservice-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-social {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img,
  .contact-image img {
    height: 400px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .subservice-row {
    grid-template-columns: 1fr;
  }

  .certifications {
    gap: 12px;
  }

  .certifications img {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 56px 0;
  }
  .hero-content {
    padding: 0 20px;
  }
  .nav-inner {
    padding: 0 20px;
  }
  .mobile-nav {
    padding: 16px 20px 24px;
  }
  .instagram-links {
    flex-direction: column;
    align-items: center;
  }
}
