/* ==========================================
   CSS CUSTOM SYSTEM & TYPOGRAPHY
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors from erp-agility-wof */
  --brand-pink: #D4537E;
  --brand-pink-light: #FBEAF0;
  --brand-pink-border: #F4C0D1;
  --brand-pink-hover: #C23E6A;
  
  --brand-blue: #378ADD;
  --brand-blue-light: #E6F1FB;
  --brand-blue-border: #B5D4F4;
  --brand-blue-hover: #2374C4;
  
  --brand-neutral-bg: #F1EFE8;
  --brand-neutral-text: #2C2C2A;
  --brand-neutral-muted: #888780;
  
  --brand-success: #1D9E75;
  --brand-alert: #BA7517;
  --brand-error: #E24B4A;
  
  /* Layout Colors */
  --color-white: #FFFFFF;
  --color-dark: #1E1E1C;
  --color-gray-light: #F7F6F2;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Design Tokens */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 10px rgba(44, 44, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(44, 44, 42, 0.08);
  --shadow-lg: 0 20px 55px rgba(44, 44, 42, 0.12);
  --shadow-colored-pink: 0 10px 25px rgba(212, 83, 126, 0.25);
  --shadow-colored-blue: 0 10px 25px rgba(55, 138, 221, 0.25);
  
  --transition-fast: 0.2s ease;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --container-max-width: 1200px;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--brand-neutral-bg);
  color: var(--brand-neutral-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

/* ==========================================
   UTILITY CLASSES & GRID
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  overflow: hidden;
}

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

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

.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* minmax(0, 1fr) en vez de 1fr: con 1fr la pista nunca baja del min-content de
   su contenido y en moviles eso ensancha la rejilla mas que el contenedor. */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
}

.grid-2-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-pink);
  margin-bottom: 12px;
  display: block;
}

.section-subtitle.light {
  color: var(--brand-pink-border);
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.section-title.light {
  color: var(--color-white);
}

.section-description {
  font-size: 16px;
  color: #4A4A48;
  margin-bottom: 20px;
}

.section-description-wide {
  font-size: 17px;
  color: #4A4A48;
  max-width: 650px;
  margin-bottom: 20px;
}

.section-intro {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 50px auto;
  color: #4A4A48;
}

.section-intro.light {
  color: var(--brand-blue-light);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--brand-pink);
  color: var(--color-white);
  box-shadow: var(--shadow-colored-pink);
}

.btn-primary:hover {
  background-color: var(--brand-pink-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(212, 83, 126, 0.35);
}

.btn-secondary {
  background-color: var(--brand-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-colored-blue);
}

.btn-secondary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(55, 138, 221, 0.35);
}

.btn-secondary-outline {
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  background-color: transparent;
}

