/* =============================================
   DESIGN TOKENS & FIGMA SPEC
============================================= */
:root {
  /* Colors extracted directly from Figma */
  --background: #ffffff;
  --background-alt: #faf2f0;
  --background-gray: #f7f7f7;
  --surface: #f2f2f2;
  --surface-alt: #d9d9d9;
  --surface-border: #eaeaea;

  --text-primary: #000000;
  --text-primary-alt: #232323;
  --text-secondary: #545454;
  --text-secondary-alt: #454545;
  --text-muted: #717171;

  --accent-pink: #e29b91;
  --accent-terracotta: #D78485;
  --accent-blue: #349196;
  --accent-alt: #d68383;
  --accent-light-pink: #fdf3f2;

  --brand-green: #349196;
  --brand-green-dark: #349196;
  --brand-green-light: #dbeada;
  --brand-green-subtle: #dbedd8;

  --footer-bg: #232323;
  --footer-border: rgba(255, 255, 255, 0.12);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0px 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0px 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0px 8px 30px rgba(0, 0, 0, 0.08);

  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --font-tag: 'Instrument Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-primary-alt);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =============================================
   CONTAINER & SECTION HELPERS
============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-label {
  font-family: var(--font-tag);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary-alt);
}

/* =============================================
   TAGS & BADGES
============================================= */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tag);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  line-height: 1.2;
}

.tag-green {
  background-color: var(--brand-green);
  color: #ffffff;
}

.tag-lightgreen {
  background-color: var(--brand-green-light);
  color: var(--brand-green-dark);
}

.tag-pink {
  background-color: var(--accent-terracotta);
  color: #ffffff;
}

.tag-lightpink {
  background-color: var(--accent-light-pink);
  color: var(--accent-terracotta);
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-terracotta {
  background-color: var(--accent-terracotta);
  color: #ffffff;
}

.btn-terracotta:hover {
  background-color: #be5353;
  color: #ffffff;
}

.btn-green {
  background-color: var(--brand-green);
  color: #ffffff;
}

.btn-green:hover {
  background-color: var(--brand-green-dark);
  color: #ffffff;
}

.btn-outline {
  background-color: #ffffff;
  color: var(--text-primary-alt);
  border: 1.5px solid #d9d9d9;
}

.btn-outline:hover {
  border-color: var(--text-primary-alt);
}

.btn-white {
  background-color: #ffffff;
  color: var(--text-primary-alt);
}

.btn-white:hover {
  background-color: #f5f5f5;
}

.btn-outline-pink {
  background-color: var(--accent-light-pink);
  color: var(--accent-terracotta);
  border: 1px solid rgba(209, 101, 101, 0.3);
}

.btn-outline-pink:hover {
  background-color: var(--accent-terracotta);
  color: #ffffff;
}

/* =============================================
   NAVBAR
============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 88px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 80px;
}

.navbar-container {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary-alt);
  line-height: 1.1;
}

.logo-sub {
  font-family: var(--font-heading);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary-alt);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-terracotta);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-terracotta);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary-alt);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 32px 24px;
  flex-direction: column;
  transition: right 0.3s ease;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.mobile-nav-backdrop.open {
  display: block;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-nav-close {
  font-size: 24px;
  color: var(--text-primary-alt);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin-bottom: 32px;
}

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary-alt);
}

/* =============================================
   HERO SECTION
============================================= */
#hero {
  padding-top: 130px;
  padding-bottom: 70px;
  background-color: #F2F2F2;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-primary-alt);
  margin-top: 20px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-title .text-accent {
  color: var(--accent-blue);
  display: block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* =============================================
   WHATSAPP FLOAT
============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* =============================================
   ABOUT SECTION (SOBRE MI)
============================================= */
#about {
  padding: 100px 0;
  background-color: var(--background);
}

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

.about-image-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text-primary-alt);
  margin-top: 14px;
  margin-bottom: 22px;
}

.about-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--surface-border);
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-green-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* =============================================
   TRATAMIENTOS SECTION
============================================= */
#tratamientos {
  padding: 100px 0;
  background-color: var(--surface);
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

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

.treatment-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.treatment-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.treatment-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.treatment-card:hover .treatment-img-wrap img {
  transform: scale(1.06);
}

