/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Nunito:wght@300..900&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #FAF7F2;       /* Cozy warm beige background */
  --card-bg: #FFFFFF;          /* Pure white clay cards */
  --text-navy: #0F223D;        /* Deep navy blue for headings and core text */
  --accent-orange: #F05A28;    /* Energetic orange for highlights */
  --accent-teal: #0A7E8C;      /* Calming teal for secondary elements */
  --accent-peach: #FDF3EB;     /* Soft peach for badge backgrounds */
  --accent-teal-light: #E6F3F5; /* Soft teal background */
  
  /* Clay Shadows (3D Skeuomorphic) */
  --clay-shadow-flat: 
    8px 8px 20px rgba(15, 34, 61, 0.06), 
    -8px -8px 20px rgba(255, 255, 255, 0.9), 
    inset 2px 2px 4px rgba(255, 255, 255, 0.5), 
    inset -2px -2px 4px rgba(15, 34, 61, 0.02);
    
  --clay-shadow-hover: 
    12px 12px 28px rgba(15, 34, 61, 0.1), 
    -12px -12px 28px rgba(255, 255, 255, 0.95), 
    inset 3px 3px 6px rgba(255, 255, 255, 0.6), 
    inset -3px -3px 6px rgba(15, 34, 61, 0.04);
    
  --clay-shadow-inset: 
    inset 4px 4px 10px rgba(15, 34, 61, 0.08), 
    inset -4px -4px 10px rgba(255, 255, 255, 0.8),
    2px 2px 4px rgba(255, 255, 255, 0.5);

  --clay-shadow-orange:
    0px 8px 16px rgba(240, 90, 40, 0.25),
    inset 2px 2px 4px rgba(255, 255, 255, 0.4),
    inset -2px -2px 4px rgba(0, 0, 0, 0.15);

  --clay-shadow-orange-hover:
    0px 12px 24px rgba(240, 90, 40, 0.35),
    inset 3px 3px 6px rgba(255, 255, 255, 0.5),
    inset -3px -3px 6px rgba(0, 0, 0, 0.2);

  --clay-shadow-navy:
    0px 8px 16px rgba(15, 34, 61, 0.2),
    inset 2px 2px 4px rgba(255, 255, 255, 0.3),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2);

  --clay-shadow-navy-hover:
    0px 12px 24px rgba(15, 34, 61, 0.3),
    inset 3px 3px 6px rgba(255, 255, 255, 0.4),
    inset -3px -3px 6px rgba(0, 0, 0, 0.25);

  /* Fonts */
  --font-headings: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

/* Reset and Core Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-navy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-navy);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Claymorphic Utility Classes */
.clay-card {
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--clay-shadow-flat);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.clay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--clay-shadow-flat);
}

.badge-orange {
  background-color: var(--accent-peach);
  color: var(--accent-orange);
}

.badge-teal {
  background-color: var(--accent-teal-light);
  color: var(--accent-teal);
}

.badge-navy {
  background-color: rgba(15, 34, 61, 0.05);
  color: var(--text-navy);
}

/* Claymorphic Buttons */
.clay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clay-btn:active {
  transform: translateY(2px);
}

.clay-btn-orange {
  background-color: var(--accent-orange);
  color: white;
  box-shadow: var(--clay-shadow-orange);
}

.clay-btn-navy {
  background-color: var(--text-navy);
  color: white;
  box-shadow: var(--clay-shadow-navy);
}

