/* Home Specific Styles */
/* Modern Utilities - Optimized & Logical */
/* NOTE: Colors, radius, shadows defined in critical.css */
:root {
  /* Extra tokens (not in critical.css) */
  --color-bg-medical: #faf8f6;
  --color-surface-1: var(--color-secondary);

  /* Fluid Typography (No Media Queries) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 2rem + 1.5vw, 3rem);
  --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4.5rem);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
}

/* Typography Utility Generator */
:is(.text-xs) {
  font-size: var(--text-xs);
  line-height: 1.5;
}
:is(.text-sm) {
  font-size: var(--text-sm);
  line-height: 1.5;
}
:is(.text-base) {
  font-size: var(--text-base);
  line-height: 1.6;
}
:is(.text-lg) {
  font-size: var(--text-lg);
  line-height: 1.6;
}
:is(.text-xl) {
  font-size: var(--text-xl);
  line-height: 1.5;
}
:is(.text-2xl) {
  font-size: var(--text-2xl);
  line-height: 1.4;
}
:is(.text-3xl) {
  font-size: var(--text-3xl);
  line-height: 1.3;
}
:is(.text-4xl) {
  font-size: var(--text-4xl);
  line-height: 1.2;
}
:is(.text-5xl) {
  font-size: var(--text-5xl);
  line-height: 1.1;
}

:is(.font-normal) {
  font-weight: 400;
}
:is(.font-medium) {
  font-weight: 500;
}
:is(.font-semibold) {
  font-weight: 600;
}
:is(.font-bold) {
  font-weight: 700;
}
:is(.font-extrabold) {
  font-weight: 800;
}

:is(.uppercase) {
  text-transform: uppercase;
}
:is(.tracking-wide) {
  letter-spacing: 0.05em;
}
:is(.tracking-wider) {
  letter-spacing: 0.1em;
}
:is(.text-center) {
  text-align: center;
}
:is(.text-left) {
  text-align: left;
}
:is(.text-right) {
  text-align: right;
}

/* Colors */
.text-primary {
  color: var(--color-primary);
}
.text-accent {
  color: var(--color-accent);
}
.text-muted {
  color: var(--color-text-light);
}
.text-white {
  color: white;
}

.bg-primary {
  background-color: var(--color-primary);
}
.bg-accent {
  background-color: var(--color-accent);
}
.bg-light {
  background-color: var(--color-bg-medical);
}
.bg-white {
  background-color: white;
}

/* ============================================
   MODERN LAYOUT UTILITIES
   Using CSS custom properties for flexibility
   ============================================ */

/* Flow - Automatic vertical spacing between children */
.flow > * + * {
  margin-block-start: var(--flow-space, 1.5rem);
}

.flow-sm {
  --flow-space: 1rem;
}

.flow-lg {
  --flow-space: 2.5rem;
}

.flow-xl {
  --flow-space: 4rem;
}

/* .stack, .cluster, .grid-auto → defined in critical.css */

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
  gap: 30px;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}

/* Sizing */
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}

/* Positioning */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.sticky {
  position: sticky;
}
.top-0 {
  top: 0;
}
.inset-0 {
  inset: 0;
}

/* Display States */
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}
.hidden {
  display: none;
}

/* Effects */
.rounded {
  border-radius: var(--radius-sm);
}
.rounded-lg {
  border-radius: var(--radius-md);
}
.rounded-xl {
  border-radius: var(--radius-lg);
}
.rounded-full {
  border-radius: var(--radius-full);
}
.shadow {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}

.overflow-hidden {
  overflow: hidden;
}
.object-cover {
  object-fit: cover;
}
.cursor-pointer {
  cursor: pointer;
}

/* Transitions */
.transition {
  transition: all 0.2s;
}
.transition-colors {
  transition:
    color 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}
.transition-transform {
  transition: transform 0.3s;
}

/* Modern Header CSS - Sticky, optimized & CSS-driven */
:root {
  --header-height: 6rem;
}

/* Main Container */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid #e2e8f0;

  /* Modern CSS scroll-driven animation for standard headers if desired, 
     but mostly needed for transparent one. */
}

/* Inner Layout */
.site-header__inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 100%;
  gap: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Transparent Variant (Homepage) */
