/* ===== Variables ===== */
:root {
  --teal: #4a9aad;
  --teal-dark: #3a8a9c;
  --teal-light: #6bb5c5;
  --blue-text: #00476A;
  --blue-gradient-start: #5eb3c4;
  --blue-gradient-end: #2d7a8f;
  --navy: #1a2d3d;
  --navy-dark: #142230;
  --gray-text: #666;
  --gray-light: #f5f5f5;
  --gray-border: #ddd;
  --white: #fff;
  --star-color: #6b5b95;
  --font: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-text);
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-ghost {
  padding: 10px 24px;
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--blue-text);
  opacity: 1;
}

.btn-white-outline {
  padding: 10px 28px;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  border-radius: 3px;
}

.btn-white-outline:hover {
  background: var(--white);
  color: var(--navy);
  opacity: 1;
}

.btn-card {
  padding: 11px 30px;
  border: 1px solid #cfcfcf;
  color: var(--blue-text);
  background: transparent;
  border-radius: 50px;
  margin-top: auto;
  font-size: 13px;
}

.btn-card:hover {
  border-color: var(--blue-text);
  background: var(--blue-text);
  color: var(--white);
  opacity: 1;
}

.btn-wide {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 48px auto 0;
  padding: 18px 36px;
  text-align: center;
  background: #9a9a9a;
  color: var(--white);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-wide:hover {
  background: #888;
  opacity: 1;
}

.btn-cta-white {
  padding: 16px 44px;
  background: var(--white);
  color: var(--blue-text);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
  min-width: 200px;
}

.btn-cta-white:hover {
  background: #f0f0f0;
  opacity: 1;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.top-bar-item {
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item i {
  color: var(--blue-text);
  font-size: 12px;
}

/* ===== Header ===== */
.main-header {
  background: var(--white);
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  color: #777;
  font-weight: 400;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--blue-text);
  opacity: 1;
}

.main-nav a.is-active {
  font-weight: 600;
}

.nav-item {
  position: relative;
}

.nav-parent i {
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.65;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  padding: 10px 0;
  background: var(--white);
  border: 1px solid #eee;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  z-index: 120;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.is-active {
  background: #f4f8fa;
  color: var(--blue-text);
  opacity: 1;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  display: block;
}

.nav-item:hover > .nav-parent {
  color: var(--blue-text);
  opacity: 1;
}

.nav-item-sub > .nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-item-sub > .nav-dropdown {
  top: 0;
  left: 100%;
  transform: none;
  margin-top: -10px;
}

.nav-item-sub > .nav-dropdown::before {
  top: 0;
  bottom: 0;
  left: -14px;
  right: auto;
  width: 14px;
  height: auto;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #555;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-banner.jpg') center right / cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, transparent 60%);
}

.page-clinica .hero-bg {
  background: url('images/clinica/hero.png') center / cover no-repeat;
}

.page-clinica .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.22) 0%, transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-overlay {
  max-width: 420px;
}

.hero-title {
  font-family: var(--font);
  font-size: 42px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 2px;
  background: rgba(80, 80, 80, 0.55);
  padding: 24px 28px;
  margin-bottom: 0;
}

.hero-tab {
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  color: #555;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 10px 20px;
  text-transform: uppercase;
}

.hero-cta-block {
  background: var(--teal);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero-cta-text {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== Intro ===== */
.intro {
  padding: 60px 0;
  background: var(--white);
}

.intro .container {
  max-width: 800px;
  text-align: center;
}

.intro p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* ===== Safety Banner ===== */
.safety-banner {
  position: relative;
  padding: 70px 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.safety-bg {
  position: absolute;
  inset: 0;
  background: url('images/clinica/recepcion.png') center/cover no-repeat;
}

.safety-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 60, 80, 0.75);
}

.safety-content {
  position: relative;
  z-index: 2;
}

.safety-icon {
  font-size: 36px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.safety-banner h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.safety-banner p {
  font-size: 15px;
  margin-bottom: 24px;
  opacity: 0.9;
}

/* ===== Section Titles ===== */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 400;
  color: var(--blue-text);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  font-size: 13px;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ===== Treatments ===== */
.treatments {
  padding: 70px 0;
  background: #f7f7f7;
}

.treatment-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.treatment-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  background: #eef3f5;
}

.card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 349;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 32px;
  flex: 1;
}

.card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-text);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.card-body p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 22px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-gradient-end));
  padding: 56px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== Advantages ===== */