.clay-btn-white {
  background-color: white;
  color: var(--text-navy);
  box-shadow: var(--clay-shadow-flat);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hover effect ONLY on hover-capable devices (PCs/Desktops) to avoid sticky touch states on mobile */
@media (hover: hover) {
  .clay-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--clay-shadow-hover);
  }
  
  .clay-btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: var(--clay-shadow-orange-hover);
  }

  .clay-btn-navy:hover {
    transform: translateY(-3px);
    box-shadow: var(--clay-shadow-navy-hover);
  }

  .clay-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--clay-shadow-hover);
  }
  
  .pillar-card:hover {
    transform: translateY(-8px);
    background-color: white;
    box-shadow: var(--clay-shadow-hover);
  }
  
  .pillar-card:hover .pillar-icon-wrapper {
    transform: scale(1.1);
    box-shadow: var(--clay-shadow-inset);
  }
  
  .social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--clay-shadow-hover);
  }

  .logo-link:hover .logo-svg {
    transform: scale(1.05) rotate(-3deg);
  }
  
  .nav-item a:hover {
    background-color: var(--accent-peach);
    color: var(--accent-orange);
  }

  .whatsapp-btn-sub:hover {
    transform: translateX(5px);
    color: var(--accent-orange);
  }

  .whatsapp-channel-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--clay-shadow-flat);
    background: rgba(10, 126, 140, 0.11);
  }

  .popover-link-item:hover .popover-link-tag {
    background-color: white;
  }
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  background-color: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  background: white;
  border-radius: 100px;
  box-shadow: var(--clay-shadow-flat);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-svg {
  height: 48px;
  transition: transform 0.3s ease;
}

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

.logo-title {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-navy);
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-orange);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item a {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.nav-item.active a {
  background-color: var(--accent-orange);
  color: white;
  box-shadow: var(--clay-shadow-orange);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-navy);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Sections General */
section {
  padding: 4.5rem 0;
}

.section-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.section-tag {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1.15rem;
  color: rgba(15, 34, 61, 0.8);
}

/* Hero Section */
.hero {
  padding: 4rem 0 6rem 0;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  grid-column: 1;
  grid-row: 1;
  font-size: 3.8rem;
  line-height: 1.1;
}

.hero-rest {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tag {
  align-self: flex-start;
}

.hero-title span {
  color: var(--accent-orange);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(240, 90, 40, 0.15);
  border-radius: 10px;
  z-index: -1;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(15, 34, 61, 0.85);
  margin-bottom: 1rem;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-image-container {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-inline: auto;
}

.hero-image-wrapper {
  background: white;
  border-radius: 40px;
  padding: 1.2rem;
  box-shadow: var(--clay-shadow-flat);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transform: rotate(2deg);
  transition: transform 0.5s ease;
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
}

.hero-image-wrapper img {
  border-radius: 30px;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Decorative Clay Shapes */
.clay-shape {
  position: absolute;
  border-radius: 50%;
  box-shadow: var(--clay-shadow-flat);
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  background: var(--accent-peach);
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  background: var(--accent-teal-light);
  bottom: -10px;
  left: -20px;
  animation-delay: 2s;
}

/* Core Values / Pillars Section */
.pillars-section {
  background-color: white;
  padding: 5rem 0;
  border-top: 1px solid rgba(15, 34, 61, 0.05);
  border-bottom: 1px solid rgba(15, 34, 61, 0.05);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  background-color: var(--bg-primary);
  box-shadow: var(--clay-shadow-flat);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.6);
  height: 100%;
}

.pillar-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--clay-shadow-flat);
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pillar-icon-wrapper svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.9rem;
  color: rgba(15, 34, 61, 0.75);
  margin-top: auto;
}

/* Branch Switcher (Tabs) */
.branch-switcher-container {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.branch-switcher {
  display: flex;
  background-color: white;
  padding: 0.6rem;
  border-radius: 100px;
  box-shadow: var(--clay-shadow-inset);
  gap: 0.5rem;
  max-width: 500px;
  width: 100%;
}

.switch-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  background: transparent;
  color: rgba(15, 34, 61, 0.6);
  transition: all 0.3s ease;
}

.switch-btn.active {
  background-color: var(--accent-orange);
  color: white;
  box-shadow: var(--clay-shadow-orange);
}

.switch-btn.active.teal-tab {
  background-color: var(--accent-teal);
  box-shadow: 0px 8px 16px rgba(10, 126, 140, 0.25),
              inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

.branch-panel {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.branch-panel.active {
  display: block;
}

/* Services Grid (Grupo Terapéutico) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--clay-shadow-flat);
}

.service-icon-box.orange {
  background-color: var(--accent-peach);
  color: var(--accent-orange);
}

.service-icon-box.teal {
  background-color: var(--accent-teal-light);
  color: var(--accent-teal);
}

.service-title {
  font-size: 1.4rem;
}

.service-desc {
  color: rgba(15, 34, 61, 0.8);
  font-size: 0.95rem;
}

/* Therapy intro — texto + ilustración lateral */
.therapy-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.therapy-intro-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.therapy-intro-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--text-navy);
  margin: 0;
}

.therapy-intro-text {
  font-size: 1.1rem;
  color: rgba(15, 34, 61, 0.8);
  line-height: 1.65;
  margin: 0;
}

.therapy-intro-cta {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* Ilustraciones laterales de sección (más grandes que el default) */
.section-side-visual {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
}

.therapy-intro-grid .section-side-visual {
  justify-self: end;
}

.section-side-visual--peach .clay-shape.shape-1 {
  background: var(--accent-peach);
}

.section-side-visual--teal .clay-shape.shape-1 {
  background: var(--accent-teal-light);
}

.section-side-visual__frame {
  max-width: 560px;
  width: 100%;
}

.section-side-visual__frame--tilt-right {
  transform: rotate(2deg);
}

.section-side-visual__frame--tilt-left {
  transform: rotate(-2deg);
}

.academy-grid > .section-side-visual {
  justify-self: center;
  align-self: center;
}

/* Team Section */
.team-container {
  margin-top: 6rem;
}

.team-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.team-coord-title {
  font-size: clamp(1.75rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  margin: 0;
}

.team-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: min(100%, 1040px);
  margin: 0 auto;
}

.team-professionals {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  width: 100%;
}

.member-card--pro {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  text-align: left;
  overflow: hidden;
}

.member-card--lead {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: visible;
}

.member-card--lead .member-head h4 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
}

.member-card--lead .member-bio {
  font-size: clamp(0.95rem, 1.7vw, 1.02rem);
  line-height: 1.68;
}

.member-card--lead .member-focus {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  clear: both;
}

.member-body--wrap {
  width: 100%;
}

.member-body--wrap::after {
  content: "";
  display: table;
  clear: both;
}

.member-inline-photo {
  float: right;
  width: min(44%, 300px);
  margin: 0.15rem 0 1rem 1.35rem;
  padding: 0;
  border: 0;
}

.member-inline-photo__frame {
  background: var(--bg-primary);
  padding: clamp(0.65rem, 1.2vw, 0.85rem);
  border-radius: clamp(16px, 2vw, 22px);
  box-shadow: var(--clay-shadow-flat);
  transform: rotate(-1deg);
}

.member-inline-photo__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: clamp(12px, 1.6vw, 16px);
}