.site-header--transparent {
  background: transparent;
  border-bottom: none;
  margin-block-end: calc(var(--header-height) * -1); /* Pull content up */

  /* Scroll-Driven Animation: Swaps bg color on scroll */
  animation: header-bg-reveal linear both;
  animation-timeline: scroll();
  animation-range: 0vh 20vh;
}

@keyframes header-bg-reveal {
  to {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e2e8f0;
  }
}

/* Logo & Nav Color Logic with Nesting */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);

  &__icon {
    font-size: 2.25rem;
    color: var(--color-primary);
  }
}

.logo-text-main {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.logo-text-sub {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Nav Link Colors */
.site-nav {
  display: flex;
  gap: 2.5rem;

  & a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;

    &:hover {
      color: var(--color-primary);
    }
  }

  @media (width < 1024px) {
    display: none;
  }
}

/* Transparent Header Color Overrides (CSS-driven scroll fix) */
.site-header--transparent {
  /* Initial State (Top) */
  & .site-nav a,
  & .logo-text-main,
  & .site-logo__icon,
  & .mobile-menu-icon {
    color: white; /* Start White */

    /* Animate to dark on scroll */
    animation: text-to-dark linear both;
    animation-timeline: scroll();
    animation-range: 0vh 20vh;
  }

  & .site-nav a:hover {
    color: white; /* Keep white on hover at top */
  }
}

@keyframes text-to-dark {
  to {
    color: var(--color-text);
  }
}

/* Specific Logo Icon override for scroll */
.site-header--transparent .site-logo__icon {
  animation: icon-to-primary linear both;
  animation-timeline: scroll();
  animation-range: 0vh 20vh;
}

@keyframes icon-to-primary {
  to {
    color: var(--color-primary);
  }
}

/* Actions / Buttons */
.header-actions {
  display: flex;
  gap: 1rem;
  margin-inline-start: auto;
  align-items: center;

  @media (width < 768px) {
    display: none;
  }
}

/* Mobile Menu Icon */
.mobile-menu-icon {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-inline-start: auto;

  @media (width < 1024px) {
    display: block;
  }
}

.header-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.2s;
  white-space: nowrap;

  &.btn-outline {
    color: var(--color-primary);
    border: 1.5px solid
      color-mix(in srgb, var(--color-primary) 25%, transparent);
    background: color-mix(in srgb, var(--color-primary) 5%, transparent);
    backdrop-filter: blur(4px);

    &:hover {
      background: color-mix(in srgb, var(--color-primary) 10%, transparent);
      border-color: var(--color-primary);
      box-shadow: 0 4px 12px
        color-mix(in srgb, var(--color-primary) 15%, transparent);
    }
  }

  &.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    &:hover {
      background-color: var(--color-secondary);
    }
  }
}

/* Transparent Header Button overrides */
.site-header--transparent .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);

  animation: btn-outline-to-dark linear both;
  animation-timeline: scroll();
  animation-range: 0vh 20vh;
}

@keyframes btn-outline-to-dark {
  to {
    color: var(--color-primary);
    border-color: var(--color-primary);
  }
}

.site-header--transparent .btn-primary {
  background-color: white;
  color: var(--color-primary);

  animation: btn-primary-to-default linear both;
  animation-timeline: scroll();
  animation-range: 0vh 20vh;
}

@keyframes btn-primary-to-default {
  to {
    background-color: var(--color-primary);
    color: white;
  }
}

/* Mobile Menu */
#menu-toggle:checked ~ .mobile-menu {
  display: block;
  animation: slideDown 0.2s ease-out;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  overflow-x: hidden;

  @media (width >= 1024px) {
    display: none !important;
  }
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu-link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.mobile-menu-actions .btn,
.mobile-menu-actions .btn-outline {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  text-align: center;
  box-sizing: border-box;
}

.mobile-menu-actions .btn-outline {
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  background: transparent;
}

.mobile-menu-actions .btn-outline:hover {
  background: rgba(13, 148, 136, 0.05);
}

.mobile-menu-actions .btn {
  background-color: var(--color-primary);
  color: white;
}