.advantages {
  padding: 70px 0;
  background: var(--white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.advantage-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border: 1px solid #e5e5e5;
  background: var(--white);
}

.advantage-box-wide {
  grid-column: 1 / -1;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.advantage-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--blue-text);
}

.advantage-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #444;
  margin-bottom: 8px;
}

.advantage-text p {
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 70px 0;
  background: var(--gray-light);
  text-align: center;
}

.testimonial-quote {
  max-width: 700px;
  margin: 30px auto 20px;
  border: none;
}

.testimonial-quote p {
  font-style: italic;
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.testimonial-author {
  font-weight: 700;
  color: #444;
  font-size: 15px;
  margin-bottom: 8px;
}

.testimonial-stars {
  color: var(--star-color);
  font-size: 16px;
  letter-spacing: 4px;
}

/* ===== Callback ===== */
.callback {
  background: linear-gradient(135deg, #a8d4de, #6bb5c5);
  padding: 40px 0;
}

.callback-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.callback-left h3 {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.callback-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.callback-phone i {
  font-size: 26px;
}

.callback-phone:hover {
  color: var(--white);
  text-decoration: underline;
  opacity: 1;
}

/* ===== Map Section ===== */
.map-section {
  padding: 50px 0;
  background: var(--white);
}

.map-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #555;
}

.contact-detail i {
  color: var(--blue-text);
  margin-top: 3px;
  width: 16px;
}

.map-embed {
  height: 350px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: #ccc;
  padding: 50px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 28px;
  align-items: start;
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 13px;
  color: #aaa;
}

.footer-col ul a:hover {
  color: var(--white);
  opacity: 1;
}

.footer-email {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.footer-email i {
  font-size: 20px;
  color: var(--white);
}

.footer-email:hover {
  color: var(--white);
  text-decoration: underline;
  opacity: 1;
}

.footer-bottom {
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #777;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .treatment-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .advantage-box-wide {
    max-width: 100%;
  }

  .map-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 16px;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    position: static;
    transform: none;
    min-width: 0;
    margin: 8px 0 0;
    padding: 0 0 0 12px;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-dropdown a {
    padding: 8px 0;
    white-space: normal;
  }

  .nav-item-sub > .nav-dropdown {
    margin-top: 4px;
    margin-left: 8px;
    padding-left: 12px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-header {
    position: relative;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero {
    min-height: 420px;
  }

  .callback-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .callback-phone {
    font-size: 26px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-email {
    font-size: 20px;
  }

  .top-bar-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ===== Photo placeholders (Clínica) ===== */
.photo-box {
  position: relative;
  background: #dce6ec;
  overflow: hidden;
  min-height: 220px;
}

.photo-box::before {
  content: 'Foto: ' attr(data-file);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: center;
  padding: 16px;
}

.photo-box img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

/* ===== Clínica page ===== */
.clinica-about {
  padding: 70px 0 50px;
  background: var(--white);
}

.clinica-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: stretch;
  margin-top: 40px;
}

.clinica-intro-text p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--blue-text);
}

.clinica-intro-text p:last-child {
  margin-bottom: 0;
}

.photo-box-tall {
  min-height: 100%;
}

.clinica-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.clinica-gallery .photo-box {
  min-height: 240px;
  aspect-ratio: 4 / 3;
}

.clinica-tech {
  padding: 60px 0 70px;
  background: #f7f7f7;
}

.clinica-option {
  padding: 70px 0 30px;
  background: var(--white);
}

.clinica-centered-lead {
  max-width: 820px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: var(--blue-text);
}

.clinica-tech-lead {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: var(--blue-text);
}

.tech-slider {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
}

.tech-slides {
  position: relative;
}

.tech-slide {
  display: none;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 8px;
  background: #e8eef2;
}

.tech-slide.is-active {
  display: block;
}

.tech-slide img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  display: block;
}

.tech-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 16px;
}

.tech-nav:hover {
  background: var(--blue-text);
  color: var(--white);
}

.tech-nav-prev {
  left: 8px;
}

.tech-nav-next {
  right: 8px;
}

.tech-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tech-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #c5d0d6;
  cursor: pointer;
  padding: 0;
}

.tech-dot.is-active,
.tech-dot:hover {
  background: var(--blue-text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clinica-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pillar {
  position: relative;
  overflow: hidden;
}

.pillar .photo-box {
  position: relative;
  inset: auto;
  min-height: 200px;
  height: auto;
  aspect-ratio: 4 / 3;
}

.pillar .photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar .photo-box::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 71, 106, 0.42);
}

.pillar-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: center;
  padding: 16px;
}

.clinica-lowcost {
  padding: 70px 0 0;
  background: var(--white);
}

