:root {
  --color-primary: #54c6e4;
  --color-secondary: #a6e3f2;
  --color-dark: #0f1f2a;
  --color-text: #22323b;
  --color-muted: #6b8594;
  --color-bg: #f2fbfe;
  --color-white: #ffffff;
  --color-border: rgba(15,31,42,0.1);
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at 0 0, rgba(84,198,228,0.18), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(84,198,228,0.12), transparent 55%),
              var(--color-bg);
  line-height: 1.6;
}

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

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

.page-wrapper {
  min-height: 100vh;
}

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

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* WordPress admin bar offset */
body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 20px;
}

.logo-area img {
  height: 46px;
}

/* WordPress custom logo */
.logo-area .custom-logo-link {
  display: block;
  line-height: 0;
}

.logo-area .custom-logo {
  height: 46px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  color: var(--color-muted);
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-dark);
}

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

.header-cta .btn {
  font-size: 12px;
}

/* BURGER (mobile) */

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(84,198,228,0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(84,198,228,0.55);
}

.btn-outline {
  background: rgba(255,255,255,0.85);
  color: var(--color-primary);
  border: 1px solid rgba(84,198,228,0.45);
}

.btn-outline:hover {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

.btn-pill-small {
  padding: 6px 14px;
  font-size: 12px;
}

/* HERO SLIDER */

.hero-slider {
  position: relative;
  margin-top: 66px;
  height: 700px;
  overflow: hidden;
  background: #000;
}

.slider-track {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.8s ease;
  display: flex;
  align-items: center;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.65), rgba(0,0,0,0.4), rgba(0,0,0,0.25));
}

.slide-content {
  position: relative;
  color: #ffffff;
  max-width: 640px;
}

.slide-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  opacity: 0.9;
}

.slide-title {
  font-size: clamp(30px, 4.3vw, 42px);
  line-height: 1.1;
  margin-bottom: 14px;
}

.slide-title span {
  color: var(--color-secondary);
}

.slide-text {
  font-size: 15px;
  max-width: 520px;
  margin-bottom: 22px;
  opacity: 0.9;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Slider controls */

.slider-controls {
  position: absolute;
  inset: auto 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.slider-arrow {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.48);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.slider-arrow:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-1px);
}

.slider-dots {
  pointer-events: auto;
  display: inline-flex;
  gap: 8px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slider-dot.is-active {
  background: #ffffff;
}

/* GENERIC SECTION STYLES */

section {
  scroll-margin-top: 80px;
}

.section-header {
  margin-bottom: 28px;
}

.section-header.center {
  text-align: center;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.section-title {
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.section-subtitle {
  font-size: 14px;
  color: var(--color-muted);
  max-width: 540px;
}

/* TRATAMIENTOS */

.section-gradient {
  padding: 60px 0 70px;
  background: radial-gradient(circle at 0 0, rgba(84,198,228,0.2), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(84,198,228,0.16), transparent 55%);
}

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

.treatment-tile {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  box-shadow: none;
  border: 1px solid var(--color-border);
  border-top: 3px solid rgba(84,198,228,0.65);
}

.treatment-tile h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.treatment-tile p {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.treatment-tile ul {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--color-text);
}

.link-cta {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

/* EQUIPO */

.section-light {
  padding: 64px 0;
  background: #ffffff;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.team-text .section-subtitle {
  margin-top: 6px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(84,198,228,0.4);
  background: rgba(255,255,255,0.8);
  font-size: 11px;
  color: var(--color-muted);
}

.team-cards {
  display: grid;
  gap: 14px;
}

.person-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px 16px 18px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
}

.person-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
}

.person-name {
  font-size: 15px;
  margin: 4px 0 4px;
}

.person-bio {
  font-size: 13px;
  color: var(--color-muted);
}

/* RESENAS */

.section-testimonials {
  padding: 60px 0 70px;
  background: radial-gradient(circle at 10% 15%, rgba(84,198,228,0.16), transparent 55%),
              radial-gradient(circle at 90% 10%, rgba(84,198,228,0.1), transparent 52%);
}

.section-testimonials .section-subtitle {
  text-align: center;
  margin: 0 auto;
}

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

.testimonial-card {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 6px 10px 0 16px;
  box-shadow: none;
  border-left: 3px solid rgba(84,198,228,0.7);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  left: 6px;
  top: -12px;
  font-size: 46px;
  line-height: 1;
  color: rgba(84,198,228,0.22);
}

.testimonial-stars {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--color-primary);
}

.testimonial-text {
  margin: 0;
  font-size: 14px;
  color: var(--color-text);
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text);
}

