:root {
  --petroleo-1: #114d52;
  --petroleo-2: #1b6568;
  --petroleo-3: #3a8c84;
  --petroleo-4: #edf7f4;
  --petroleo-5: #dfeee9;
  --cream: #f7f3ef;
  --white: #ffffff;
  --ink: #1c2d2b;
  --muted: #5b6f6a;
  --line: rgba(17,77,82,0.15);
  --shadow: 0 20px 50px rgba(17,77,82,0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Albert Sans", Arial, sans-serif;
  background: #f7f5f2;
  color: var(--ink);
  line-height: 1.7;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: rgba(17,77,82,.96);
  color: rgba(255,255,255,.9);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.topbar-meta, .topbar-social {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-social a {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
}

.topbar-social svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17,77,82,0.06);
  border-bottom: 1px solid rgba(17,77,82,.06);
}

.nav {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 12px 0;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.05;
}

.brand-logo {
  width: clamp(110px, 9vw, 150px);
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--petroleo-2), var(--petroleo-3));
  color: white;
  font-weight: 800;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--petroleo-1);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 14px;
  font-size: 0.84rem;
  flex-wrap: nowrap;
}

.nav-links > a,
.nav-links > .nav-item-dropdown > a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-links a.nav-admin {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

@media (min-width: 981px) and (max-width: 1280px) {
  .nav {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) auto;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    padding-right: 10px;
  }

  .brand-logo {
    width: clamp(88px, 9vw, 104px);
  }

  .brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    white-space: nowrap;
  }

  .brand-copy strong {
    font-size: .9rem;
  }

  .brand-copy span {
    font-size: .54rem;
    letter-spacing: .08em;
  }

  .nav-links {
    gap: clamp(5px, .6vw, 8px);
    min-width: 0;
    font-size: clamp(.68rem, .75vw, .8rem);
  }

  .nav-links a.nav-admin {
    font-size: inherit;
  }
}

.nav-links a.nav-admin::after {
  display: none;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  font-weight: 500;
}

/* ===== Menú desplegable de Tratamientos ===== */
.nav-item,
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item > a,
.nav-item-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow,
.dropdown-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-arrow,
.nav-item:focus-within .dropdown-arrow,
.nav-item-dropdown:hover .dropdown-caret,
.nav-item-dropdown:focus-within .dropdown-caret,
.nav-item-dropdown.is-open .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 260px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
}

.dropdown-menu a:hover {
  background: var(--petroleo-4);
  color: var(--petroleo-1);
}
/* ===== fin menú desplegable ===== */

/* ===== Catálogo de tratamientos (páginas de categoría) ===== */
.catalog-group-title {
  margin: 46px 0 18px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.catalog-group-title:first-of-type {
  margin-top: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.catalog-card {
  position: relative;
  display: block;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.15s ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
}

.catalog-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.78) saturate(.9) contrast(1.04);
}

.catalog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,101,104,0.1) 0%, rgba(27,101,104,0.92) 100%);
  z-index: 1;
}

.catalog-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px 18px;
  color: white;
}

.catalog-card__content h3 {
  color: white;
  font-size: 1.32rem;
  margin-bottom: 0.4rem;
}

.catalog-card__content p {
  color: rgba(255,255,255,.92);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.catalog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.5);
  padding-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.catalog-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}

@media (max-width: 700px) {
  .catalog-card { height: 340px; }
}
/* ===== fin catálogo ===== */

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--petroleo-2);
  transition: width .25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: .9rem 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--petroleo-1), var(--petroleo-3));
  color: white;
  box-shadow: 0 18px 26px rgba(17,77,82,.18);
}

.btn-secondary, .btn.secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.4);
  color: white;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(17,77,82,.18);
  color: var(--petroleo-1);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.5rem;
  cursor: pointer;
}

.page-hero {
  background: linear-gradient(180deg, rgba(2,24,28,0.6) 0%, rgba(17,77,82,0.32) 60%), url('images/IMG_3438.jpg') center/cover no-repeat;
  color: white;
  padding: 80px 0 60px;
}

.page-hero.page-hero--tratamientos {
  background: linear-gradient(180deg, rgba(2,24,28,0.6) 0%, rgba(17,77,82,0.32) 60%), url('images/IMG_3438.jpg') center/cover no-repeat;
}

.page-hero-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.page-hero h1 {
  color: white;
  font-size: clamp(2.4rem, 5vw, 5rem);
  margin: 0 0 1rem;
}