.btn-secondary-outline:hover {
  background-color: var(--brand-blue);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-whatsapp-small {
  background-color: #25D366;
  color: var(--color-white) !important;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: var(--transition);
}

.btn-whatsapp-small:hover {
  background-color: #20BA56;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  color: var(--color-white) !important;
  text-decoration: none !important;
}

.btn-whatsapp-small i {
  font-size: 20px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.btn-link {
  color: var(--brand-pink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link:hover {
  color: var(--brand-pink-hover);
  text-decoration: underline;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  align-items: center;
  background-color: rgba(241, 239, 232, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 44, 42, 0.05);
}

.main-header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-ac {
  height: 34px;
}

.logo-wp {
  height: 24px;
}

.main-header.scrolled .logo-ac {
  height: 30px;
}

.main-header.scrolled .logo-wp {
  height: 20px;
}

.logo-separator {
  color: var(--brand-neutral-muted);
  font-weight: 300;
  font-size: 20px;
  line-height: 1;
}

/* ==========================================
   LIVE BANNER (BARRA EN VIVO SUPERIOR - ESTILO PREMIUM)
   ========================================== */
.live-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, #E24B4A, #D4537E, #378ADD, #E24B4A);
  background-size: 300% 300%;
  animation: live-gradient-bg 8s ease infinite, slide-down-banner 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  color: var(--color-white);
  z-index: 1005; /* Sits above main-header */
  display: none;
  align-items: center;
  box-shadow: 
    0 4px 20px rgba(226, 75, 74, 0.35), 
    0 0 10px rgba(212, 83, 126, 0.2);
  font-family: var(--font-heading);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body.live-active .live-banner {
  display: flex;
}

@keyframes live-gradient-bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes slide-down-banner {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.live-banner-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.live-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.live-banner-center {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-banner-right {
  display: flex;
  justify-content: flex-end;
}

.live-banner-arrow {
  color: var(--color-white);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  animation: nudge-right 1.5s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes nudge-right {
  0% { transform: translateX(0); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.live-banner-dot {
  position: relative;
  width: 10px;
  height: 10px;
  background-color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-white);
  flex-shrink: 0;
  display: inline-block;
}

.live-banner-dot::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  animation: radar-pulse 1.6s infinite ease-out;
  opacity: 0;
  box-sizing: border-box;
}

@keyframes radar-pulse {
  0% { transform: scale(0.5); opacity: 0; }
  25% { opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.live-banner-tag {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.live-banner-text {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-live-banner {
  background-color: var(--color-white);
  color: #bd2130 !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.btn-live-banner:hover {
  background-color: var(--brand-pink-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.btn-live-banner i {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.btn-live-banner:hover i {
  transform: translateX(3px);
}

/* Shifting rules when live banner is active */
.live-active .main-header {
  top: 40px;
}

.live-active .hero-section,
.live-active .subpage-hero {
  padding-top: 120px; /* 80px + 40px banner */
}

.live-active html {
  scroll-padding-top: 120px;
}



.nav-toggle {
  display: none;
  font-size: 28px;
  color: var(--brand-neutral-text);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  position: relative;
  color: var(--brand-neutral-text);
  padding: 8px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-pink);
  transition: var(--transition-fast);
}

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

.nav-link.nav-btn {
  background-color: var(--brand-pink);
  color: var(--color-white);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-colored-pink);
}

.nav-link.nav-btn:hover {
  background-color: var(--brand-pink-hover);
  transform: translateY(-2px);
}

.nav-link.nav-btn::after {
  display: none;
}

.nav-link.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--brand-blue);
  box-shadow: var(--shadow-colored-blue);
}

.nav-link.nav-btn:hover {
  background-color: var(--brand-blue-hover);
}

.nav-link.nav-btn i {
  font-size: 18px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-color: #1E1E1C;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, rgba(30, 30, 28, 0.95) 0%, rgba(30, 30, 28, 0.8) 35%, rgba(30, 30, 28, 0.3) 70%, rgba(30, 30, 28, 0.1) 100%),
    url('assets/agility-groenendael-muro-hero.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: 1;
}

/* En celular basta la versión de 1080px (89 KB en vez de 433 KB) */
@media (max-width: 768px) {
  .hero-bg-overlay {
    background-image:
      linear-gradient(90deg, rgba(30, 30, 28, 0.95) 0%, rgba(30, 30, 28, 0.8) 35%, rgba(30, 30, 28, 0.3) 70%, rgba(30, 30, 28, 0.1) 100%),
      url('assets/agility-groenendael-muro-hero-movil.jpg');
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  color: var(--color-white);
  padding: 40px 0;
}

.badge-alliance {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  gap: 8px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-ac {
  color: var(--brand-pink-border);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-wp {
  color: var(--brand-blue-border);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-x {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 500;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
  line-height: 1.05;
  color: var(--color-white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #00D2FF 0%, #33D6FF 35%, #FF66CC 65%, #FF007F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-actions .btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  box-shadow: none;
}

.hero-actions .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-floating-card {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  /* El hero se centra en movil: los textos de las tarjetas van siempre a la izquierda */
  text-align: left;
}

.hero-floating-card i {
  font-size: 26px;
  color: var(--color-white);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.card-stats {
  top: 10%;
  left: -5%;
}

.card-stats i {
  background-color: var(--brand-pink);
  box-shadow: var(--shadow-colored-pink);
}

.card-ccc {
  top: 32%;
  right: 5%;
}

.card-ccc i {
  background-color: var(--brand-blue);
  box-shadow: var(--shadow-colored-blue);
}

.card-biggest {
  bottom: 32%;
  left: -15%;
}

.card-biggest i {
  background-color: var(--brand-pink);
  box-shadow: var(--shadow-colored-pink);
}

.card-private-wp {
  bottom: 10%;
  right: 0%;
  padding-left: 16px;
}

.card-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.hero-floating-card h4 {
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--color-white);
}

.hero-floating-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.hero-floating-card:hover {
  transform: translateY(-5px) scale(1.03);
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}


/* ==========================================
   QUÉ SOMOS SECTION
   ========================================== */
.section-que-somos {
  background-color: var(--color-white);
}

.image-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
}

.stack-img {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--color-white);
  object-fit: cover;
  transition: var(--transition-slow);
  height: auto;
  max-width: 100%;
}

.stack-img-main {
  width: 75%;
  max-height: 360px;
  top: 5%;
  left: 5%;
  z-index: 2;
  transform: rotate(-4deg);
}

.stack-img-sub {
  width: 70%;
  max-height: 320px;
  bottom: 15%;
  right: 5%;
  z-index: 1;
  transform: rotate(6deg);
}

.image-stack:hover .stack-img-main {
  transform: rotate(-1deg) scale(1.03);
}

.image-stack:hover .stack-img-sub {
  transform: rotate(2deg) scale(1.03);
}

.experience-years-badge {
  position: absolute;
  bottom: 5%;
  right: 5%;
  background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-pink-hover) 100%);
  color: var(--color-white);
  padding: 20px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-colored-pink);
  text-align: center;
  z-index: 3;
  transition: var(--transition);
}

.experience-years-badge h3 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-white);
}

.experience-years-badge p {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.experience-years-badge:hover {
  transform: translateY(-4px) scale(1.05);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item i {
  font-size: 24px;
  color: var(--brand-pink);
  background-color: var(--brand-pink-light);
  padding: 12px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  color: var(--brand-neutral-muted);
}

/* ==========================================
   EN QUÉ CREEMOS (PHILOSOPHY)
   ========================================== */
.section-creencias {
  background-color: var(--color-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.section-creencias::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 90%, rgba(212, 83, 126, 0.05) 0%, transparent 30%),
              radial-gradient(circle at 90% 10%, rgba(55, 138, 221, 0.05) 0%, transparent 30%);
  z-index: 1;
}

.section-creencias .container {
  position: relative;
  z-index: 2;
}

/* Las fotos de Filosofia y Precios no tenian ninguna regla propia: se pintaban
   como un rectangulo plano, sin el redondeo que lleva el resto del sitio. */
.protagonist-image-wrapper {
  position: relative;
}

.protagonist-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* En Filosofia la columna de texto lleva titulo + descripcion + 4 tarjetas, asi
   que centrar en la columna completa deja la foto flotando arriba. Se desplaza
   para que quede a la altura del bloque de tarjetas. */
.section-creencias .visual-content {
  transform: translateY(140px);
}

.card-creencia {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  transition: var(--transition-slow);
  height: 100%;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212, 83, 126, 0.15) 0%, rgba(55, 138, 221, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon i {
  font-size: 28px;
  color: var(--brand-pink-border);
  transition: var(--transition);
}

.card-creencia h3 {
  font-size: 20px;
  color: var(--color-white);
  margin-bottom: 14px;
}

.card-creencia p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.card-creencia:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 83, 126, 0.3);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.card-creencia:hover .card-icon {
  background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-blue) 100%);
  transform: rotate(10deg);
}

.card-creencia:hover .card-icon i {
  color: var(--color-white);
}

/* ==========================================
   QUIÉNES SOMOS (CAROUSEL)
   ========================================== */
.section-quienes-somos {
  background-color: var(--brand-neutral-bg);
  position: relative;
}

.carousel-3d-stage {
  position: relative;
  width: 100%;
  height: 660px;
  margin: 80px auto 40px auto;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Las fichas de instructores son mas altas que el escenario compartido (715px
   frente a 660px, y hasta 684px en movil contra 520px). Como se centran en
   vertical, la mitad del exceso sale por arriba y tapa el titulo y el parrafo
   de la seccion. El selector por id gana sobre la clase y sus media queries. */
#carousel-3d-stage {
  height: 770px;
}

.instructor-card-3d {
  position: absolute;
  width: 280px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(44, 44, 42, 0.05);
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: pointer;
}

.instructor-card-3d.active {
  transform: translate3d(0, 0, 120px) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 20;
  box-shadow: var(--shadow-lg), 0 15px 35px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.instructor-card-3d.next {
  transform: translate3d(240px, 0, 0px) rotateY(-18deg) scale(0.85);
  opacity: 0.8;
  z-index: 10;
}

.instructor-card-3d.prev {
  transform: translate3d(-240px, 0, 0px) rotateY(18deg) scale(0.85);
  opacity: 0.8;
  z-index: 10;
}

.instructor-card-3d.next2 {
  transform: translate3d(440px, 0, -100px) rotateY(-28deg) scale(0.7);
  opacity: 0.45;
  z-index: 5;
}

.instructor-card-3d.prev2 {
  transform: translate3d(-440px, 0, -100px) rotateY(28deg) scale(0.7);
  opacity: 0.45;
  z-index: 5;
}

.instructor-card-3d.next3 {
  transform: translate3d(600px, 0, -200px) rotateY(-35deg) scale(0.55);
  opacity: 0.25;
  z-index: 3;
}

.instructor-card-3d.prev3 {
  transform: translate3d(-600px, 0, -200px) rotateY(35deg) scale(0.55);
  opacity: 0.25;
  z-index: 3;
}

.instructor-card-3d.hidden-right {
  transform: translate3d(750px, 0, -300px) rotateY(-40deg) scale(0.4);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.instructor-card-3d.hidden-left {
  transform: translate3d(-750px, 0, -300px) rotateY(40deg) scale(0.4);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.carousel-3d-controls {
  position: absolute;
  top: 50%;
  left: -25px;
  right: -25px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 100;
}

.carousel-3d-btn {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full) !important;
  background-color: var(--color-white);
  border: 1px solid rgba(44, 44, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--brand-neutral-text);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.carousel-3d-btn:hover {
  background-color: var(--brand-pink);
  color: var(--color-white);
  border-color: var(--brand-pink);
  transform: scale(1.1);
  box-shadow: var(--shadow-colored-pink);
}

.carousel-3d-pagination {
  display: none !important;
}

@media (max-width: 1240px) {
  .carousel-3d-controls {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  .carousel-3d-controls {
    left: 10px;
    right: 10px;
  }
  .carousel-3d-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .carousel-3d-controls {
    left: 5px;
    right: 5px;
  }
  .carousel-3d-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

.instructores-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.instructor-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(44, 44, 42, 0.05);
  box-shadow: var(--shadow-sm);
  width: 240px;
  max-width: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.instructor-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background-color: var(--color-gray-light);
}

.instructor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition: var(--transition-slow);
}

.instructor-card-3d:hover .instructor-img {
  transform: scale(1.02);
}

.instructor-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.instructor-role {
  font-size: 12px;
  color: var(--brand-pink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.instructor-card-3d h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
}

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

.instructor-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-neutral-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-val {
  font-size: 14px;
  color: var(--brand-neutral-text);
  font-weight: 500;
}

.info-val small {
  color: var(--brand-pink);
  font-weight: 700;
}

.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(44, 44, 42, 0.15);
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--brand-pink);
  width: 24px;
}

/* ==========================================
   MÓDULOS DE FORMACIÓN
   ========================================== */
.section-modulos {
  background-color: var(--brand-neutral-bg);
  position: relative;
}

.module-card {
  background-color: var(--color-gray-light);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-slow);
  height: 100%;
  border: 1px solid rgba(44, 44, 42, 0.04);
}

.module-level {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 24px;
}

/* Pink Card Theme */
.module-card.card-ac {
  border-top: 6px solid var(--brand-pink);
}
.module-card.card-ac .module-level {
  background-color: var(--brand-pink);
}
.module-card.card-ac .module-badge {
  background-color: var(--brand-pink-light);
  color: var(--brand-pink);
}

/* Blue Card Theme */
.module-card.card-wp {
  border-top: 6px solid var(--brand-blue);
}
.module-card.card-wp .module-level {
  background-color: var(--brand-blue);
}
.module-card.card-wp .module-badge {
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* Mixed Card Theme */
.module-card.card-mixed {
  border-top: 6px solid #B069AE;
}
.module-card.card-mixed .module-level {
  background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-blue) 100%);
}
.module-card.card-mixed .module-badge {
  background-color: #F6EEF5;
  color: #B069AE;
}

.module-info-main {
  margin-bottom: 24px;
}

.module-info-main h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.module-duration {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-neutral-muted);
  margin-bottom: 16px;
  display: block;
}

.module-desc {
  font-size: 14px;
  color: #5C5C59;
  line-height: 1.6;
}

.module-syllabus {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.module-syllabus li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--brand-neutral-text);
  font-weight: 500;
}

.module-syllabus li i {
  color: var(--brand-success);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.module-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.module-card:hover {
  transform: translateY(-8px);
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  border-color: rgba(44, 44, 42, 0.08);
}

.action-highlight {
  margin-top: 60px;
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================
   QUÉ ES WPARK SECTION
   ========================================== */
.section-wpark {
  background-color: var(--brand-neutral-bg);
}

.wpark-amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.amenity-item i {
  font-size: 20px;
  color: var(--brand-blue);
  background-color: var(--brand-blue-light);
  padding: 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.amenity-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-neutral-text);
}

.wpark-cta-box {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px dashed var(--brand-blue-border);
  box-shadow: var(--shadow-sm);
}

.wpark-cta-box h4 {
  font-size: 18px;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.wpark-cta-box p {
  font-size: 13px;
  color: var(--brand-neutral-muted);
  margin-bottom: 16px;
}

.wpark-gallery-wrapper {
  position: relative;
}

.wpark-main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--color-white);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.wpark-floating-card {
  position: absolute;
  bottom: -30px;
  left: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 2;
  transition: var(--transition);
}

.wpark-floating-card i {
  font-size: 24px;
  color: var(--color-white);
  background-color: var(--brand-blue);
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-colored-blue);
}

.wpark-floating-card h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.wpark-floating-card p {
  font-size: 12px;
  color: var(--brand-neutral-muted);
  font-weight: 500;
}

.wpark-secondary-images {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 45%;
  z-index: 3;
}

.wpark-sub-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-white);
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: var(--transition);
}

.wpark-sub-img:hover {
  transform: scale(1.05);
}

/* ==========================================
   CONTACTO & INSCRIPCIONES
   ========================================== */
.section-contacto {
  background-color: var(--color-white);
}

.contact-premium-card {
  background: linear-gradient(135deg, var(--color-dark) 0%, #2A2A28 100%);
  color: var(--color-white);
  padding: 80px 60px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(212, 83, 126, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(55, 138, 221, 0.08) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.contact-premium-card * {
  position: relative;
  z-index: 2;
}

.contact-card-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.contact-card-description {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 750px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.contact-whatsapp-action {
  margin-bottom: 50px;
}

.btn-whatsapp-large {
  background-color: #25D366;
  color: var(--color-white);
  font-size: 18px;
  padding: 18px 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: var(--transition);
}

.btn-whatsapp-large:hover {
  background-color: #20BA56;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-large i {
  font-size: 28px;
}

.contact-alternative-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.alt-method {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.alt-method i {
  font-size: 20px;
  color: var(--brand-pink-border);
}

.alt-method a {
  color: var(--color-white);
  font-weight: 600;
}

.alt-method a:hover {
  color: var(--brand-pink-border);
  text-decoration: underline;
}

.contact-logos-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  /* Los dos logos juntos superan el ancho de un movil: mejor que bajen de linea */
  flex-wrap: wrap;
  /* Los logos llevan texto negro y azul marino: sobre el fondo oscuro de esta
     seccion no se leen. Van sobre un chip claro que conserva sus colores. */
  background-color: var(--color-gray-light);
  padding: 16px 26px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin: 0 auto;
}

.contact-logo-small {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.contact-logo-wp {
  /* Mismo motivo que en el footer: el lockup apilado va mas alto. */
  height: 66px;
}
/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 60px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-simplified-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  /* Mismo motivo que en contacto: chip claro para que los logos se lean
     sobre el fondo oscuro del footer sin perder rojo ni rosado. */
  background-color: var(--color-gray-light);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
}

.footer-logo-small {
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.footer-logo-small:hover {
  transform: scale(1.05);
}

.footer-logo-ac {
  height: 32px;
}

.footer-logo-wp {
  /* El lockup de WPark aqui es el apilado (perro sobre el texto), casi cuadrado:
     necesita mas alto que el horizontal para pesar igual que Agility Cali. */
  height: 46px;
}

.footer-separator {
  color: rgba(44, 44, 42, 0.25);
  font-weight: 300;
  font-size: 20px;
}

.social-links-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-links-footer a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.social-links-footer a:hover {
  background-color: var(--brand-pink);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-bottom-simple p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

.footer-legal-links a[hidden],
.footer-legal-links a[hidden] + span,
.footer-legal-links span:has(+ a[hidden]) {
  display: none;
}

/* ==========================================
   AVISO DE COOKIES (analytics.js)
   ========================================== */
.aviso-cookies {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 10000;
  width: calc(100% - 32px);
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: aviso-cookies-entrada 0.4s ease-out;
}

.aviso-cookies-texto {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.aviso-cookies-texto a {
  color: var(--brand-pink-border);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aviso-cookies-botones {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.aviso-cookies-btn {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.aviso-cookies-rechazar {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.aviso-cookies-rechazar:hover {
  border-color: var(--color-white);
}

.aviso-cookies-aceptar {
  background-color: var(--brand-pink);
  color: var(--color-white);
  border: 1px solid var(--brand-pink);
}

.aviso-cookies-aceptar:hover {
  background-color: var(--brand-pink-hover);
}

.aviso-cookies-btn:focus-visible {
  outline: 2px solid var(--brand-blue-border);
  outline-offset: 2px;
}

@keyframes aviso-cookies-entrada {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 640px) {
  .aviso-cookies {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    bottom: 12px;
    padding: 16px;
  }

  .aviso-cookies-botones .aviso-cookies-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aviso-cookies {
    animation: none;
  }
}

/* ==========================================
   SECCIÓN: BENEFICIOS
   ========================================== */
.section-beneficios {
  background-color: var(--color-white);
}

/* Composición de dos imágenes de la sección Beneficios */
.benefits-image-stack {
  position: relative;
  padding-bottom: 80px;
}

.benefits-accent {
  position: absolute;
  top: -24px;
  left: 0;
  width: 56%;
  height: 55%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(55, 138, 221, 0.14) 0%, rgba(212, 83, 126, 0.16) 100%);
  transform: rotate(-6deg);
  z-index: 0;
}

.benefits-img-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 8px solid var(--color-white);
  box-shadow: var(--shadow-lg);
  background-color: var(--color-white);
  transition: var(--transition-slow);
  margin: 0;
}

.benefits-img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefits-img-primary {
  position: relative;
  width: 88%;
  margin-left: auto;
  aspect-ratio: 4 / 3;
  transform: rotate(2deg);
  z-index: 1;
}

.benefits-img-secondary {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1 / 1;
  transform: rotate(-5deg);
  z-index: 2;
}

.benefits-image-stack:hover .benefits-img-primary {
  transform: rotate(0deg) translateY(-8px);
}

.benefits-image-stack:hover .benefits-img-secondary {
  transform: rotate(-2deg) translateY(-8px);
}

.beneficio-card {
  background-color: var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  transition: var(--transition);
  border: 1px solid rgba(44, 44, 42, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.beneficio-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.beneficio-icon i {
  font-size: 24px;
  color: var(--brand-pink);
  transition: var(--transition);
}

.beneficio-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.beneficio-card p {
  font-size: 14px;
  color: var(--brand-neutral-muted);
  line-height: 1.6;
}

.beneficio-card:hover {
  transform: translateY(-5px);
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  border-color: rgba(44, 44, 42, 0.08);
}

.beneficio-card:hover .beneficio-icon {
  background-color: var(--brand-pink);
}

.beneficio-card:hover .beneficio-icon i {
  color: var(--color-white);
}

/* ==========================================
   SECCIÓN: PRECIOS (TARIFARIO)
   ========================================== */
.section-precios {
  background-color: var(--color-gray-light);
}

.precios-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.precios-box {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  border: 1px solid rgba(44, 44, 42, 0.05);
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--brand-pink);
  transition: var(--transition-slow);
  width: 100%;
  max-width: 700px;
}

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

.precios-box-title {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-pink);
  margin-bottom: 8px;
}

.precios-box-title.color-blue {
  color: var(--brand-blue);
}

.precios-box-desc {
  font-size: 14px;
  color: var(--brand-neutral-muted);
  margin-bottom: 30px;
  font-weight: 500;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
}

.precios-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.precios-table th,
.precios-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(44, 44, 42, 0.06);
}
.precios-table th {
  background-color: var(--brand-pink-light);
  color: var(--brand-pink);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.precios-table.table-blue th {
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

.precios-table tbody tr:hover {
  background-color: var(--color-gray-light);
}

.precios-table td strong {
  color: var(--color-dark);
  font-weight: 700;
}

.precios-table td small {
  color: var(--brand-pink);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-body);
}

.precios-table.table-blue td small {
  color: var(--brand-blue);
}

.highlight-val {
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-pink);
  font-family: var(--font-heading);
}

.precios-table.table-blue .highlight-val {
  color: var(--brand-blue);
}

/* En pantallas angostas la tabla debe caber completa (sin desplazamiento
   lateral oculto que corte la columna "Clase + Entrenos") */
@media (max-width: 480px) {
  .precios-box {
    padding: 28px 16px;
  }

  .precios-table th,
  .precios-table td {
    padding: 12px 6px;
  }

  .precios-table th:first-child,
  .precios-table td:first-child {
    padding-left: 10px;
  }

  .precios-table th {
    font-size: 11px;
    letter-spacing: 0.3px;
  }

  .precios-table td {
    font-size: 13px;
  }

  .precios-table .highlight-val {
    font-size: 14px;
  }
}

.precios-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(44, 44, 42, 0.06);
  padding-top: 20px;
}

.precios-note p {
  font-size: 12px;
  color: var(--brand-neutral-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: var(--color-white);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  background-color: #20BA5A;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: var(--color-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  right: 70px;
}

/* ==========================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 30px;
  }
  
  .hero-title {
    font-size: 46px;
  }
  

}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
    /* Menos aire entre texto y foto: en movil cada seccion cabe en menos scroll */
    gap: 28px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    min-height: auto;
  }
  
  .hero-floating-card {
    position: static;
    width: 100%;
    transform: none !important;
    box-shadow: var(--shadow-sm);
  }
  
  .card-stats, .card-ccc, .card-biggest, .card-private-wp {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }
  
  .grid-contact {
    grid-template-columns: 1fr;
  }
  
  .contact-info-side {
    padding: 50px 30px;
  }
  
  .contact-form-side {
    padding: 50px 30px;
  }
  
  .wpark-main-img {
    height: 320px;
  }

  /* En una sola columna la superposicion tapa la foto principal: las dos fotos
     pasan a flujo normal, una debajo de la otra. */
  .wpark-secondary-images {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .wpark-sub-img {
    height: 200px;
  }

  .contact-logo-small {
    height: 38px;
  }

  .contact-logo-wp {
    height: 52px;
  }

  /* En una columna el desplazamiento de la foto de Filosofia no aplica */
  .section-creencias .visual-content {
    transform: none;
  }

  /* El montaje en abanico de "Que Somos" se solapa cuando la rejilla queda en
     una sola columna: las dos fotos pasan a flujo normal, sin rotacion, y la
     insignia de años deja de flotar encima. */
  .image-stack {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .stack-img {
    position: static;
    width: 100%;
    max-height: none;
    height: 210px;
    transform: none;
    border-width: 5px;
  }

  .image-stack:hover .stack-img-main,
  .image-stack:hover .stack-img-sub {
    transform: none;
  }

  .experience-years-badge {
    position: static;
    align-self: flex-start;
  }

  .benefits-image-stack {
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 64px;
  }

  .benefits-img-frame {
    border-width: 6px;
  }
}

/* Con el botón "Escríbenos" el menú no cabe holgado hasta ~1440px */
@media (min-width: 1201px) and (max-width: 1440px) {
  .nav-list {
    gap: 12px;
  }
  .nav-link {
    font-size: 14px;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-list {
    gap: 10px;
  }
  .nav-link {
    font-size: 13px;
  }
  /* Sin espacio para todo: el logo ya lleva al inicio y el botón queda solo con el ícono */
  .nav-item-inicio,
  .nav-btn-text {
    display: none;
  }
  .nav-link.nav-btn {
    padding: 8px 12px;
  }
  .logo-ac {
    height: 30px;
  }
  .logo-wp {
    height: 20px;
  }
  .logo-group {
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Área táctil mínima recomendada: 44px */
    width: 44px;
    height: 44px;
    margin-right: -8px;
    z-index: 1010;
  }
  
  .live-banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .live-banner-left {
    display: none;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--brand-neutral-bg);
    box-shadow: -10px 0 30px rgba(44, 44, 42, 0.1);
    padding: 100px 40px 40px 40px;
    transition: var(--transition-slow);
    z-index: 1005;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  
  .nav-link {
    font-size: 18px;
  }
  
  .nav-link.nav-btn {
    width: 100%;
    text-align: center;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .carousel-3d-stage {
    height: 560px;
    margin: 60px auto 30px auto;
    perspective: 1000px;
  }

  #carousel-3d-stage {
    height: 720px;
  }
  
  .instructor-card-3d {
    width: 220px;
  }
  
  .instructor-card-3d.next {
    transform: translate3d(130px, 0, 0px) rotateY(-20deg) scale(0.8);
    opacity: 0.7;
  }
  
  .instructor-card-3d.prev {
    transform: translate3d(-130px, 0, 0px) rotateY(20deg) scale(0.8);
    opacity: 0.7;
  }
  
  .instructor-card-3d.next2,
  .instructor-card-3d.prev2,
  .instructor-card-3d.next3,
  .instructor-card-3d.prev3,
  .instructor-card-3d.hidden-right,
  .instructor-card-3d.hidden-left {
    opacity: 0;
    pointer-events: none;
    display: none !important;
  }
  
  .section-title {
    font-size: 34px;
  }
  
  .contact-premium-card {
    padding: 50px 24px;
  }
  
  .contact-card-title {
    font-size: 32px;
  }
  
  .grid-2-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .live-banner-tag {
    display: none;
  }

  .live-banner-arrow {
    display: none;
  }
  
  .live-banner-text {
    font-size: 12px;
  }
  
  .btn-live-banner {
    padding: 5px 10px;
    font-size: 11px;
  }

  .hero-title {
    font-size: 36px;
  }
  
  .hero-image {
    height: 320px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .wpark-amenities {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .grid-footer {
    grid-template-columns: 1fr;
  }
  
  .experience-years-badge {
    padding: 12px 20px;
  }
  
  .experience-years-badge h3 {
    font-size: 28px;
  }
  
  .hero-visual {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .wpark-floating-card {
    position: static;
    margin-top: 20px;
    width: 100%;
    box-shadow: var(--shadow-sm);
  }

  /* Las fotos ya van apiladas desde 900px: aqui solo se ajusta la altura */
  .image-stack {
    gap: 12px;
  }

  .stack-img {
    height: 190px;
  }
  
  .carousel-3d-stage {
    height: 520px;
    margin: 50px auto 20px auto;
    perspective: 800px;
  }

  #carousel-3d-stage {
    height: 740px;
  }
  
  .instructor-card-3d {
    width: 190px;
  }
  
  .instructor-card-3d.next {
    transform: translate3d(85px, 0, 0px) rotateY(-15deg) scale(0.75);
    opacity: 0.55;
  }
  
  .instructor-card-3d.prev {
    transform: translate3d(-85px, 0, 0px) rotateY(15deg) scale(0.75);
    opacity: 0.55;
  }
}

/* ==========================================
   PÁGINA PERRITOS SUBPAGE STYLES
   ========================================== */
.subpage-body {
  background-color: var(--brand-neutral-bg);
}

.subpage-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  background-color: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
  padding-top: 80px;
}

.subpage-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(135deg, rgba(30, 30, 28, 0.95) 0%, rgba(30, 30, 28, 0.7) 100%);
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.subpage-hero-container {
  position: relative;
  z-index: 2;
}

.subpage-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: -1.5px;
}

.subpage-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

/* Filters Section */
.filters-section {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.filters-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(44, 44, 42, 0.05);
}

.filters-grid-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.filter-field label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-neutral-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-field label i {
  color: var(--brand-pink);
  font-size: 16px;
}

.filter-field input,
.filter-field select {
  /* Los controles nativos traen un ancho intrinseco que no baja solo */
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(44, 44, 42, 0.12);
  background-color: var(--color-gray-light);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brand-neutral-text);
  transition: var(--transition-fast);
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--brand-pink);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(212, 83, 126, 0.1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   CONTADOR DEL EQUIPO (dentro de .filters-card)
   ========================================== */
.dog-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(44, 44, 42, 0.08);
}

.dog-counter-total {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.dog-counter-num {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  min-width: 1.3ch;
  background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dog-counter-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.dog-counter-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-neutral-text);
  line-height: 1.2;
}

.dog-counter-reset {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-pink);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dog-counter-reset:hover {
  color: var(--brand-pink-hover);
}

.dog-counter-reset[hidden] {
  display: none;
}

.dog-counter-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.dog-counter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Color de cada estado: el mismo de las etiquetas de las tarjetas */
.dog-chip.status-activo,
.dog-counter-segment.status-activo { --estado-color: var(--brand-success); }
.dog-chip.status-en-formacion,
.dog-counter-segment.status-en-formacion { --estado-color: #00b4d8; }
.dog-chip.status-retirado,
.dog-counter-segment.status-retirado { --estado-color: var(--brand-alert); }
.dog-chip.status-in-memoriam,
.dog-counter-segment.status-in-memoriam { --estado-color: #555555; }

.dog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(44, 44, 42, 0.1);
  background-color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-neutral-text);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dog-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--estado-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--estado-color) 18%, transparent);
}

.dog-chip-count {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-gray-light);
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-weight: 700;
  transition: var(--transition-fast);
}

.dog-chip:hover:not(:disabled) {
  border-color: var(--estado-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dog-chip.is-active {
  border-color: var(--estado-color);
  background-color: color-mix(in srgb, var(--estado-color) 10%, var(--color-white));
}

.dog-chip.is-active .dog-chip-count {
  background-color: var(--estado-color);
  color: var(--color-white);
}

.dog-chip:disabled {
  opacity: 0.4;
  cursor: default;
}

.dog-chip:focus-visible,
.dog-counter-reset:focus-visible {
  outline: 2px solid var(--brand-pink);
  outline-offset: 2px;
}

.dog-counter-bar {
  display: flex;
  gap: 3px;
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--color-gray-light);
}

.dog-counter-segment {
  flex: 0 1 0;
  background-color: var(--estado-color);
  transition: flex-grow 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.dog-counter-segment.is-dimmed {
  opacity: 0.2;
}

@media (max-width: 900px) {
  .dog-counter {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
  }

  .dog-counter-chips {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .dog-counter-num {
    font-size: 44px;
  }

  .dog-chip {
    min-height: 44px;
  }

  .dog-counter-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dog-chip {
    justify-content: flex-start;
  }

  .dog-chip-name {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dog-chip,
  .dog-counter-segment {
    transition: none;
  }
}

/* Carousel / Grid Display */
.section-dogs-carousel {
  padding: 60px 0 100px 0;
  overflow: hidden;
}

.carousel-container-outer {
  position: relative;
  width: 100%;
}

.dogs-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 15px 0;
}

.dogs-carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: max-content;
  padding: 0 10px;
}

/* El carrusel de perros reusa .carousel-3d-stage (660px) del de instructores,
   pero sus fichas son mas altas porque la foto es vertical. El selector por id
   gana sobre la clase, incluidos sus media queries. */
#dogs-carousel-track {
  height: 750px;
}

/* Dog Card */
.dog-card {
  position: absolute;
  width: 340px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(44, 44, 42, 0.05);
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: pointer;
}

.dog-card.active {
  transform: translate3d(0, 0, 120px) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 20;
  box-shadow: var(--shadow-lg), 0 15px 35px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.dog-card.next {
  transform: translate3d(220px, 0, 0px) rotateY(-18deg) scale(0.85);
  opacity: 0.8;
  z-index: 10;
}

.dog-card.prev {
  transform: translate3d(-220px, 0, 0px) rotateY(18deg) scale(0.85);
  opacity: 0.8;
  z-index: 10;
}

.dog-card.next2 {
  transform: translate3d(410px, 0, -100px) rotateY(-28deg) scale(0.7);
  opacity: 0.45;
  z-index: 5;
}

.dog-card.prev2 {
  transform: translate3d(-410px, 0, -100px) rotateY(28deg) scale(0.7);
  opacity: 0.45;
  z-index: 5;
}

.dog-card.next3 {
  transform: translate3d(570px, 0, -200px) rotateY(-35deg) scale(0.55);
  opacity: 0.25;
  z-index: 3;
}

.dog-card.prev3 {
  transform: translate3d(-570px, 0, -200px) rotateY(35deg) scale(0.55);
  opacity: 0.25;
  z-index: 3;
}

.dog-card.hidden-right {
  transform: translate3d(700px, 0, -300px) rotateY(-40deg) scale(0.4);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.dog-card.hidden-left {
  transform: translate3d(-700px, 0, -300px) rotateY(40deg) scale(0.4);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Las fotos del equipo son verticales (2:3, perro sentado de cuerpo entero).
   Con el marco apaisado 4/3 anterior, cover recortaba cabeza y patas. */
.dog-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background-color: var(--color-gray-light);
}

.dog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ligeramente hacia arriba: si algo se recorta, que sea el cesped */
  object-position: center 35%;
  image-rendering: auto;
  transition: var(--transition-slow);
}

.dog-card:hover .dog-img {
  transform: scale(1.02);
}

/* Badge System */
.dog-status-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dog-status-badge.status-activo {
  background-color: var(--brand-success);
  color: var(--color-white);
}

.dog-status-badge.status-en-formacion {
  background-color: #00b4d8;
  color: var(--color-white);
}

.dog-status-badge.status-retirado {
  background-color: var(--brand-alert);
  color: var(--color-white);
}

.dog-status-badge.status-in-memoriam {
  background-color: #555555;
  color: var(--color-white);
}

/* Ribbon In Memoriam */
.ribbon-black {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  overflow: hidden;
  z-index: 4;
}

.ribbon-black::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 75px 75px 0;
  border-color: transparent rgba(0, 0, 0, 0.85) transparent transparent;
}

.ribbon-black::after {
  content: '\271D';
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--color-white);
  font-size: 18px;
  line-height: 1;
  transform: rotate(45deg);
  font-weight: bold;
}

/* In Memoriam Grayscale */
.dog-card.in-memoriam .dog-img-wrapper {
  filter: grayscale(100%);
  opacity: 0.85;
}

.dog-card.in-memoriam .dog-status-badge {
  background-color: rgba(0,0,0,0.7);
}

/* Dog Content */
.dog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.dog-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dog-breed-tag {
  font-size: 12px;
  color: var(--brand-pink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dog-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-dark);
}

.dog-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background-color: var(--color-gray-light);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(44, 44, 42, 0.04);
}

.dog-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dog-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-neutral-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dog-stat-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-neutral-text);
  white-space: nowrap;
}

.dog-desc {
  font-size: 13px;
  color: #5C5C59;
  line-height: 1.5;
}

/* Empty Results styling */
.empty-results-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-results-img {
  max-width: 150px;
  margin-bottom: 24px;
  opacity: 0.8;
}

.empty-results-box h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.empty-results-box p {
  color: var(--brand-neutral-muted);
  font-size: 15px;
}

/* Responsiveness for subpage */
@media (max-width: 900px) {
  .filters-grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .filters-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .dog-card {
    width: 220px;
  }
  .dog-card.next {
    transform: translate3d(130px, 0, 0px) rotateY(-20deg) scale(0.8);
    opacity: 0.7;
  }
  .dog-card.prev {
    transform: translate3d(-130px, 0, 0px) rotateY(20deg) scale(0.8);
    opacity: 0.7;
  }
  .dog-card.next2,
  .dog-card.prev2,
  .dog-card.next3,
  .dog-card.prev3,
  .dog-card.hidden-right,
  .dog-card.hidden-left {
    opacity: 0;
    pointer-events: none;
    display: none !important;
  }
}

@media (max-width: 480px) {
  .subpage-hero {
    height: 280px;
  }
  .subpage-title {
    font-size: 34px;
  }
  .dog-card {
    width: 190px;
  }

  #dogs-carousel-track {
    height: 640px;
  }
  .dog-card.next {
    transform: translate3d(85px, 0, 0px) rotateY(-15deg) scale(0.75);
    opacity: 0.55;
  }
  .dog-card.prev {
    transform: translate3d(-85px, 0, 0px) rotateY(15deg) scale(0.75);
    opacity: 0.55;
  }
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.section-testimoniales {
  background-color: var(--color-white);
}

.testimoniales-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--color-gray-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(44, 44, 42, 0.05);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  width: calc(33.333% - 20px);
  min-width: 320px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-pink-border);
}

.testimonial-quote-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 38px;
  color: rgba(212, 83, 126, 0.1);
}

.rating-stars {
  margin-bottom: 20px;
  color: #ffb703;
  font-size: 18px;
  display: flex;
  gap: 4px;
}

.testimonial-text-wrap {
  position: relative;
  max-height: 72px; /* ~3 lines of text at 15px font-size and 1.6 line-height */
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 8px;
  flex-grow: 1;
}

.testimonial-text-wrap.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: linear-gradient(to top, var(--color-gray-light), transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.testimonial-text-wrap.expanded::after {
  opacity: 0;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--brand-neutral-text);
  font-style: italic;
  margin: 0;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--brand-pink);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  /* Relleno vertical para un área táctil cómoda sin mover el diseño */
  margin: -12px 0 8px;
  padding: 12px 0;
  align-self: flex-start;
  font-family: var(--font-heading);
  transition: var(--transition-fast);
}

.read-more-btn:hover {
  color: var(--brand-pink-hover);
  text-decoration: underline;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(44, 44, 42, 0.08);
  padding-top: 20px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-pink) 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.testimonial-info h4 {
  font-size: 16px;
  color: var(--color-dark);
  font-weight: 700;
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: 13px;
  color: var(--brand-neutral-muted);
}

.testimonial-info p span {
  color: var(--brand-pink);
  font-weight: 500;
}

/* Responsive updates for testimonials */
@media (max-width: 992px) {
  .testimonial-card {
    width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 100%;
    max-width: 100%;
  }
}

/* ==========================================
   POPUP DETAILS MODAL (TESTIMONIALS)
   ========================================== */
.t-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.t-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.t-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.t-modal__container {
  position: relative;
  background-color: var(--color-white);
  width: 90%;
  max-width: 860px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.t-modal.is-active .t-modal__container {
  transform: scale(1);
}

.t-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-dark);
  z-index: 10;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}

.t-modal__close:hover {
  background-color: var(--brand-pink);
  color: var(--color-white);
  transform: rotate(90deg);
}

.t-modal__content {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 480px;
  max-height: 90vh;
}

.t-modal__image-side {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: var(--color-gray-light);
  overflow: hidden;
}

.t-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-modal__thumbs {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.t-modal__thumbs:empty {
  display: none;
}

.t-modal__thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.75;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.t-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t-modal__thumb:hover,
.t-modal__thumb.is-active {
  opacity: 1;
  border-color: var(--brand-pink);
  transform: translateY(-2px);
}

.t-modal__info-side {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: space-between;
  overflow-y: auto;
  max-height: 90vh;
}

.t-modal__quote-icon {
  font-size: 64px;
  color: rgba(212, 83, 126, 0.08);
  position: absolute;
  top: 30px;
  right: 40px;
  pointer-events: none;
}

.t-modal__stars {
  color: #ffb703;
  font-size: 20px;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.t-modal__text-container {
  flex-grow: 1;
  margin-bottom: 30px;
  overflow-y: auto;
  padding-right: 10px;
}

.t-modal__text {
  font-size: 16px;
  line-height: 1.7;
  color: #4A4A48;
  font-style: italic;
  margin: 0;
}

.t-modal__user {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(44, 44, 42, 0.08);
  padding-top: 24px;
}

.t-modal__avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-pink) 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.t-modal__user-info h4 {
  font-size: 18px;
  color: var(--color-dark);
  font-weight: 800;
  margin-bottom: 4px;
}

.t-modal__user-info p {
  font-size: 14px;
  color: var(--brand-neutral-muted);
}

.t-modal__user-info p span {
  color: var(--brand-pink);
  font-weight: 600;
}

/* Scrollbar Customization for Modal Info Side */
.t-modal__info-side::-webkit-scrollbar,
.t-modal__text-container::-webkit-scrollbar {
  width: 6px;
}

.t-modal__info-side::-webkit-scrollbar-track,
.t-modal__text-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}

.t-modal__info-side::-webkit-scrollbar-thumb,
.t-modal__text-container::-webkit-scrollbar-thumb {
  background: rgba(44, 44, 42, 0.15);
  border-radius: var(--radius-full);
}

/* Modal Responsiveness */
@media (max-width: 768px) {
  .t-modal__container {
    width: 92%;
    max-height: 85vh;
  }

  .t-modal__content {
    grid-template-columns: 1fr;
    max-height: 85vh;
  }

  /* Las fotos son verticales: con 200px solo se veía una franja y se
     perdían las caras. Más alto, sin quitarle todo el espacio al texto. */
  .t-modal__image-side {
    height: min(40vh, 320px);
  }

  .t-modal__info-side {
    padding: 30px 24px;
    height: calc(85vh - min(40vh, 320px));
    overflow-y: auto;
  }

  .t-modal__close {
    top: 15px;
    right: 15px;
    background-color: var(--color-white);
  }
}

/* ==========================================
   PARTNER BRANDING: COMISIÓN COLOMBIANA DE AGILITY
   ========================================== */
.footer-cca-link {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.cca-alliance-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 100%;
  box-sizing: border-box;
}

.cca-alliance-link:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.footer-logo-cca {
  height: 24px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

/* ==========================================
   MOBILE DENSITIES & SPACING OPTIMIZATIONS
   ========================================== */
@media (max-width: 600px) {
  .section {
    padding: 44px 0;
  }

  /* Tarjetas mas densas: apiladas en una columna, 36px arriba y abajo cada una
     suman mucho scroll sin aportar legibilidad. */
  .card-creencia,
  .beneficio-card,
  .module-card {
    padding: 22px 18px;
  }

  .filters-card {
    padding: 16px;
    margin-bottom: 24px !important;
  }
  
  .filters-grid-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  
  
  .filter-field label {
    font-size: 11px;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
  }
  
  .filter-field input,
  .filter-field select {
    padding: 10px 12px;
    font-size: 13px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Rotaciones más suaves para evitar desbordes en pantallas estrechas */
  .benefits-img-primary {
    width: 92%;
    transform: rotate(1deg);
  }

  .benefits-img-secondary {
    width: 50%;
    transform: rotate(-3deg);
  }

  .benefits-image-stack {
    padding-bottom: 52px;
  }

  .cca-alliance-link {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .footer-logo-cca {
    height: 18px;
  }
}

/* ==========================================
   TARJETAS COMPACTAS (instructores y perritos)
   La tarjeta activa debe verse completa en una pantalla (portátil de 768px
   de alto y celulares): foto cuadrada y tipografía más compacta. Va al
   final para ganar sobre las reglas y media queries anteriores.
   ========================================== */
/* La foto cuadrada es solo para celular/tableta; en escritorio se mantiene
   la foto vertical original (3:4) sin recortes. */
@media (max-width: 768px) {
  .instructor-img-wrapper,
  .dog-img-wrapper {
    aspect-ratio: 1 / 1;
  }

  .instructor-img {
    object-position: center 30%;
  }

  /* Fotos de perros: las orejas empiezan cerca del 7% de la altura; con el
     recorte cuadrado se encuadra arriba para no cortarlas (se recortan patas) */
  .dog-img {
    object-position: center 8%;
  }
}

.instructor-card-content,
.dog-card-content {
  padding: 18px 20px 20px;
  gap: 12px;
}

.instructor-role {
  font-size: 10.5px;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.instructor-card-3d h3 {
  font-size: 19px;
}

.instructor-body {
  gap: 9px;
}

.info-label {
  font-size: 10px;
}

.info-val {
  font-size: 13px;
  line-height: 1.4;
}

.dog-breed-tag {
  font-size: 11px;
}

.dog-header h3 {
  font-size: 20px;
}

.dog-stats-grid {
  padding: 10px 12px;
}

.dog-stat-val {
  font-size: 12.5px;
}

.dog-desc {
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 768px) {
  /* Menos "acercamiento" 3D: la tarjeta central no se agranda tanto */
  .instructor-card-3d.active,
  .dog-card.active {
    transform: translate3d(0, 0, 50px) rotateY(0deg) scale(1);
  }
}

@media (max-width: 480px) {
  .instructor-card-3d,
  .dog-card {
    width: 232px;
  }

  .instructor-card-3d.active,
  .dog-card.active {
    transform: translate3d(0, 0, 30px) rotateY(0deg) scale(1);
  }

  .instructor-card-3d.next,
  .dog-card.next {
    transform: translate3d(100px, 0, 0px) rotateY(-15deg) scale(0.75);
  }

  .instructor-card-3d.prev,
  .dog-card.prev {
    transform: translate3d(-100px, 0, 0px) rotateY(15deg) scale(0.75);
  }

  .instructor-card-content,
  .dog-card-content {
    padding: 14px 16px 16px;
    gap: 10px;
  }

  .instructor-card-3d h3 {
    font-size: 17px;
  }

  .dog-header h3 {
    font-size: 18px;
  }

  .info-val {
    font-size: 12.5px;
  }

  .dog-status-badge {
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 10px;
  }
}

/* Filtros + contador compactos en celular: que quepan junto a la tarjeta */
@media (max-width: 640px) {
  .filters-card {
    margin-bottom: 16px !important;
  }

  .dog-counter {
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .dog-counter-total {
    gap: 10px;
  }

  .dog-counter-num {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .dog-counter-label {
    font-size: 14px;
  }

  /* Cuatro estados en una fila: número arriba, nombre abajo */
  .dog-counter-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .dog-chip {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "dot count"
      "name name";
    justify-content: center;
    align-items: center;
    column-gap: 5px;
    row-gap: 1px;
    min-height: 48px;
    padding: 6px 2px;
    border-radius: 12px;
  }

  .dog-chip-dot {
    grid-area: dot;
    width: 7px;
    height: 7px;
  }

  .dog-chip-count {
    grid-area: count;
    min-width: 0;
    padding: 0;
    background: none;
    font-size: 16px;
  }

  .dog-chip.is-active .dog-chip-count {
    background: none;
    color: var(--estado-color);
  }

  .dog-chip-name {
    grid-area: name;
    flex: none;
    font-size: 10.5px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dog-counter-breakdown {
    gap: 8px;
  }
}

/* Escenarios de los carruseles ajustados a las tarjetas compactas: la tarjeta
   se centra en el escenario, así que un escenario más alto que la tarjeta
   deja espacio vacío y empuja la tarjeta fuera de la pantalla. */
/* Escritorio: foto vertical completa (tarjetas de ~650 y ~700px que la
   perspectiva 3D agranda ~11%) */
#carousel-3d-stage {
  height: 730px;
  margin-top: 40px;
}

#dogs-carousel-track {
  height: 780px;
  margin-top: 0;
}

#carousel-wrapper {
  padding: 0 !important;
}

@media (max-width: 768px) {
  #carousel-3d-stage {
    height: 580px;
    margin-top: 30px;
  }

  #dogs-carousel-track {
    height: 540px;
  }

  .dog-card {
    width: 220px;
  }
}

@media (max-width: 480px) {
  #carousel-3d-stage {
    height: 530px;
    margin-top: 20px;
  }

  #dogs-carousel-track {
    height: 470px;
    margin-top: 0;
  }

  .dog-card {
    width: 232px;
  }
}

@media (max-width: 640px) {
  /* Los campos se explican solos (texto de ejemplo / "Todas las razas"):
     las etiquetas quedan solo para lectores de pantalla */
  .filters-card .filter-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Celulares pequeños (360px): foto algo más horizontal para que filtros y
   tarjeta sigan cabiendo en una pantalla */
@media (max-width: 380px) {
  .dog-img-wrapper,
  .instructor-img-wrapper {
    aspect-ratio: 5 / 4;
  }

  #dogs-carousel-track {
    height: 430px;
  }

  #carousel-3d-stage {
    height: 490px;
  }
}

/* ==========================================
   CONTACTO + FOOTER EN UN SOLO BLOQUE
   La invitación a inscribirse ya no es una tarjeta aparte: forma la parte
   superior del bloque oscuro del footer (los logos aparecen una sola vez).
   ========================================== */
.section-contacto {
  position: relative;
  overflow: hidden;
  padding: 96px 0 56px;
  background:
    radial-gradient(circle at 12% 15%, rgba(212, 83, 126, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 88% 10%, rgba(55, 138, 221, 0.08) 0%, transparent 40%),
    var(--color-dark);
}

.section-contacto .contact-premium-card {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

.section-contacto .contact-premium-card::before {
  display: none;
}

.section-contacto .contact-alternative-methods {
  margin-bottom: 0;
}

.main-footer {
  padding: 0 0 36px;
  border-top: none;
}

/* Línea fina que separa la invitación del resto del footer */
.main-footer .footer-simplified-container {
  padding-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .section-contacto {
    padding: 64px 0 40px;
  }

  .main-footer .footer-simplified-container {
    padding-top: 32px;
  }
}

/* ==========================================
   MÓDULOS: CARRUSEL EN CELULAR
   En escritorio/tableta siguen en rejilla. En celular se deslizan con el
   dedo (scroll-snap), asomando la siguiente tarjeta, con puntos debajo.
   ========================================== */
#modulos-grid {
  position: relative;
}

.modulos-dots {
  display: none;
}

@media (max-width: 768px) {
  #modulos-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    /* Ocupa el ancho de la pantalla (sin el margen del contenedor) y deja
       el mismo margen como relleno para que la primera tarjeta no quede pegada */
    margin: 0 -16px;
    padding: 6px 16px 18px;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }

  #modulos-grid::-webkit-scrollbar {
    display: none;
  }

  #modulos-grid .module-card {
    flex: 0 0 84%;
    max-width: 340px;
    height: auto;
    scroll-snap-align: center;
  }

  .modulos-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }

  .modulos-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background-color: rgba(44, 44, 42, 0.18);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
    /* Área táctil más grande que el punto visible */
    position: relative;
  }

  .modulos-dot::after {
    content: '';
    position: absolute;
    inset: -12px -6px;
  }

  .modulos-dot.is-active {
    width: 24px;
    background-color: var(--brand-pink);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  #modulos-grid {
    margin: 0 -24px;
    padding: 6px 24px 18px;
    scroll-padding: 0 24px;
  }

  #modulos-grid .module-card {
    flex-basis: 60%;
  }
}

