@font-face {
  font-family: 'AkzidenzGroteskBQ-Light';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/AkzidenzGroteskBQ-Light.ttf') format('truetype');
}

:root {
  --primary: #8B4526;
  --primary-hover: #8B4627;
  --secondary: #E6DED3;
  --secondary-hover: #D5C6B2;
  --bg: #FEFEFE;
  --text: #2D2D2D;
  --white: #FFFFFF;
  --shadow: 0 0 10px 0 rgba(0,0,0,0.08);
  --max-width: 1140px;
}

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

body {
  font-family: 'AkzidenzGroteskBQ-Light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--primary);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'AkzidenzGroteskBQ-Light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary);
}
p { margin-top: 0; margin-bottom: 0.9rem; color: var(--primary); }
a { text-decoration: none; color: var(--primary); transition: 0.3s; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }

/* ─── Header ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg); box-shadow: var(--shadow);
}
.header.scrolled { background: rgba(254,254,254,0.97); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 15px;
}
.header-logo { padding: 10px 0; }
.header-logo img { width: 180px; }

.nav-list { display: flex; align-items: center; }
.nav-list a {
  display: block; padding: 10px 20px;
  font-size: 1rem; font-weight: 500; color: var(--primary);
  transition: 0.3s;
}
.nav-list a:hover, .nav-list a.active { color: var(--primary-hover); }

.nav-social { display: flex; align-items: center; gap: 5px; margin-left: 15px; }
.nav-social a {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary); color: var(--white); font-size: 14px; transition: 0.3s;
}
.nav-social a:hover { background: var(--white); color: var(--primary); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.menu-toggle span { width: 26px; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.3s; display: block; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero ─── */
.hero {
  min-height: 85vh; display: flex; align-items: center; justify-content: center;
  position: relative;
  background-color: var(--secondary);
  background-image: url('../assets/images/hero-bg.jpeg');
  background-position: center; background-repeat: no-repeat; background-size: cover;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-color: var(--secondary); opacity: 0.8; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 0 15px; }
.hero h1 {
  font-size: 48px; font-weight: 600; color: var(--primary);
  letter-spacing: 1px; line-height: 44px; margin-bottom: 5px;
}
.hero p {
  font-size: 26px; font-weight: 500; font-style: italic; color: var(--primary);
  letter-spacing: 1px; line-height: 44px; margin-bottom: 0;
}

/* ─── Section ─── */
.section { padding: 100px 15px; }
.section.procedure-content { padding: 20px 15px 80px; }
.section-alt { background: var(--secondary); }
.section-sm { padding: 50px 15px; }

/* ─── Logo Strip ─── */
.logo-strip-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: var(--max-width); margin: 0 auto;
}
.logo-strip-text { text-align: center; }
.logo-strip-text h2 {
  font-size: 26px; font-weight: 500; line-height: 35px;
  letter-spacing: 1px; color: var(--primary);
}
.logo-strip-image { text-align: center; }
.logo-strip-image img { max-width: 280px; margin: 0 auto; }

/* ─── Doctor ─── */
.doctor-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: var(--max-width); margin: 0 auto;
}
.doctor-min-height { min-height: 50vh; display: flex; align-items: center; }
.doctor-image img { width: 100%; }
.doctor-info h2 { font-size: 2rem; margin-bottom: 10px; }
.doctor-info p { font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
.doctor-info .doctor-quote {
  font-style: italic; line-height: 1.8;
  padding: 15px 0 0; border-top: 1px solid rgba(139,69,38,0.15);
  margin-top: 10px;
}
.doctor-social { display: flex; gap: 8px; margin-top: 20px; }
.doctor-social a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary); color: var(--white); font-size: 18px; transition: 0.3s;
}
.doctor-social a:hover { background: var(--white); color: var(--primary); }

/* ─── Procedures Grid ─── */
.procedures-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: var(--max-width); margin: 0 auto;
}
a.procedure-card { color: var(--primary); text-decoration: none; }
.procedure-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 150px; padding: 15px;
  background: var(--secondary);
  border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: 0.3s; cursor: pointer;
}
.procedure-card:hover { background: var(--secondary-hover); }
.procedure-card h3 {
  font-size: 16px; font-weight: 600; letter-spacing: 1px;
  line-height: 22px; margin-bottom: 4px;
}
.procedure-card span {
  font-size: 14px; font-weight: 600; letter-spacing: 1px;
  line-height: 18px; display: block;
}

/* ─── Section Title ─── */
.section-title {
  text-align: center; font-size: 28px; font-weight: 500;
  letter-spacing: 1px; margin-bottom: 30px;
}