.member-card--pro .member-header {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.35rem);
  padding-bottom: clamp(1rem, 2vw, 1.25rem);
}

.member-card--pro .member-image-wrapper {
  width: clamp(88px, 18vw, 112px);
  height: clamp(88px, 18vw, 112px);
  margin: 0;
  flex-shrink: 0;
  border-width: 5px;
}

.member-card--pro .member-image-wrapper img,
.member-card--pro .member-image-wrapper svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card--pro .member-head {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.member-card--pro .member-head h4 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.2;
  margin: 0;
}

.member-card--pro .member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.member-card--pro .member-body {
  border-top: 1px solid rgba(15, 34, 61, 0.08);
  padding-top: clamp(1rem, 2vw, 1.25rem);
  width: 100%;
}

.member-card--pro .member-bio {
  margin: 0;
  font-size: clamp(0.9rem, 1.6vw, 0.96rem);
  line-height: 1.62;
  color: rgba(15, 34, 61, 0.82);
}

.member-card--pro .member-focus {
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: rgba(10, 126, 140, 0.08);
  align-self: stretch;
}

.member-card--pro .member-focus span {
  line-height: 1.4;
}

.team-members-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  min-width: 0;
}

.member-card--pro .member-specialty {
  align-self: flex-start;
  font-size: clamp(0.78rem, 1.4vw, 0.88rem);
  line-height: 1.35;
}