.clinica-lowcost .clinica-pillars {
  margin: 36px 0 0;
}

.clinica-philosophy {
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 0 70px;
  text-align: center;
}

.clinica-philosophy p {
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--blue-text);
}

.clinica-philosophy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .clinica-intro-grid {
    grid-template-columns: 1fr;
  }

  .photo-box-tall {
    min-height: 360px;
  }

  .clinica-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .clinica-gallery {
    grid-template-columns: 1fr;
  }

  .clinica-pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    min-height: 240px;
  }

  .tech-slide {
    min-height: 240px;
  }
}

/* ===== Equipo page ===== */
.page-equipo .hero-bg {
  background: url('images/equipo/hero.png') center right / cover no-repeat;
}

.page-equipo .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.28) 0%, transparent 55%);
}

.equipo-section {
  padding: 70px 0;
  background: #f7f7f7;
}

.equipo-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.equipo-cat {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #e6e6e6;
}

.equipo-cat .photo-box {
  min-height: 220px;
  aspect-ratio: 4 / 3;
}

.equipo-cat h3 {
  text-align: center;
  color: var(--blue-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 18px 16px 22px;
  line-height: 1.4;
}

.equipo-portraits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.equipo-member {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #e6e6e6;
  text-align: center;
}

.equipo-member .photo-box {
  min-height: 280px;
  aspect-ratio: 3 / 4;
}

.equipo-member .photo-box img {
  object-position: 18% center;
}

.equipo-member .photo-focus-right img {
  object-position: 88% center;
}

.equipo-member h3 {
  color: var(--blue-text);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 12px 20px;
}

.equipo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.equipo-gallery .photo-box {
  min-height: 180px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

@media (max-width: 992px) {
  .equipo-categories,
  .equipo-portraits,
  .equipo-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .equipo-categories,
  .equipo-portraits,
  .equipo-gallery {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .equipo-portraits,
  .equipo-gallery {
    margin-bottom: 28px;
  }
}

/* ===== Dentista Zaragoza page ===== */
.page-dentista .hero-bg {
  background: url('images/dentista/hero.png') center right / cover no-repeat;
}

.page-dentista .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.28) 0%, transparent 55%);
}

.dentista-intro {
  padding: 70px 0 40px;
  background: var(--white);
}

.dentista-intro .container {
  max-width: 820px;
  text-align: center;
}

.dentista-intro p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--blue-text);
}

.dentista-confianza {
  padding: 40px 0 70px;
  background: var(--white);
}

.dentista-mejor {
  padding: 70px 0;
  background: #f7f7f7;
}

.dentista-mejor-gallery {
  margin-top: 36px;
}

.dentista-mejor-text {
  max-width: 820px;
  margin: 36px auto 0;
  text-align: center;
}

.dentista-mejor-text p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--blue-text);
}

.dentista-mejor-text p:last-child {
  margin-bottom: 0;
}

/* ===== Tratamientos page ===== */
.page-tratamientos .hero-bg {
  background: url('images/tratamientos/hero.png') center / cover no-repeat;
}

.page-tratamientos .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.32) 0%, transparent 58%);
}

.page-tratamientos .hero-title {
  font-size: 32px;
}

.treatments-bar {
  background: var(--blue-text);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 14px 20px;
}

.treatments-page {
  background: var(--white);
}

.treatments-page .treatment-cards {
  margin-top: 0;
}

.treatment-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.estetica-bar {
  display: block;
  background: var(--blue-text);
  color: var(--white);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 16px 20px;
  margin: 48px 0 36px;
  text-decoration: none;
}

a.estetica-bar:hover {
  color: var(--white);
  opacity: 0.92;
}

.treatment-grid-2 {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.treatment-grid-2 .treatment-card:first-child {
  grid-column: 2;
}

@media (max-width: 992px) {
  .page-tratamientos .treatment-grid-4,
  .page-tratamientos .treatment-grid-2 {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .treatment-grid-2 .treatment-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .page-tratamientos .hero-title {
    font-size: 24px;
  }

  .page-tratamientos .treatment-grid-4,
  .page-tratamientos .treatment-grid-2 {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ===== Contacto page ===== */
.page-contacto .hero-bg {
  background: url('images/contacto/hero.jpg') center right / cover no-repeat;
}

.page-contacto .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.32) 0%, transparent 55%);
}

.contacto-intro {
  padding: 50px 0 20px;
  background: var(--white);
}

.contacto-intro .container {
  max-width: 820px;
  text-align: center;
}

.contacto-intro p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--blue-text);
}