.mobile-menu-actions .btn:hover {
  background-color: var(--color-secondary);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Styles */
.site-footer {
  background-color: var(--color-secondary);
  color: white;
  padding-block-start: 6rem; /* pt-24 */
  padding-block-end: 3rem; /* pb-12 */
}

/* Detailed Grid Layout matching lg:grid-cols-4 gap-16 */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem; /* gap-16 */
  padding-block-end: 5rem; /* pb-20 */
  border-block-end: 1px solid rgba(255, 255, 255, 0.05); /* border-white/5 */
  max-width: 80rem; /* 7xl */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Brand Column: col-span-1 md:col-span-2 */
.footer-brand-col {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-brand-col {
    grid-column: span 2;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 2rem; /* mb-8 */
  color: white;
  text-decoration: none;
}

/* Premium Text Color: teal-100 (#ccfbf1) with 60% opacity */
.footer-description {
  color: rgba(204, 251, 241, 0.6);
  max-width: 28rem;
  line-height: 1.625;
  margin-block-end: 2.5rem; /* mb-10 */
  font-size: 1rem; /* text-base */
}

.social-cluster {
  display: flex;
  gap: 1.25rem; /* gap-5 */
}

.social-icon {
  width: 3rem; /* w-12 */
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05); /* bg-white/5 */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: white;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--color-accent);
  color: white;
}

/* Footer Links Column */
.footer-title {
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.75rem; /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.2em; /* tracking-[0.2em] */
  margin-block-end: 2rem; /* mb-8 */
}

.footer-nav-stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* space-y-5 */
}