.page-hero p {
  color: rgba(255,255,255,.8);
  max-width: 680px;
  margin: 0;
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  padding: .52rem .8rem;
  border: 1px solid rgba(17,77,82,.18);
  border-radius: 999px;
  background: rgba(17,77,82,.04);
  color: var(--petroleo-1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.section {
  padding: 90px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 26px;
  margin-bottom: 36px;
}

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  color: var(--petroleo-1);
  font-family: "Fahkwang", Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p { margin: 0 0 1rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

/* ===== Carrusel de tratamientos (oscuro, foto + degradado) ===== */
.treatments-showcase {
  background: white;
}

.carousel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.carousel-controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.arrow-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(17,77,82,.22);
  background: white;
  color: var(--petroleo-1);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.arrow-button:hover {
  background: var(--petroleo-1);
  color: white;
  transform: translateY(-1px);
}

.treatment-carousel-shell {
  overflow: hidden;
}

.treatment-carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.treatment-carousel-track::-webkit-scrollbar {
  display: none;
}

.feature-card {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  height: 430px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.78) saturate(.9) contrast(1.04);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,101,104,0.1) 0%, rgba(27,101,104,0.92) 100%);
  z-index: 1;
}

@property --petroleo-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes petroleo-border-orbit {
  to { --petroleo-angle: 360deg; }
}

@keyframes petroleo-border-glow {
  0%, 100% {
    opacity: 0.72;
    filter: drop-shadow(0 0 3px rgba(7, 89, 79, 0.45));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 7px rgba(23, 214, 164, 0.8));
  }
}

@keyframes petroleo-control-pulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(7, 89, 79, 0.42), 0 0 5px rgba(7, 89, 79, 0.22);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(8, 119, 97, 0.92), 0 0 14px rgba(23, 214, 164, 0.62);
  }
}

@keyframes petroleo-card-pulse {
  0%, 100% {
    box-shadow: var(--shadow), 0 0 0 1px rgba(7, 89, 79, 0.42), 0 0 5px rgba(7, 89, 79, 0.22);
  }
  50% {
    box-shadow: var(--shadow), 0 0 0 2px rgba(8, 119, 97, 0.92), 0 0 14px rgba(23, 214, 164, 0.62);
  }
}

:is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, .btn-white, .btn-secondary, .nav-cta, .calendar-link, .arrow-button, .calendar-nav-btn, .calendar-today-btn) {
  position: relative;
  isolation: isolate;
  animation: petroleo-control-pulse 3s ease-in-out infinite;
}

:is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, .btn-white, .btn-secondary, .nav-cta, .calendar-link, .arrow-button, .calendar-nav-btn, .calendar-today-btn)::after,
.treatment-carousel-track .feature-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 3;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--petroleo-angle),
    transparent 0deg 250deg,
    #07594f 278deg,
    #17d6a4 310deg,
    #07594f 334deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: petroleo-border-orbit 3s linear infinite, petroleo-border-glow 3s ease-in-out infinite;
}

.treatment-carousel-track .feature-card {
  border: 1px solid rgba(7, 89, 79, 0.38);
  animation: petroleo-card-pulse 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, .btn-white, .btn-secondary, .nav-cta, .calendar-link, .arrow-button, .calendar-nav-btn, .calendar-today-btn),
  :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, .btn-white, .btn-secondary, .nav-cta, .calendar-link, .arrow-button, .calendar-nav-btn, .calendar-today-btn)::after,
  .treatment-carousel-track .feature-card,
  .treatment-carousel-track .feature-card::after {
    animation: none;
  }
}

.feature-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 22px 20px;
  color: white;
}

.feature-card__content h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.feature-card__content p {
  color: rgba(255,255,255,.92);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.feature-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.5);
  padding-top: 14px;
}

.feature-card__footer span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: white;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  color: white;
  background: transparent;
  display: grid;
  place-items: center;
  font-weight: 700;
}