.treatment-tag-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
}

.treatment-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.treatment-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary-alt);
  margin-bottom: 12px;
  line-height: 1.3;
}

.treatment-card-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.65;
}

.tratamientos-cta-center {
  text-align: center;
}

/* =============================================
   DESTACADO 1 (BANNER VERDE)
============================================= */
#destacado {
  background-color: var(--brand-green-dark);
  padding: 60px 0;
  color: #ffffff;
}

.destacado-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.destacado-content {
  max-width: 680px;
}

.destacado-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #ffffff;
}

.destacado-text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.destacado-action {
  flex-shrink: 0;
}

/* =============================================
   ANTES Y DESPUES SECTION
============================================= */
#antesydespues {
  padding: 100px 0;
  background-color: var(--background);
}

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

.caso-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--surface-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.caso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.caso-img-split {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.caso-img-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caso-badge-left,
.caso-badge-right {
  position: absolute;
  bottom: 12px;
  font-family: var(--font-tag);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.caso-badge-left {
  left: 12px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
}

.caso-badge-right {
  right: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--text-primary-alt);
}

/* =============================================
   BEFORE / AFTER COMPARISON SLIDER
============================================= */
:root {
  --ba-handle-size: 42px;
  --ba-handle-color: #ffffff;
  --ba-handle-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 1px 4px rgba(0, 0, 0, 0.12);
  --ba-line-color: #ffffff;
  --ba-line-width: 2.5px;
  --ba-line-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  --ba-border-radius: 20px;
}

.ba-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  border-radius: var(--ba-border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(25, 30, 60, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  background: #f8fafc;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: ew-resize;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Cuando está dentro de un caso-card en la landing */
.caso-card .ba-card {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  max-width: 100%;
}

.ba-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 80vh;
  overflow: hidden;
  display: block;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  display: block;
}

.ba-before-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--position, 50%)) 0 0);
  will-change: clip-path;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position, 50%);
  width: var(--ba-line-width);
  background-color: var(--ba-line-color);
  box-shadow: var(--ba-line-shadow);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  will-change: left;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ba-handle-size);
  height: var(--ba-handle-size);
  background: var(--ba-handle-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--ba-handle-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b335c;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  z-index: 11;
  pointer-events: none;
}

.ba-card:hover .ba-handle,
.ba-card.is-dragging .ba-handle {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.16);
}

.ba-card.is-dragging {
  cursor: grabbing;
}

.ba-handle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ba-badge {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  font-family: var(--font-tag);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(20, 24, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ba-badge-before {
  left: 14px;
}

.ba-badge-after {
  right: 14px;
}

.ba-card[data-slider-pos="left"] .ba-badge-before {
  opacity: 0.15;
}

.ba-card[data-slider-pos="right"] .ba-badge-after {
  opacity: 0.15;
}

.ba-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  padding: 0;
  cursor: ew-resize;
  z-index: 20;
  -webkit-appearance: none;
  appearance: none;
}

.ba-range-input:focus-visible~.ba-image-wrapper .ba-divider .ba-handle {
  outline: 3px solid #b35338;
  outline-offset: 3px;
}

.caso-info {
  padding: 18px 20px;
}

.caso-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary-alt);
  margin-bottom: 4px;
}

.caso-meta {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* =============================================
   TESTIMONIOS SECTION
============================================= */
#testimonios {
  padding: 100px 0;
  background-color: var(--surface);
  overflow: hidden;
}

.testimonios-slider-wrap {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.testimonios-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.testimonios-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonio-card {
  width: 360px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.testimonio-stars {
  color: var(--accent-terracotta);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.testimonio-quote {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary-alt);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: normal;
}

.testimonio-author {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-primary-alt);
}

/* =============================================
   CHARLAS Y ENTREVISTAS (YOUTUBE)
============================================= */
.charlas-section {
  padding: 81px 0;
  background-color: #ffffff;
}

.charlas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* DESIGN.md spacing scale: 30px gap */
  gap: 24px;
  margin-top: 42px;
  margin-bottom: 42px;
}

.charla-card {
  display: flex;
  flex-direction: column;
  /* DESIGN.md spacing scale: 12px */
  gap: 12px;
}