.contacto-info {
  padding: 30px 0 70px;
  background: var(--white);
}

.contacto-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.contacto-info-text h2 {
  color: var(--blue-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 18px;
}

.contacto-info-text h2:not(:first-child) {
  margin-top: 36px;
}

.horario-table {
  width: 100%;
  max-width: 360px;
  border-collapse: collapse;
}

.horario-table th,
.horario-table td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #555;
}

.horario-table th {
  font-weight: 600;
  color: var(--blue-text);
  width: 140px;
}

.contacto-datos p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: #555;
  font-size: 15px;
}

.contacto-datos i {
  color: var(--blue-text);
  margin-top: 4px;
  width: 16px;
}

.contacto-datos a:hover {
  color: var(--blue-text);
  opacity: 1;
}

@media (max-width: 992px) {
  .contacto-info-grid {
    grid-template-columns: 1fr;
  }

  .contacto-info-grid .photo-box-tall {
    min-height: 320px;
  }
}

/* ===== Implantes page ===== */
.page-implantes .hero-bg {
  background: url('images/implantes/hero.png') center right / cover no-repeat;
}

.page-implantes .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.18) 0%, transparent 52%);
}

.page-implantes .hero-overlay {
  max-width: 500px;
}

.page-implantes .hero-title {
  font-size: 30px;
  letter-spacing: 1px;
}

.implantes-content {
  padding: 70px 0 50px;
  background: var(--white);
}

.implantes-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  margin-top: 12px;
}

.implantes-text h3 {
  color: var(--blue-text);
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.implantes-text h3:first-child {
  margin-top: 0;
}

.implantes-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--blue-text);
}

.implantes-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  margin-top: 16px;
}

.implantes-benefits ul {
  padding-left: 18px;
  color: var(--blue-text);
}

.implantes-benefits li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
}

.implantes-visual {
  background: #f7f9fa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.implantes-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 992px) {
  .implantes-grid {
    grid-template-columns: 1fr;
  }

  .implantes-visual {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-implantes .hero-title,
  .page-endodoncia .hero-title,
  .page-periodoncia .hero-title,
  .page-preventiva .hero-title,
  .page-estomatologia .hero-title {
    font-size: 22px;
  }

  .implantes-benefits {
    grid-template-columns: 1fr;
  }

  .implantes-content .section-title {
    font-size: 22px;
  }
}

/* ===== Endodoncia page ===== */
.page-endodoncia .hero-bg {
  background: url('images/endodoncia/hero.png') center right / cover no-repeat;
}

.page-endodoncia .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.2) 0%, transparent 52%);
}

.page-endodoncia .hero-overlay {
  max-width: 500px;
}

.page-endodoncia .hero-title {
  font-size: 30px;
  letter-spacing: 1px;
}

.endodoncia-ventajas,
.tratamiento-ventajas {
  margin-top: 40px;
}

/* ===== Periodoncia page ===== */
.page-periodoncia .hero-bg {
  background: url('images/periodoncia/hero.png') center right / cover no-repeat;
}

.page-periodoncia .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.18) 0%, transparent 52%);
}

.page-periodoncia .hero-overlay {
  max-width: 500px;
}

.page-periodoncia .hero-title {
  font-size: 30px;
  letter-spacing: 1px;
}

/* ===== Cirugía dental page ===== */
.page-cirugia .hero-bg {
  background: url('images/cirugia/hero.png') center / cover no-repeat;
}

.page-cirugia .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.22) 0%, transparent 52%);
}

.page-cirugia .hero-overlay {
  max-width: 520px;
}

.page-cirugia .hero-title {
  font-size: 30px;
  letter-spacing: 1px;
}

.page-cirugia .implantes-grid .photo-box {
  border-radius: 8px;
  aspect-ratio: 1;
  min-height: 280px;
  align-self: start;
}

@media (max-width: 768px) {
  .page-cirugia .hero-title {
    font-size: 22px;
  }
}

/* ===== Odontología preventiva page ===== */
.page-preventiva .hero-bg {
  background: url('images/preventiva/hero.png') center right / cover no-repeat;
}

.page-preventiva .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.22) 0%, transparent 52%);
}

.page-preventiva .hero-overlay {
  max-width: 500px;
}

.page-preventiva .hero-title {
  font-size: 30px;
  letter-spacing: 1px;
}

.preventiva-programa {
  padding-left: 18px;
  color: var(--blue-text);
  margin: 8px 0 0;
}

.preventiva-programa li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Prótesis dentales page ===== */
.page-protesis .hero-bg {
  background: url('images/protesis/hero.png') center right / cover no-repeat;
}