.member-card--pro .member-specialty--accent {
  background-color: var(--accent-peach);
  color: var(--accent-orange);
}

.member-card--pro .member-role {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

.member-card--stacked {
  flex-direction: column;
  text-align: center;
  gap: 1.5rem;
}

.member-card--stacked .member-image-wrapper {
  margin: 0 auto;
}

.member-card--stacked .member-info {
  align-items: center;
}

.member-card--stacked .member-specialty,
.member-card--stacked .member-focus {
  align-self: center;
}

.member-card {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.member-image-wrapper {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid white;
  box-shadow: var(--clay-shadow-flat);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-image-wrapper svg {
  width: 100%;
  height: 100%;
  display: block;
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.member-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.member-specialty {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-teal);
  background-color: var(--accent-teal-light);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  display: inline-block;
  align-self: flex-start;
}

.member-license {
  font-size: 0.85rem;
  color: rgba(15, 34, 61, 0.5);
  font-weight: 600;
}

.member-bio {
  font-size: 0.95rem;
  color: rgba(15, 34, 61, 0.8);
}

.member-focus {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-navy);
}

/* Academy Section (Instituto de Formación) */
.academy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.courses-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.course-card {
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 8px;
  background-color: var(--accent-teal);
}

.course-card.orange::before {
  background-color: var(--accent-orange);
}

.course-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

.course-desc {
  color: rgba(15, 34, 61, 0.8);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  padding-left: 0.5rem;
}

.course-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-left: 0.5rem;
}

.academy-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 5rem;
}

.highlight-card {
  text-align: center;
  padding: 1.8rem 1rem;
}

.highlight-icon-wrapper {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--accent-teal-light);
  color: var(--accent-teal);
  box-shadow: var(--clay-shadow-flat);
  margin: 0 auto 1.2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-card.orange .highlight-icon-wrapper {
  background: var(--accent-peach);
  color: var(--accent-orange);
}

.highlight-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.highlight-desc {
  font-size: 0.85rem;
  color: rgba(15, 34, 61, 0.7);
}

/* Partners / Institutions Section */
.partners-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #fff 100%);
  padding: 5rem 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  min-height: 280px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
}

.partner-logo-wrap {
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(15, 34, 61, 0.12));
}

.partner-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-navy);
  line-height: 1.3;
}

.partner-role {
  font-size: 0.8rem;
  color: rgba(15, 34, 61, 0.65);
  line-height: 1.35;
}

.partners-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.partners-cta-text {
  font-size: 1rem;
  color: rgba(15, 34, 61, 0.8);
  margin-bottom: 1.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact & Social Section */
.contact-section {
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.contact-info-intro {
  text-align: left;
}

.contact-info-title {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.contact-info-lead {
  margin: 0;
  color: rgba(15, 34, 61, 0.8);
  font-size: 1rem;
  line-height: 1.45;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.15rem;
  width: 100%;
  box-sizing: border-box;
}

.info-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-peach);
  color: var(--accent-orange);
  box-shadow: var(--clay-shadow-flat);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card--whatsapp .info-icon,
.info-card.teal .info-icon {
  background-color: var(--accent-teal-light);
  color: var(--accent-teal);
}

.info-title {
  display: block;
  font-size: 0.78rem;
  color: rgba(15, 34, 61, 0.55);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.info-content {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-navy);
  line-height: 1.35;
}

.info-link {
  color: var(--text-navy);
  text-decoration: none;
  word-break: break-word;
}

.info-link:hover {
  color: var(--accent-orange);
}

.info-content--location {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
}

.info-location-detail {
  font-weight: 500;
  font-size: 0.92rem;
  color: rgba(15, 34, 61, 0.75);
  line-height: 1.4;
}

.whatsapp-links-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
  width: 100%;
}

.whatsapp-channel-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(10, 126, 140, 0.07);
  border: 1px solid rgba(10, 126, 140, 0.14);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-channel-number {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--accent-teal);
  letter-spacing: 0.01em;
}

.whatsapp-channel-label {
  align-self: flex-start;
  font-size: 0.72rem !important;
  padding: 0.2rem 0.55rem !important;
}