.charla-thumb-link {
  display: block;
  text-decoration: none;
}

.charla-thumb-wrap {
  position: relative;
  /* DESIGN.md: radius-sm-2 = 8px (most used, 23×) */
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  /* DESIGN.md: surface-alt = #cdcdcd */
  background-color: #cdcdcd;
  /* DESIGN.md: elevation-1 = 0px 4px 24px 0px rgba(0,0,0,0.1) */
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.10);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.charla-thumb-link:hover .charla-thumb-wrap {
  box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}

.charla-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.charla-thumb-link:hover .charla-thumb-img {
  transform: scale(1.04);
}

.charla-play-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  /* DESIGN.md: radius-sm-2 = 8px */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.charla-thumb-link:hover .charla-play-btn {
  /* DESIGN.md: accent-3 = #d16565 */
  background: rgba(209, 101, 101, 0.92);
  transform: scale(1.08);
}

.charla-play-btn svg {
  width: 20px;
  height: 20px;
}

.charla-info {
  display: flex;
  flex-direction: column;
  /* DESIGN.md spacing scale: 8px */
  gap: 8px;
}

.charla-title {
  /* DESIGN.md: body-medium = Montserrat 16px/500 */
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary-alt);
  line-height: 1.4;
}

.charla-link {
  display: inline-flex;
  align-items: center;
  /* DESIGN.md spacing scale: 8px */
  gap: 8px;
  /* DESIGN.md: body-sm = Montserrat 14px/400 */
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  /* DESIGN.md: text-secondary-alt = #423a39 */
  color: #423a39;
  text-decoration: none;
  transition: color 0.2s ease;
}

.charla-link:hover {
  /* DESIGN.md: accent-3 = #d16565 */
  color: #d16565;
}

.charla-yt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FF0000;
  flex-shrink: 0;
}

.charlas-cta-center {
  text-align: center;
}

/* =============================================
   INSTAGRAM SECTION
============================================= */
.instagram-section {
  /* DESIGN.md: Frame 78 padding 40px vertical (Figma spec) */
  padding: 40px 0;
  /* DESIGN.md: background-alt = #faf2f0 */
  background-color: #faf2f0;
}

.instagram-grid {
  display: grid;
  /* Figma Frame 78: image 492px + text 664px ≈ ratio 1 : 1.35 */
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  /* DESIGN.md spacing scale: 80px */
  gap: 80px;
}

.instagram-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.instagram-title {
  /* DESIGN.md: h3-medium = Montserrat 36px/500 */
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  /* DESIGN.md: text-primary-alt = #232323 */
  color: #232323;
  margin-top: 8px;
  margin-bottom: 16px;
  letter-spacing: normal;
}

.instagram-desc {
  /* DESIGN.md: body-medium = Montserrat 16px/500, line-height 140% */
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  /* DESIGN.md: text-secondary = #545454 */
  color: #545454;
  line-height: 1.4;
  margin-bottom: 24px;
}

.instagram-feed-wrap {
  /* DESIGN.md: radius-md = 16px */
  border-radius: 16px;
  overflow: hidden;
  /* DESIGN.md: elevation-1 = 0px 4px 24px 0px rgba(0,0,0,0.1) */
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-feed-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.14);
}

.instagram-feed-img {
  width: 100%;
  height: auto;
  display: block;
}

.redes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

/* 2-column layout for YouTube + Instagram only */
.redes-grid-2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.redes-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.redes-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.07);
}

.redes-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.redes-media-wrap {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-color: #dfdfdf;
}

/* Platform badge overlay on image */
.redes-platform-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
  transition: transform 0.2s ease;
}

.redes-card:hover .redes-platform-badge {
  transform: scale(1.04);
}

.redes-yt-badge {
  background: rgba(255, 0, 0, 0.88);
  color: #ffffff;
}

.redes-ig-badge {
  background: rgba(225, 48, 108, 0.88);
  color: #ffffff;
}

.redes-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.redes-card:hover .redes-media-wrap img {
  transform: scale(1.03);
}

/* Instagram Rosacea Overlay */
.redes-instagram-media {
  position: relative;
}