/* Premium Link Color: teal-100/80 */
.footer-link {
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  color: rgba(204, 251, 241, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

/* Footer Map Mini (junto al párrafo de descripción) */
.footer-brand-body {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-block-end: 2.5rem;
}

.footer-description {
  margin-block-end: 0;
}

.footer-map-mini {
  flex-shrink: 0;
  width: 200px;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.footer-map-mini__frame {
  width: 100%;
  height: 145px;
  border: 0;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.3s ease;
}

.footer-map-mini:hover .footer-map-mini__frame {
  filter: grayscale(0%);
}

@media (max-width: 479px) {
  .footer-brand-body {
    flex-direction: column;
  }

  .footer-map-mini {
    width: 100%;
  }

  .footer-map-mini__frame {
    height: 140px;
  }
}

/* Footer Bottom */
.footer-bottom {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  padding-block-start: 2.5rem; /* py-10 */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Premium Copyright Color: teal-100/40 */
.footer-copyright {
  font-size: 0.75rem; /* text-xs */
  color: rgba(204, 251, 241, 0.4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright {
    text-align: left;
  }
}

.footer-legal-cluster {
  display: flex;
  gap: 2.5rem; /* gap-10 */
}

.footer-legal-link {
  font-size: 0.625rem; /* text-[10px] */
  font-weight: 800;
  color: rgba(204, 251, 241, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: white;
}

/* Hero Styles */
section.hero {
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 60px; /* rounded-b-[60px] */
  border-bottom-right-radius: 60px;
  background: linear-gradient(
    135deg,
    #0d9488 0%,
    #134e4a 100%
  ); /* hero-gradient */
  -webkit-padding-before: 12rem;
          padding-block-start: 12rem; /* pt-48 approx */
  -webkit-padding-after: 8rem;
          padding-block-end: 8rem; /* pb-32 approx */
}

/* Decorative circles */
.hero::before {
  content: "";
  position: absolute;
  top: 2.5rem; /* top-10 */
  right: 2.5rem; /* right-10 */
  width: 16rem; /* w-64 */
  height: 16rem;
  border: 4px solid white;
  border-radius: 50%;
  opacity: 0.1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 5rem; /* bottom-20 */
  left: 5rem; /* left-20 */
  width: 8rem; /* w-32 */
  height: 8rem;
  border: 2px solid white;
  border-radius: 50%;
  opacity: 0.1;
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 80rem; /* 7xl */
  margin-inline: auto;
  padding-inline: 1.5rem;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 4.5rem); /* text-4xl md:text-6xl lg:text-7xl */
  font-weight: 800; /* font-extrabold */
  color: white;
  -webkit-margin-after: 2rem;
          margin-block-end: 2rem; /* mb-8 */
  line-height: 1.1;
  max-width: 56rem; /* max-w-4xl */
  margin-inline: auto;
}

.hero__title .highlight {
  color: var(--color-accent);
  text-decoration: underline;
  -webkit-text-decoration-color: rgba(245, 158, 11, 0.3);
          text-decoration-color: rgba(245, 158, 11, 0.3); /* accent/30 */
}

/* Search Bar Container */
.hero-search-container {
  max-width: 56rem; /* max-w-4xl */
  margin-inline: auto;
  margin-top: 3rem; /* mt-12 */
  margin-bottom: 4rem; /* mb-16 */
}

.hero-search-box {
  background: white;
  padding: clamp(0.75rem, 2vw, 1rem);
  border-radius: clamp(1rem, 5vw, 9999px);
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 0.5rem);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .hero-search-box {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  background: #f8fafc;
  border-radius: clamp(0.75rem, 3vw, 9999px);
  width: 100%;
}

@media (min-width: 768px) {
  .search-input-group {
    background: transparent;
    border-radius: 0;
  }
}

/* Custom Select Styling */
.custom-select {
  position: relative;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-align: left;
}

.custom-select__placeholder {
  color: #64748b;
}

.custom-select__placeholder--selected {
  color: var(--color-text);
}

.custom-select__arrow {
  transition: transform 0.2s ease;
  color: #64748b;
  font-size: 1.25rem;
}

.custom-select.is-open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: -1rem;
  right: -1rem;
  background: white;
  border-radius: clamp(0.5rem, 2vw, 1rem);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.custom-select.is-open .custom-select__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 300px;
}

.custom-select__option {
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}

.custom-select__option:last-child {
  border-bottom: none;
}

.custom-select__option:hover {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(19, 78, 74, 0.08) 100%);
  color: var(--color-primary);
}

.custom-select__option.is-selected {
  background: linear-gradient(135deg, #0d9488 0%, #134e4a 100%);
  color: white;
}

.custom-select__option--placeholder {
  color: #94a3b8;
  font-style: italic;
}

.custom-select__option--placeholder:hover {
  background: #f8fafc;
  color: #94a3b8;
}

.search-btn {
  background-color: var(--color-accent);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: clamp(0.875rem, 2vw, 1rem);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .search-btn {
    width: auto;
    flex-shrink: 0;
  }
}

.search-btn:hover {
  background-color: #f97316;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Trust Indicators */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem; /* gap-12 */
  opacity: 0.8;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.trust-item span.text-xs {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Component Styles - Loaded after critical CSS */

/* Material Icons Font */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all 0.2s;
  text-align: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.btn:is(:hover, :focus-visible),
.btn-primary:is(:hover, :focus-visible),
.btn-secondary:is(:hover, :focus-visible),
.btn-outline:is(:hover, :focus-visible) {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 10px 25px -5px rgb(245 158 11 / 0.2);
}

.btn-primary:hover {
  background: #d97706; /* amber-600 approx/darker orange */
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(245 158 11 / 0.3);
}

/* Tinted Button (Reference style for 'Ver Video') */
.btn-secondary {
  background: rgba(13, 148, 136, 0.1); /* primary/10 */
  color: var(--color-primary);
  border: 1px solid transparent;
}

.btn-secondary:hover {
  background: rgba(13, 148, 136, 0.2);
  color: var(--color-secondary);
}

.btn-outline {
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  color: var(--color-primary);
  backdrop-filter: blur(4px);
}

.btn-outline:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--color-primary) 15%, transparent);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.card:is(:hover, :focus-within) {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
}

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-input {
  padding: 1rem 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.form-select {
  appearance: none;
  background: white
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e")
    no-repeat right 0.5rem center/1.5em 1.5em;
  padding-inline-end: 2.5rem;
}

/* Hero Search Bar */
.hero-search {
  display: flex;
  background: white;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  gap: 0.5rem;
}

@media (width < 768px) {
  .hero-search {
    flex-direction: column;
  }
}

.hero-search__field {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 1.5rem;
  min-width: 0;
}

.hero-search__field:not(:last-of-type) {
  border-inline-end: 1px solid #e2e8f0;
}

@media (width < 768px) {
  .hero-search__field:not(:last-of-type) {
    border-inline-end: none;
    border-block-end: 1px solid #e2e8f0;
  }
}

.hero-search__input {
  flex: 1;
  border: none;
  outline: none;
  min-width: 0;
}

.hero-search__input::placeholder {
  color: #94a3b8;
}

/* Treatment Cards */
.treatment-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.treatment-card__image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-block-end: 1.5rem;
  aspect-ratio: 16 / 9;
}

.treatment-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}

.treatment-card:hover .treatment-card__img {
  transform: scale(1.05);
}

.treatment-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: white;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.treatment-card__badge--no-invasivo    { color: #166534; }
.treatment-card__badge--minimo-invasivo { color: #92400e; }
.treatment-card__badge--invasivo       { color: #991b1b; }
.treatment-card__badge--cirugia-facial  { color: #1e40af; }
.treatment-card__badge--cirugia-corporal{ color: #5b21b6; }

.treatment-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-block-end: 0.75rem;
  color: var(--color-text);
}

.treatment-card__description {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-block-end: 1rem;
  line-height: 1.6;
  flex: 1;
}

.treatment-card__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-block-start: 1rem;
  border-block-start: 1px solid #e2e8f0;
  margin-block-end: 1.5rem;
}

.treatment-card__recovery {
  text-align: right;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.treatment-card__recovery-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: flex-end;
}

.treatment-card__recovery-time .material-symbols-outlined {
  font-size: 1rem;
}

.treatment-card__recovery-label {
  font-size: 0.75rem;
  margin-block-start: 0.25rem;
  color: var(--color-primary);
}

.treatment-card__cta {
  width: 100%;
  justify-content: center;
  background: var(--color-primary);
  color: white;
}

/* .specialist-card → defined in specialist-card.css */

/* Testimonial */
.testimonial {
  background: color-mix(in srgb, white 10%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, white 10%, transparent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.testimonial__stars {
  display: flex;
  gap: 0.25rem;
  color: var(--color-accent);
  margin-block-end: 1.5rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-start: 2rem;
}

.testimonial__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
}

/* FAQ Accordion */
.faq-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.faq-item summary {
  padding: 2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__content {
  padding: 0 2rem 2rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Icon */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* Stats Badge */
.stats-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.stats-badge__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-badge__number {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.stats-badge__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

/* Blog & Post Styles */
.blog-card__meta {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-block-end: 1rem;
}

.post-wrapper {
  max-width: 48rem;
}

.post-header {
  margin-block-end: 3rem;
  text-align: center;
}

.post-category {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-block-end: 1rem;
}

.post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-block-end: 1.5rem;
}

.post-meta {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.post-meta-separator {
  margin-inline: 0.75rem;
}

.post-featured-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-block-end: 3rem;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-block-end: 3rem;
}

.post-content h2 {
  font-size: 1.875rem;
  font-weight: 800;
  margin-block-start: 2.5rem;
  margin-block-end: 1rem;
}

.post-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-block-start: 2rem;
  margin-block-end: 0.75rem;
}

.post-content p {
  margin-block-end: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin-block-end: 1.5rem;
  padding-inline-start: 2rem;
}

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

.post-footer {
  border-block-start: 1px solid #e2e8f0;
  padding-block-start: 2rem;
  margin-block-start: 3rem;
}

.post-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-block-end: 2rem;
}

.post-tag {
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.post-tag:hover {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-share-label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--color-primary);
  color: white;
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block-end: 3rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state__icon {
  font-size: 4rem;
  color: var(--color-text-light);
  opacity: 0.3;
  display: block;
  margin-block-end: 1rem;
}

.empty-state__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-block-end: 0.5rem;
}

.empty-state__text {
  color: var(--color-text-light);
  font-size: 1.125rem;
}

.page-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  margin-block-end: 1rem;
}

.page-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 42rem;
  margin-inline: auto;
  margin-block-end: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-block-end: 3rem;
}

.btn-white {
  background: white;
  color: var(--color-primary);
}

.icon-inline {
  font-size: 1rem;
  vertical-align: middle;
}

.blog-hero {
  padding-block-start: 2rem;
}

/* ============================================
   MODERN SEMANTIC COMPONENTS
   Using clamp(), color-mix(), CSS nesting
   ============================================ */

/* Section Header - Replaces text-center + mb-* + text-* combinations */
.section-header {
  text-align: center;
  margin-block-end: clamp(2rem, 5vw, 4rem);

  & h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-block-end: 1rem;
  }

  & h3 {
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 800;
    margin-block-end: 1rem;
  }

  & p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    max-width: 56rem;
    margin-inline: auto;
  }
}

.img-seccion {
  display: block;
  margin-inline: auto;
  width: clamp(300px, 20vw, 260px);
  height: auto;
  object-fit: contain;
}

/* Step Container - For numbered steps (Como Funciona, Para Medicos) */
.step-container {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;

  & + & {
    margin-block-start: clamp(2rem, 4vw, 3rem);
  }
}

.step-number {
  flex-shrink: 0;
  width: clamp(3rem, 8vw, 5rem);
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
}

.step-content {
  flex: 1;
  min-width: 0;

  & h2,
  & h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 800;
    margin-block-end: 0.75rem;
  }

  & p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-light);
    line-height: 1.7;
  }
}