.whatsapp-btn-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-teal);
  transition: transform 0.2s ease;
  border-bottom: 1px dashed rgba(15, 34, 61, 0.05);
}

.whatsapp-btn-sub:last-child {
  border-bottom: none;
}

.whatsapp-btn-sub span:first-child {
  white-space: nowrap;
}

.social-connect {
  margin-top: 1rem;
}

.social-connect h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.social-buttons {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--clay-shadow-flat);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.social-btn svg {
  width: 22px;
  height: 22px;
}

.social-btn.facebook {
  color: #1877F2;
}

.social-btn.instagram {
  color: #E4405F;
}

.social-btn.tiktok {
  color: #000000;
}

/* Contact Form */
.contact-form-container {
  padding: 3rem;
  background-color: var(--bg-primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-navy);
  padding-left: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  border: none;
  background: white;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  box-shadow: var(--clay-shadow-inset);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-navy);
  outline: none;
  transition: box-shadow 0.2s ease;
  width: 100%;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  box-shadow: 
    inset 2px 2px 5px rgba(15, 34, 61, 0.08), 
    inset -2px -2px 5px rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(240, 90, 40, 0.15);
}

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

.form-error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
}

.form-actions .clay-btn {
  flex: 1 1 auto;
  min-width: min(100%, 200px);
}

/* Modal Style */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 34, 61, 0.4);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.clay-modal {
  max-width: 450px;
  width: 90%;
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 30px;
  box-shadow: var(--clay-shadow-hover);
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: var(--accent-peach);
  color: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: var(--clay-shadow-flat);
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal-message {
  color: rgba(15, 34, 61, 0.8);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background-color: var(--text-navy);
  color: white;
  padding: 4rem 0 2rem 0;
  border-radius: 40px 40px 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-svg {
  height: 50px;
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-headings);
  font-style: italic;
}

.footer-nav h3, .footer-contact h3 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
}