/* ==========================================
   LLAMADO A LA ACCIÓN "PREGÚNTANOS" (Beneficios -> WhatsApp)
   ========================================== */
.beneficios-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-pink-light) 0%, var(--brand-blue-light) 100%);
  border: 1px solid rgba(212, 83, 126, 0.15);
}

.beneficios-cta p {
  margin: 0;
  flex: 1 1 220px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
}

.btn-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  border-color: #25D366;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
}

.btn-cta-wa:hover {
  background-color: #1EBE5A;
  border-color: #1EBE5A;
}

.btn-cta-wa i {
  font-size: 20px;
}

@media (max-width: 640px) {
  .beneficios-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  /* En columna, el "flex-basis" de 220px se volvía altura y dejaba un hueco */
  .beneficios-cta p {
    flex: none;
  }

  .btn-cta-wa {
    justify-content: center;
  }
}

/* ==========================================
   TEXTOS JUSTIFICADOS
   Párrafos de contenido justificados; en bloques centrados la última línea
   queda centrada. "hyphens" evita espacios grandes (html lang="es").
   ========================================== */
.section-description,
.feature-item p,
.card-creencia p,
.beneficio-card p,
.module-desc,
.dog-desc,
.wpark-cta-box p,
.precios-box-desc,
.contact-card-description,
.testimonial-text,
.t-modal__text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.text-center .section-description,
.section-header .section-description,
.contact-card-description {
  text-align-last: center;
}