/* Feature Grid - Auto-responsive grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

/* Content Stack - Vertical spacing with custom property */
.content-stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, clamp(1.5rem, 3vw, 2rem));
}

/* Feature Item - For verification lists, benefits, etc */
.feature-item {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1rem);
  align-items: start;

  & + & {
    margin-block-start: clamp(1.5rem, 3vw, 2rem);
  }
}

.feature-icon {
  flex-shrink: 0;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  padding: 0.75rem;
  border-radius: 0.5rem;

  & .material-symbols-outlined {
    color: var(--color-primary);
    font-size: 1.5rem;
  }
}

.feature-content {
  flex: 1;
  min-width: 0;

  & h3 {
    font-weight: 700;
    margin-block-end: 0.5rem;
  }

  & p {
    color: var(--color-text-light);
  }
}

/* Hero Title - Fluid typography for hero sections */
.hero-title {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-block-end: clamp(1.5rem, 3vw, 2rem);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  line-height: 1.5;
  margin-block-end: clamp(2rem, 4vw, 3rem);
}

/* Page Header - For internal pages */
.page-header {
  text-align: center;
  padding-block-start: clamp(2rem, 4vw, 3rem);
  margin-block-end: clamp(2rem, 4vw, 3rem);

  & h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-block-end: 1.5rem;
  }

  & p {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: var(--color-text-light);
    max-width: 42rem;
    margin-inline: auto;
  }
}