/* ─── Testimonials ─── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: var(--max-width); margin: 0 auto;
}
.testimonial-card {
  background: var(--white); padding: 25px; border-radius: 4px;
  box-shadow: var(--shadow);
}
.testimonial-card .quote { font-size: 0.95rem; line-height: 1.7; margin-bottom: 12px; font-style: italic; }
.testimonial-card .author { font-weight: 600; font-size: 0.9rem; }

/* ─── Gallery ─── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: var(--max-width); margin: 0 auto;
}
.gallery-grid img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: 4px; transition: 0.3s; cursor: pointer;
}
.gallery-grid img:hover { opacity: 0.85; }

/* ─── Contact Info ─── */
.contact-info-section {
  background: var(--secondary); padding: 60px 15px;
}
.contact-info-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 30px;
  max-width: var(--max-width); margin: 0 auto; align-items: start;
}
.contact-info-grid .logo-col { display: flex; align-items: center; justify-content: center; }
.contact-info-grid .logo-col img { max-width: 180px; }
.contact-info-grid h6 {
  font-size: 1rem; font-weight: 600; letter-spacing: 1px;
  margin-bottom: 10px;
}
.contact-info-grid p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }

/* ─── Footer ─── */
.footer {
  background: var(--primary); color: var(--white); text-align: center; padding: 20px 15px;
}
.footer p { color: var(--white); font-size: 0.9rem; margin-bottom: 0; opacity: 0.9; }
.footer a { color: var(--white); }

/* ─── WhatsApp Float ─── */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  width: 52px; height: 52px; background: #25D366; color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 20px rgba(37,211,102,0.35); transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.08); color: var(--white); }

/* ─── Page Header ─── */
.page-header { padding: 100px 15px 50px; text-align: center; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-header p { font-size: 1.1rem; margin-bottom: 0; }

@media (max-width: 768px) {
  .page-header { padding: 80px 15px 30px; }
  .page-header h1 { font-size: 1.8rem; }
}

/* ─── Procedures Page ─── */
.procedures-page-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: var(--max-width); margin: 0 auto; padding-bottom: 60px;
}

/* ─── Consulta Page ─── */
.consulta-content { max-width: var(--max-width); margin: 0 auto; padding: 50px 15px 80px; }
.consulta-content h2 { font-size: 1.6rem; margin-bottom: 20px; }
.consulta-content h3 { font-size: 1.3rem; margin-bottom: 15px; margin-top: 15px; }
.consulta-content h4 { font-size: 1.05rem; margin-bottom: 8px; margin-top: 20px; font-weight: 600; }
.consulta-content p { font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.consulta-content ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.consulta-content ul li { margin-bottom: 8px; line-height: 1.7; color: var(--primary); }
.consulta-content img { margin: 20px auto; }
.consulta-signature { font-size: 1rem; margin-top: 30px; font-style: italic; }

/* ─── Contact Page ─── */
.contact-page-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  max-width: var(--max-width); margin: 0 auto; padding: 50px 15px 80px;
}
.contact-page-form { background: var(--bg); padding: 35px 30px; box-shadow: var(--shadow); }
.contact-page-form h3 { font-size: 1.3rem; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--primary); margin-bottom: 5px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #ccc;
  font-family: 'AkzidenzGroteskBQ-Light', sans-serif; font-size: 0.95rem; color: var(--text);
  transition: 0.3s; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 110px; }

.btn {
  display: inline-block; font-family: 'AkzidenzGroteskBQ-Light', sans-serif;
  font-weight: 500; font-size: 1rem; padding: 12px 30px;
  border: none; cursor: pointer; transition: 0.3s; text-align: center;
  color: var(--white); background: var(--primary);
}
.btn:hover { opacity: 0.85; color: var(--white); }
.btn-block { width: 100%; }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .nav-list {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 20px;
    border-top: 1px solid rgba(139,69,38,0.1); box-shadow: var(--shadow);
    transform: translateY(-110%); opacity: 0; transition: 0.3s; pointer-events: none;
  }
  .nav-list.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list a { padding: 12px 0; border-bottom: 1px solid rgba(139,69,38,0.06); }
  .nav-social { display: none; }
  .menu-toggle { display: flex; }

  .logo-strip-grid { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-grid .doctor-image { order: -1; }
  .procedures-grid { grid-template-columns: repeat(2, 1fr); }
  .procedures-page-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: 1fr 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; }

  .hero { background-position: center 0; min-height: 70vh; }
  .hero h1 { font-size: 32px; line-height: 36px; }
  .hero p { font-size: 20px; line-height: 30px; }
  .section { padding: 60px 15px; }
  .logo-strip-text h2 { font-size: 20px; line-height: 28px; }
}

@media (max-width: 480px) {
  .procedures-grid { grid-template-columns: 1fr; }
  .procedures-page-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; text-align: center; }
}

/* ─── Fade In ─── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ─── 404 ─── */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.error-page h1 { font-size: 5rem; }
.error-page p { margin: 10px 0 25px; }