.rosacea-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 20%, rgba(0, 0, 0, 0.5) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 16px;
  text-align: center;
  pointer-events: none;
}

.rosacea-tag-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
}

.rosacea-tag-subtitle {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #ffffff;
  line-height: 1.2;
  margin-top: 2px;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Spotify Placeholder */
.redes-spotify-media {
  background-color: #dcdcdc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotify-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaeaea 0%, #d8d8d8 100%);
}

.spotify-center-icon {
  width: 64px;
  height: 64px;
  color: #bfbfbf;
  transition: color 0.3s ease, transform 0.3s ease;
}

.redes-card:hover .spotify-center-icon {
  color: #1ED760;
  transform: scale(1.08);
}

.spotify-center-icon svg {
  width: 100%;
  height: 100%;
}

/* Card Content & Action */
.redes-body {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 4px;
  flex-grow: 1;
}

.redes-body-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.redes-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary-alt);
  line-height: 1.3;
}

.redes-card-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

.redes-cta-btn {
  align-self: flex-start;
  margin-top: 4px;
}

.redes-tag-wrapper {
  display: flex;
}

.redes-pill-tag {
  background-color: var(--accent-terracotta);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(209, 101, 101, 0.22);
}

.redes-action-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary-alt);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.redes-action-link:hover {
  opacity: 0.85;
  transform: translateX(2px);
}

.social-brand-icon-wrap {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-brand-icon-wrap.bg-youtube {
  color: #FF0000;
}

.social-brand-icon-wrap.bg-instagram {
  color: #E1306C;
}

.social-brand-icon-wrap.bg-spotify {
  color: #1ED760;
}

.social-brand-svg {
  width: 100%;
  height: 100%;
}

.redes-action-text {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary-alt);
}

/* =============================================
   CONSULTORIO SECTION
============================================= */
#consultorio {
  padding: 100px 0;
  background-color: #ffffff;
}

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

.consultorio-img-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

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

.consultorio-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.consultorio-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
  margin-bottom: 36px;
  width: 100%;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary-alt);
}

.info-value {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* =============================================
   DESTACADO 2 (BANNER TERRACOTTA)
============================================= */
#destacado2 {
  background-color: var(--accent-terracotta);
  padding: 90px 0;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.destacado2-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.destacado2-label {
  font-family: var(--font-tag);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.destacado2-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #ffffff;
}

.destacado2-desc {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* =============================================
   FOOTER
============================================= */
#footer {
  background-color: var(--footer-bg);
  color: #ffffff;
  padding-top: 70px;
  padding-bottom: 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--footer-border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 340px;
}

.footer-brand .logo-name {
  color: #ffffff;
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent-pink);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-contact-info p {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background-color: var(--accent-terracotta);
  transform: translateY(-2px);
}

.social-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
}

.footer-copy,
.footer-credit {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

/* =============================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
============================================= */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .hero-title {
    font-size: 44px;
  }

  .about-grid {
    grid-template-columns: 360px 1fr;
    gap: 40px;
  }

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

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

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

  .consultorio-grid {
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {

  .nav-menu,
  .navbar-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  #hero {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-wrap {
    max-width: 400px;
    margin: 0 auto;
  }

  #about {
    padding: 70px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .about-content {
    align-items: center;
  }

  .about-image-card {
    max-width: 380px;
    margin: 0 auto;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #tratamientos {
    padding: 70px 0;
  }

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

  .destacado-flex {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .destacado-title {
    font-size: 26px;
  }

  #antesydespues {
    padding: 70px 0;
  }

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

  #testimonios {
    padding: 70px 0;
  }

  .charlas-section {
    padding: 70px 0;
  }

  .charlas-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }

  .instagram-section {
    padding: 60px 0;
  }

  .instagram-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .instagram-content {
    align-items: center;
  }

  .instagram-title {
    font-size: 28px;
  }

  #consultorio {
    padding: 70px 0;
  }

  .consultorio-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .consultorio-details {
    align-items: center;
  }

  #destacado2 {
    padding: 70px 0;
  }

  .destacado2-title {
    font-size: 32px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    margin: 0 auto;
  }

  .footer-social-icons {
    justify-content: center;
  }

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