/* ==========================================
   MODAL DE TESTIMONIOS EN CELULAR: se desplaza todo (foto incluida), así el
   espacio de lectura crece apenas se empieza a bajar.
   ========================================== */
@media (max-width: 768px) {
  .t-modal__content {
    display: block;
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .t-modal__info-side {
    height: auto;
    overflow: visible;
  }
}

/* Portada en celular: la última tarjeta (Espacio Privado) sobresalía 15px del
   final de la portada, que recorta su contenido (overflow: hidden) */
@media (max-width: 768px) {
  .hero-section {
    padding-bottom: 48px;
  }
}

/* Llamado a la acción "Empieza hoy" después de los módulos */
.modulos-cta {
  max-width: 760px;
  margin: 40px auto 0;
}

@media (max-width: 768px) {
  .modulos-cta {
    margin-top: 24px;
  }
}

/* Testimonios: un solo desplazamiento (el de la ventana). El contenedor del
   texto ya no tiene barra propia. */
.t-modal__text-container {
  overflow: visible;
  padding-right: 0;
}

/* Testimonios: margen al final del texto para que el nombre no quede pegado
   al borde inferior de la ventana al terminar de desplazar */
.t-modal__info-side {
  padding-bottom: 56px;
}

@media (max-width: 768px) {
  /* Sin límite de alto: el texto completo queda dentro de la columna y el
     margen inferior aparece al final, no en medio del texto */
  .t-modal__info-side {
    max-height: none;
    padding-bottom: 44px;
  }
}