.page-protesis .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.28) 0%, transparent 55%);
}

.page-protesis .hero-overlay {
  max-width: 480px;
}

.page-protesis .hero-title {
  font-size: 36px;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .page-protesis .hero-title {
    font-size: 24px;
  }
}

/* ===== Patología ATM page ===== */
.page-atm .hero-bg {
  background: url('images/atm/hero.png') center / cover no-repeat;
}

.page-atm .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.32) 0%, transparent 55%);
}

.page-atm .hero-overlay {
  max-width: 540px;
}

.page-atm .hero-title {
  font-size: 28px;
  letter-spacing: 1px;
}

.page-atm .atm-ventajas {
  margin-top: 12px;
  max-width: 920px;
}

@media (max-width: 768px) {
  .page-atm .hero-title {
    font-size: 22px;
  }
}

/* ===== Estomatología page ===== */
.page-estomatologia .hero-bg {
  background: url('images/estomatologia/hero.png') center / cover no-repeat;
}

.page-estomatologia .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.35) 0%, transparent 55%);
}

.page-estomatologia .hero-overlay {
  max-width: 520px;
}

.page-estomatologia .hero-title {
  font-size: 30px;
  letter-spacing: 1px;
}

.page-estomatologia .implantes-grid .photo-box {
  border-radius: 8px;
  aspect-ratio: 1;
  min-height: 280px;
  align-self: start;
}

/* ===== Estética dental page ===== */
.page-estetica .hero-bg {
  background: url('images/estetica/hero.png') center right / cover no-repeat;
}

.page-estetica .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.28) 0%, transparent 55%);
}

.page-estetica .hero-overlay {
  max-width: 480px;
}

.page-estetica .hero-title {
  font-size: 36px;
  letter-spacing: 1px;
}

.estetica-intro,
.estetica-tratamientos {
  padding: 70px 0 50px;
  background: var(--white);
}

.page-estetica .estetica-intro .photo-box {
  border-radius: 8px;
  aspect-ratio: 1;
  min-height: 0;
}

.page-estetica .estetica-cards {
  grid-template-columns: 1fr 1fr;
  max-width: 920px;
  margin: 36px auto 0;
}

.page-estetica .estetica-cards .treatment-card:first-child {
  grid-column: auto;
}

/* ===== Carillas dentales page ===== */
.page-carillas .hero-bg {
  background: url('images/carillas/hero.png') center / cover no-repeat;
}

.page-carillas .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.32) 0%, transparent 55%);
}

.page-carillas .hero-overlay {
  max-width: 480px;
}

.page-carillas .hero-title {
  font-size: 36px;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .page-carillas .hero-title {
    font-size: 24px;
  }
}

@media (max-width: 992px) {
  .page-estetica .estetica-cards {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .page-estetica .hero-title {
    font-size: 26px;
  }

  .page-estetica .estetica-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ===== Blanqueamiento dental page ===== */
.page-blanqueamiento .hero-bg {
  background: url('images/blanqueamiento/hero.png') center / cover no-repeat;
}

.page-blanqueamiento .hero-bg::after {
  background: linear-gradient(to right, rgba(0, 71, 106, 0.22) 0%, transparent 55%);
}

.page-blanqueamiento .hero-overlay {
  max-width: 480px;
}

.page-blanqueamiento .hero-title {
  font-size: 36px;
  letter-spacing: 1px;
}

.page-blanqueamiento .implantes-grid .photo-box {
  border-radius: 8px;
  aspect-ratio: 1;
  min-height: 280px;
  align-self: start;
}

@media (max-width: 768px) {
  .page-blanqueamiento .hero-title {
    font-size: 26px;
  }
}

/* ===== Legal pages (RGPD) ===== */
.legal-content {
  padding: 60px 0 80px;
  background: var(--white);
}

.legal-content .container {
  max-width: 860px;
}

.legal-content h1 {
  color: var(--blue-text);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.legal-kicker {
  color: var(--blue-text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.legal-content h2 {
  color: var(--blue-text);
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.legal-content p,
.legal-content li {
  color: #555;
  font-size: 15px;
  line-height: 1.85;
}

.legal-content ul,
.legal-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--blue-text);
  text-decoration: underline;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--gray-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: #555;
}

.legal-table th {
  background: #f7f9fa;
  color: var(--blue-text);
  font-weight: 600;
}

.legal-updated {
  margin-top: 28px;
  font-size: 13px;
  color: #888;
}

.footer-col a.is-active {
  text-decoration: underline;
}