.testimonial-note {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
}

/* JOURNAL */

.section-journal {
  padding: 60px 0 70px;
  background: #ffffff;
}

.section-journal .section-subtitle {
  margin: 0 auto;
  text-align: center;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.journal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.journal-grid > .journal-card:first-child {
  grid-column: 1 / -1;
  padding: 22px 22px 24px;
}

.journal-grid > .journal-card:first-child .journal-title {
  font-size: 18px;
}

.journal-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.journal-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.journal-link {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
}

/* CONTACTO / RESERVA */

.booking-section {
  padding: 64px 0 72px;
}

.booking-shell {
  background: #ffffff;
  border-radius: 30px;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.booking-title {
  font-size: 18px;
  color: var(--color-dark);
  margin: 0 0 4px;
}

.booking-row {
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--color-muted);
  margin: 14px 0 18px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.booking-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--color-muted);
}

.booking-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245,245,245,0.9);
  border: 1px solid rgba(0,0,0,0.04);
}

.contact-box {
  background: rgba(247,250,249,0.92);
  border-radius: 20px;
  padding: 16px 16px 18px;
  font-size: 13px;
  color: var(--color-muted);
  display: grid;
  gap: 10px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
}

.contact-value {
  font-size: 13px;
  color: var(--color-dark);
}

.map-embed {
  margin-top: 8px;
  width: 100%;
  height: 180px;
  border-radius: 16px;
  border: 0;
}

/* LEGAL / GENERIC PAGES */

.legal-page {
  padding: 120px 0 60px;
}

.legal-container {
  max-width: 780px;
}

.legal-title {
  font-size: 28px;
  color: var(--color-dark);
  margin-bottom: 28px;
}

.legal-content {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 20px;
  color: var(--color-dark);
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 17px;
  color: var(--color-dark);
  margin: 24px 0 8px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 14px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-dark);
}

@media (max-width: 768px) {
  .legal-page {
    padding: 100px 0 40px;
  }

  .legal-title {
    font-size: 24px;
  }
}

/* BLOG PAGE */

.blog-page {
  padding: 120px 0 60px;
}

.blog-page .section-header {
  margin-bottom: 36px;
}

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

.blog-grid .journal-title a {
  color: inherit;
  text-decoration: none;
}

.blog-grid .journal-title a:hover {
  color: var(--color-primary);
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  font-size: 13px;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  text-decoration: none;
}

.blog-pagination .current {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.blog-pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .blog-page {
    padding: 100px 0 40px;
  }

  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* WHATSAPP FLOAT */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 36px rgba(37,211,102,0.35);
  z-index: 60;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(37,211,102,0.45);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* FOOTER */

.site-footer {
  padding: 22px 0 24px;
  font-size: 11px;
  color: var(--color-muted);
  background: rgba(247,250,249,0.98);
  border-top: 1px solid rgba(0,0,0,0.03);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* WordPress footer menu */
.footer-inner .menu {
  list-style: none;
  display: inline-flex;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.footer-inner .menu li a {
  color: var(--color-muted);
}

.footer-inner .menu li a:hover {
  color: var(--color-dark);
}

.footer-inner .menu li::after {
  content: " \00B7 ";
  margin-left: 4px;
}

.footer-inner .menu li:last-child::after {
  content: none;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .treatments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 782px) {
  /* WordPress admin bar on mobile */
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 768px) {
  .site-header {
    background: #ffffff;
  }

  .header-inner {
    padding-inline: 16px;
  }

  .logo-area img,
  .logo-area .custom-logo {
    height: 40px;
  }

  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    background: rgba(247,250,249,0.98);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 10px 20px 16px;
    gap: 10px;
  }

  .header-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-slider {
    height: 520px;
    margin-top: 60px;
  }

  .slide-content {
    text-align: left;
  }

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

  .slider-controls {
    inset-inline: 0;
  }

  .team-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .treatments-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .journal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-shell {
    padding: 22px 18px;
  }

  .contact-box {
    margin-top: 6px;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .slide-title {
    font-size: 26px;
  }

  .slide-text {
    font-size: 14px;
  }

  .section-title {
    font-size: 22px;
  }

  .contact-box {
    border-radius: 18px;
  }

  .booking-shell {
    border-radius: 22px;
    padding: 22px 18px;
  }
}