/* CTA Box - Call to action sections */
.cta-box {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--color-bg-medical);
  border-radius: var(--radius-lg);
  margin-block-start: clamp(3rem, 6vw, 4rem);

  & p {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-block-end: 1rem;
  }
}

/* Info Card - For verification details, benefits */
.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

/* Two Column Layout - Auto-responsive */
.two-col-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

/* modelo de targetas - responsivas */

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(1rem, 1.5vw, 1.5rem);
    max-width: 1300px;
}

.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(350px, calc(100vw - 40px), 450px);
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.profile-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    height: 70%;
    z-index: 1;
    background: linear-gradient(to top, rgba(19, 78, 74, 0.95), rgba(13, 148, 136, 0.5), transparent);
    transition: opacity var(--transition-speed) ease;
}

.profile-card:hover .card-overlay {
    opacity: 0.85;
}

.card-content,
.card-button {
    position: relative;
    z-index: 2;
}

.card-content {
    padding: clamp(0.75rem, 2vw, 1rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

.card-name,
.card-description {
    margin: 0;
    color: white;
}

.card-name {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.card-description {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.card-button {
    margin: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
    padding: clamp(0.5rem, 1.5vw, 0.7rem) clamp(0.75rem, 2vw, 1rem);
    border: 1.5px solid white;
    border-radius: var(--radius-sm);
    background: transparent;
    color: white;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.profile-card:hover .card-button {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: white;
}

.card-button:active {
    transform: scale(0.95);
}

.card-button .material-symbols-outlined {
    font-size: 1.1em;
}

/* Split Layout (Layout Split) */
.split-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem; /* gap-16 */
  align-items: center;
}

.split-layout > * {
  flex: 1 1 300px; /* Grow, Shrink, Basis 300px (like minmax) */
  min-width: min(100%, 300px);
}

/* Specific ordering override for visual balance */
.split-layout .order-1 {
  order: 1;
}
.split-layout .order-2 {
  order: 2;
}