@media (max-width: 700px) {
  .feature-card { width: 260px; height: 400px; }
  .carousel-header { flex-direction: column; align-items: flex-start; }
}
/* ===== fin carrusel ===== */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.card-body {
  padding: 24px;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.round-btn {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: var(--petroleo-1);
  color: white;
}

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

.about-image {
  background: linear-gradient(135deg, rgba(17,77,82,.08), rgba(17,77,82,.12));
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.quote {
  background: var(--petroleo-4);
  border-left: 4px solid var(--petroleo-2);
  padding: 18px 20px;
  border-radius: 12px;
  margin: 1rem 0 1.2rem;
  font-weight: 600;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.stat-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.7rem;
  color: var(--petroleo-1);
  margin-bottom: 0.3rem;
}

.blog-section {
  background: linear-gradient(180deg, #f8f9f8 0%, #eff7f5 100%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img,
.media-frame iframe,
.media-frame video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border: 0;
  background: #dfeee9;
}

.blog-card-body {
  padding: 22px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--petroleo-1);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-content-preview {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.blog-link {
  color: var(--petroleo-1);
  font-weight: 700;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.testimonial {
  background: white;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stars { color: #f7b955; letter-spacing: .15em; }

.person {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--petroleo-1), var(--petroleo-3));
  color: white;
  font-weight: 700;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.booking-card,
.schedule-card,
.location-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.booking-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  color: var(--petroleo-1);
}

input, select, textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(17,77,82,.18);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.muted {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 2200;
  background: rgba(17,77,82,0.96);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.calendar-day {
  margin-top: 18px;
}

.btn.danger {
  background: #d95b5b;
  color: #fff;
  box-shadow: none;
}

.schedule-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(17,77,82,.08);
}

.contact-list,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer {
  background: #0e2d31;
  color: rgba(255,255,255,.82);
  padding: 70px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr .8fr;
  gap: 26px;
}

.footer h4 {
  color: white;
  margin-bottom: .8rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
}

.floating-whatsapp a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 160px;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  background: #25d366;
  color: white;
  box-shadow: 0 16px 30px rgba(37,211,102,.25);
}

.page-list {
  display: grid;
  gap: 18px;
}

.page-list a {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--petroleo-1);
}

@media (max-width: 980px) {
  .nav {
    position: relative;
  }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(17,77,82,.12);
    border-radius: 16px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    z-index: 20;
  }

  .nav-links.is-open {
    display: flex;
  }

  .section-head,
  .page-hero-inner,
  .about-grid,
  .booking-grid,
  .grid-3,
  .testimonial-grid,
  .footer-grid,
  .field-row,
  .stat-list {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head {
    display: grid;
  }

  .nav-cta { display: none; }
}

@media (max-width: 640px) {
  .page-hero { padding-top: 70px; }
  .container { width: min(100% - 22px, 1180px); }
  .floating-whatsapp { right: 12px; bottom: 12px; }
  .floating-whatsapp a { min-width: 140px; }
  .agenda-page .floating-whatsapp {
    position: static;
    display: flex;
    justify-content: flex-end;
    width: min(100% - 22px, 1180px);
    margin: 16px auto 0;
  }
}

/* ===== Menú desplegable "Tratamientos" ===== */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-caret,
.nav-item-dropdown:focus-within .dropdown-caret,
.nav-item-dropdown.is-open .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 260px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
}

.dropdown-menu a:hover {
  background: var(--petroleo-4);
  color: var(--petroleo-1);
}

@media (max-width: 980px) {
  .nav-item-dropdown {
    display: block;
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 6px 0 6px 14px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }
  .nav-item-dropdown.is-open .dropdown-menu {
    display: block;
  }
}

/* ===== Catálogo de tratamientos (páginas de categoría) ===== */
.catalog-section-title {
  margin: 44px 0 22px;
}

.catalog-section-title:first-child {
  margin-top: 0;
}

.catalog-section-title h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.catalog-grid .feature-card {
  width: 100%;
  height: 380px;
  display: block;
}

@media (max-width: 700px) {
  .catalog-grid .feature-card { height: 340px; }
}

/* ===== Ajustes añadidos ===== */
/* Puente invisible para que el menú desplegable no se cierre al mover el ratón del enlace al menú */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

/* Casilla de consentimiento de formularios */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.consent-row input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--petroleo-1);
}
.consent-row a { color: var(--petroleo-1); text-decoration: underline; }

/* Enlaces legales del pie */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .85rem;
}
.footer-legal a { text-decoration: underline; }

/* El subrayado animado del menú no debe aparecer dentro del desplegable */
.dropdown-menu a::after { display: none; }

/* Etiqueta de las cabeceras de página legible sobre fondo oscuro */
.page-hero .eyebrow {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.12);
}

/* Portada de video del blog (vista previa + botón de reproducir) */
.blog-post-media .video-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, var(--petroleo-1), #0c2224);
}
.blog-post-media .video-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.blog-post-media .video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.38), rgba(0,0,0,0) 55%);
}
.video-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.video-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--petroleo-1);
  transform: translate(-35%, -50%);
}
.video-cover:hover .video-play,
.video-cover:focus-visible .video-play { transform: scale(1.1); }
.video-cover-label {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 14px;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
}

/* Títulos H2 en tarjetas (antes H3): mismo tamaño que tenían */
.booking-card h2,
.location-card h2,
.schedule-card h2 { font-size: 1.17em; }

/* Móvil: los títulos con palabras largas (p. ej. «Neuromoduladores») no deben desbordar la pantalla */
.page-hero h1 { overflow-wrap: break-word; }
@media (max-width: 640px) {
  .page-hero h1 { font-size: clamp(1.7rem, 8.6vw, 2.4rem); }
}