.footer-nav h3::after, .footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--accent-orange);
  border-radius: 2px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
  color: var(--accent-orange);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--accent-orange);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes popoverOpen {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .pillars-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
  }

  .pillar-card:nth-child(1) { grid-column: 1 / 3; }
  .pillar-card:nth-child(2) { grid-column: 3 / 5; }
  .pillar-card:nth-child(3) { grid-column: 5 / 7; }
  .pillar-card:nth-child(4) { grid-column: 2 / 4; }
  .pillar-card:nth-child(5) { grid-column: 4 / 6; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .team-layout {
    max-width: 100%;
  }
  .academy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .therapy-intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .therapy-intro-content {
    align-items: center;
  }
  .therapy-intro-cta {
    align-self: center;
  }
  .therapy-intro-grid .section-side-visual {
    justify-self: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  section:not(.hero) {
    padding: 2.5rem 0;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  .clay-card {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .services-grid, .academy-grid, .academy-highlights {
    margin-bottom: 2rem !important;
    margin-top: 2rem !important;
  }
  
  .team-container {
    margin-top: 3rem !important;
  }

  .team-header {
    margin-bottom: 1rem;
  }

  .team-coord-title {
    font-size: clamp(1.05rem, 4.6vw, 1.55rem);
    white-space: normal;
    letter-spacing: -0.02em;
  }

  .team-layout {
    gap: 1.75rem;
  }

  .member-inline-photo {
    float: none;
    width: min(100%, 320px);
    margin: 0 auto 1.15rem;
  }

  .member-inline-photo__frame {
    transform: none;
  }

  .member-card--pro .member-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-card--pro .member-tags {
    justify-content: center;
  }

  .member-card--pro .member-specialty {
    align-self: center;
  }

  .member-card--pro .member-bio,
  .member-card--pro .member-focus {
    text-align: left;
  }
  
  .branch-switcher-container {
    margin-bottom: 2rem !important;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }
  
  .nav-menu {
    position: fixed;
    top: calc(var(--header-offset) + 0.25rem);
    left: 5%;
    right: 5%;
    width: auto;
    max-width: calc(100vw - 10%);
    background: white;
    border-radius: 24px;
    box-shadow: var(--clay-shadow-hover);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0;
    align-items: stretch;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  
  .nav-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    align-items: stretch;
  }

  .nav-item a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    min-height: auto;
    box-sizing: border-box;
    display: block;
    padding: 2.25rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: clamp(1rem, 3vh, 1.75rem);
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
  }
  
  .hero-title {
    font-size: clamp(1.45rem, 5vw, 2.1rem);
    line-height: 1.12;
  }

  .hero-rest {
    align-items: center;
    gap: clamp(0.85rem, 2.5vh, 1.35rem);
    flex: 0 0 auto;
    width: 100%;
  }

  .hero-tag {
    align-self: center;
  }

  .hero-description {
    font-size: clamp(0.82rem, 2.8vw, 0.95rem);
    line-height: 1.35;
    margin-bottom: 0;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image-container {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-inline: 0;
    margin-bottom: 0;
    grid-column: auto;
    grid-row: auto;
  }

  .team-grid .hero-image-container {
    order: 0;
  }

  .hero-image-container .clay-shape {
    display: none;
  }

  .hero-image-wrapper {
    transform: none;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-inline: auto;
    padding: clamp(0.3rem, 1vw, 0.5rem);
    border-radius: clamp(18px, 4vw, 26px);
    box-sizing: border-box;
  }

  .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: clamp(14px, 3vw, 20px);
  }

  .pillars-section {
    padding: 2rem 0 2.5rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.65rem, 2.5vw, 1rem);
  }

  .pillar-card:nth-child(1),
  .pillar-card:nth-child(2),
  .pillar-card:nth-child(3),
  .pillar-card:nth-child(4),
  .pillar-card:nth-child(5) {
    grid-column: auto;
  }

  .pillar-card {
    padding: 1.25rem 0.85rem;
  }

  .pillar-card--center {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    padding: 1.25rem 0.85rem;
  }

  .pillar-card--center .pillar-icon-wrapper {
    width: 52px;
    height: 52px;
    margin-bottom: 0.85rem;
  }

  .pillar-card--center .pillar-icon-wrapper svg {
    width: 26px;
    height: 26px;
  }

  .pillar-card--center .pillar-title {
    font-size: 1rem;
  }

  .pillar-card--center .pillar-desc {
    font-size: 0.82rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .member-card {
    flex-direction: column;
    text-align: center;
  }

  .member-specialty, .member-focus {
    align-self: center;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-panel {
    gap: 1.25rem;
  }

  .contact-info-title {
    font-size: 1.45rem;
    text-align: center;
  }

  .contact-info-lead {
    font-size: 0.92rem;
    text-align: center;
    line-height: 1.4;
  }

  .info-cards {
    gap: 0.85rem;
  }

  .info-card {
    padding: 1rem;
    gap: 0.85rem;
    border-radius: 18px;
  }

  .info-icon {
    width: 44px;
    height: 44px;
  }

  .info-icon svg {
    width: 20px;
    height: 20px;
  }

  .info-content {
    font-size: 0.98rem;
  }

  .whatsapp-channel-btn {
    padding: 0.75rem 0.85rem;
  }

  .whatsapp-channel-number {
    font-size: 1rem;
  }

  .social-connect {
    text-align: center;
    margin-top: 0.5rem;
  }

  .social-connect h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .social-buttons {
    justify-content: center;
    gap: 1.25rem;
  }

  .social-btn {
    width: 54px;
    height: 54px;
  }

  .contact-form-container {
    padding: 1.5rem 1.15rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .therapy-intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .therapy-intro-content {
    align-items: center;
  }

  .therapy-intro-cta {
    align-self: center;
  }

  .therapy-intro-grid .section-side-visual {
    justify-self: center;
    max-width: 100%;
  }

  .section-side-visual__frame,
  .section-side-visual__frame--tilt-right,
  .section-side-visual__frame--tilt-left {
    transform: none;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  section:not(.hero) {
    padding: 2rem 0;
  }
  
  .clay-card {
    padding: 1.1rem 0.9rem;
    border-radius: 16px;
  }
  
  .hero {
    padding: 2rem 0 3.5rem;
  }

  .hero-grid {
    gap: clamp(0.85rem, 2.5vh, 1.5rem);
  }

  .hero-rest {
    gap: clamp(0.7rem, 2vh, 1.15rem);
  }

  .hero-title {
    font-size: clamp(1.35rem, 6.2vw, 1.65rem);
  }

  .hero-description {
    font-size: clamp(0.78rem, 3.2vw, 0.88rem);
  }

  .hero-image-wrapper {
    padding: 0.3rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .pillars-grid {
    gap: 0.75rem;
  }

  .pillar-card {
    padding: 1rem 0.6rem;
    border-radius: 18px;
  }

  .pillar-icon-wrapper {
    width: 52px;
    height: 52px;
    margin-bottom: 0.7rem;
  }

  .pillar-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }

  .pillar-title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .pillar-desc {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .pillar-card--center {
    width: 100%;
    max-width: 100%;
    padding: 1rem 0.6rem;
  }

  .pillar-card--center .pillar-icon-wrapper {
    width: 52px;
    height: 52px;
    margin-bottom: 0.7rem;
  }

  .pillar-card--center .pillar-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }

  .pillar-card--center .pillar-title {
    font-size: 1rem;
  }

  .pillar-card--center .pillar-desc {
    font-size: 0.78rem;
  }

  .academy-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .member-card {
    padding: 1.2rem 0.8rem;
  }
  
  .member-info h4 {
    font-size: 1.3rem !important;
  }
  
  .member-bio {
    font-size: 0.9rem;
  }
  
  .contact-form-container {
    padding: 1.5rem 1rem !important;
  }
  
  .form-group label {
    font-size: 0.85rem;
  }
}

/* =============================================================================
   Regla 07 — Botón WhatsApp flotante
   ============================================================================= */
.whatsapp-float {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: max(22px, calc(22px + env(safe-area-inset-bottom, 0px)));
  z-index: 1500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

.whatsapp-float:hover {
  transform: translateZ(0) translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

.whatsapp-float:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.whatsapp-float-icon {
  width: 30px;
  height: 30px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(24px, calc(20px + env(safe-area-inset-bottom, 0px)));
    width: 54px;
    height: 54px;
  }

  .whatsapp-float-icon {
    width: 28px;
    height: 28px;
  }
}

/* =============================================================================
   Regla 08 — Responsive móvil seguro
   ============================================================================= */
:root {
  --header-offset: calc(5rem + env(safe-area-inset-top, 0px));
  --section-gap: clamp(0.5rem, 1.8vh, 1.25rem);
}

@media (min-width: 768px) {
  :root {
    --header-offset: calc(5.625rem + env(safe-area-inset-top, 0px));
  }
}

html {
  scroll-padding-top: var(--header-offset);
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  min-width: 0;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

.section-container {
  min-width: 0;
}

header {
  padding-top: env(safe-area-inset-top, 0px);
}

@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.75rem;
  }

  body {
    padding-top: var(--header-offset);
  }

  .hero {
    padding: 2.25rem 0 4rem;
  }
}

@media (max-width: 1023px) {
  .hero {
    min-height: auto;
    box-sizing: border-box;
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero-grid,
  .hero-rest,
  .hero-image-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    gap: clamp(1rem, 3vh, 1.75rem);
  }

  .hero-image-container {
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    grid-column: auto;
    grid-row: auto;
  }

  .hero-image-container .clay-shape {
    display: none;
  }

  .hero-image-wrapper {
    transform: none;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-inline: auto;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.55rem;
  }

  .hero-buttons .clay-btn {
    flex: 1 1 calc(50% - 0.3rem);
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    text-wrap: balance;
  }
}

@media (max-width: 380px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .clay-btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-height: 700px) and (max-width: 1023px) {
  .hero-title {
    font-size: clamp(1.2rem, 4.8vw, 1.55rem);
  }

  .hero-description {
    font-size: clamp(0.75rem, 2.6vw, 0.85rem);
  }
}