/* Móvil: enlaces del menú y del pie con altura táctil cómoda */
@media (max-width: 980px) {
  .footer-links li { margin: 0; }
  .footer-links a,
  .footer-legal a,
  .nav-links a,
  .dropdown-menu a { display: inline-block; padding: 8px 0; min-height: 24px; }
}

/* Días disponibles bajo el campo de fecha (agenda) */
.date-hint { margin: 8px 0 0; padding-right: 12px; box-sizing: border-box; font-size: 0.85rem; color: #5f6b6b; line-height: 1.5; }
.date-hint:empty { display: none; }
.date-hint-label { display: block; margin-bottom: 8px; }
.date-chip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; width: 100%; max-width: 100%; box-sizing: border-box; }
.date-chip { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 32px; padding: 4px 8px; border: 1px solid #c9d6d4; border-radius: 12px; background: #fff; color: var(--petroleo-1); font: inherit; font-size: 0.74rem; font-weight: 600; text-align: center; cursor: pointer; }
.date-chip:hover, .date-chip:focus-visible { border-color: #0e5a5a; background: #eef6f5; }
.date-chip:focus-visible { outline: 2px solid #0e5a5a; outline-offset: 2px; }

/* Páginas de tratamiento: textos largos (destacados, secuencia y duración) */
.treat-main .treat-highlight { margin: 1.2rem 0; padding: 14px 18px; border-left: 4px solid var(--petroleo-1); border-radius: 0 14px 14px 0; background: var(--petroleo-4); color: var(--petroleo-1); font-weight: 600; line-height: 1.6; }
.treat-main .treat-duration { display: inline-block; margin: 0 0 1rem; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--petroleo-4); color: var(--petroleo-1); font-size: 0.92rem; }
.treat-main h3 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; color: var(--petroleo-1); }
.treat-main .treat-steps { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: paso; }
.treat-main .treat-steps li { position: relative; display: grid; gap: 6px; padding: 14px 14px 14px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; counter-increment: paso; }
.treat-main .treat-steps li::before { content: counter(paso); display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--petroleo-1); color: #fff; font-size: .8rem; font-weight: 700; }
.treat-main .treat-steps strong { color: var(--petroleo-1); font-size: .85rem; letter-spacing: .03em; }
.treat-main .treat-steps span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
@media (max-width: 700px) { .treat-main .treat-steps { grid-template-columns: 1fr 1fr; } }
.eyebrow { margin-bottom: 16px !important; }
/* ===== PORTADA-PAGINAS: título en una línea, centrado, y texto fino debajo (todas las páginas) ===== */
/* La foto conserva su tamaño y su aspecto; solo cambia la posición del texto. */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 52vw, 450px);
  padding: 56px 0;
  text-align: center;
}
/* Sombra suave solo detrás del texto, para que se lea sobre la foto clara */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(6,32,36,.50) 0%, rgba(6,32,36,0) 100%);
}
.page-hero .page-hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(1.45rem, 3.3vw, 3rem);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0,25,30,.55);
}
section.page-hero .page-hero-inner > p {
  max-width: 880px;
  margin: 0 auto;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,25,30,.6);
}
@media (max-width: 700px) {
  .page-hero { padding: 44px 0; }
  .page-hero::before { background: radial-gradient(ellipse 100% 75% at 50% 55%, rgba(6,32,36,.55) 0%, rgba(6,32,36,0) 100%); }
  .page-hero h1 { font-size: clamp(1.4rem, 6.2vw, 1.8rem); }
  section.page-hero .page-hero-inner > p { font-size: .88rem; }
}
/* ===== fin PORTADA-PAGINAS ===== */

/* ===== MENU-MOVIL: panel del menú de tamaño cómodo + flecha de "Tratamientos" como botón táctil ===== */
@media (max-width: 980px) {
  .nav { position: relative; }
  .nav .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    left: auto;
    right: 0;
    width: min(88vw, 340px);
    box-sizing: border-box;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 14px 18px;
    gap: 2px;
  }
  .nav-links .nav-item-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav-links .nav-item-dropdown .dropdown-caret {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 36px;
    margin: -6px -6px -6px 10px;
    border-radius: 10px;
    background: rgba(17,77,82,.08);
    font-size: .85rem;
  }
}
/* ===== fin MENU-MOVIL ===== */

@media (max-width: 980px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .nav .brand {
    min-width: 0;
    gap: 10px;
    padding-right: 0;
    border-right: 0;
  }

  .nav .brand-logo {
    width: clamp(80px, 27vw, 110px);
  }

  .nav .brand-copy {
    overflow: hidden;
  }

  .nav .brand-copy span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
