/* ============================================
   Clínica Odontológica — Wellness Light Theme
   Salud · Frescura · Diseño orgánico único
   ============================================ */

:root {
  --bg: #f4fbf8;
  --bg-warm: #fef9f4;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-mint: #e8f7f2;
  --bg-sky: #eaf6fb;
  --bg-soft: #f0faf5;

  --surface: rgba(26, 158, 140, 0.06);
  --border: rgba(26, 90, 80, 0.1);
  --border-hover: rgba(26, 158, 140, 0.25);

  --text: #163832;
  --text-muted: #4a6b65;
  --text-dim: #7a9690;

  --primary: #1a9e8c;
  --primary-dark: #147a6c;
  --primary-light: #4db6a0;
  --sky: #5ec4d4;
  --sky-light: #b8e8f0;
  --coral: #ff8f6b;
  --coral-light: #ffd4c4;
  --lime: #a8e06c;
  --accent: var(--primary);
  --mint: var(--primary-light);
  --mint-dim: rgba(77, 182, 160, 0.15);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 4px 20px rgba(22, 56, 50, 0.06);
  --shadow: 0 16px 50px rgba(22, 56, 50, 0.1);
  --shadow-lg: 0 30px 80px rgba(22, 56, 50, 0.12);
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* Floating organic blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: blobDrift 18s ease-in-out infinite;
}

.blob-a {
  width: 520px;
  height: 520px;
  background: rgba(77, 182, 160, 0.22);
  top: -8%;
  right: -6%;
}

.blob-b {
  width: 420px;
  height: 420px;
  background: rgba(94, 196, 212, 0.18);
  bottom: 20%;
  left: -8%;
  animation-delay: -6s;
}

.blob-c {
  width: 300px;
  height: 300px;
  background: rgba(255, 143, 107, 0.12);
  top: 45%;
  left: 40%;
  animation-delay: -12s;
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -20px) scale(1.06); }
  66% { transform: translate(-15px, 20px) scale(0.94); }
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(244, 251, 248, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--bg-mint);
  border-radius: 14px;
  transition: transform 0.4s;
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-text em {
  font-style: italic;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s, left 0.3s;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--primary);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
  left: 0;
}

.nav-cta {
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: #fff !important;
  border-radius: 100px;
  font-weight: 600 !important;
  box-shadow: 0 6px 24px rgba(26, 158, 140, 0.3);
  transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(26, 158, 140, 0.35);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #22b8a0 50%, var(--sky) 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(26, 158, 140, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(26, 158, 140, 0.35);
}

.btn-ghost {
  border: 2px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-mint);
}

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

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

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

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(77, 182, 160, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(94, 196, 212, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,64 C360,120 720,0 1080,48 C1260,72 1380,96 1440,80 L1440,120 L0,120 Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 158, 140, 0.08) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 10%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-block: 3rem 5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 158, 140, 0.15);
  border-radius: 100px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(168, 224, 108, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 224, 108, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(168, 224, 108, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.title-accent {
  font-style: italic;
  background: linear-gradient(120deg, var(--primary) 20%, var(--sky) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 490px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-desc strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.stat:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.stat:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.stat:not(:first-child) { border-left: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 4px;
}

.stat-divider { display: none; }

/* Hero Visual Panel */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  aspect-ratio: 4 / 5;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image-wrap:hover .hero-image {
  transform: scale(1.04);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 56, 50, 0.25) 0%, transparent 45%);
  pointer-events: none;
}

.visual-checklist {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.visual-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.visual-checklist .check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  animation: badgeFloat 5s ease-in-out infinite;
  white-space: nowrap;
}

.badge-icon { font-size: 1rem; }

.badge-1 {
  top: -5%;
  right: -8%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 8%;
  left: -12%;
  animation-delay: -2.5s;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  z-index: 1;
}

.scroll-line {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 2px;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================
   Trust Bar
   ============================================ */
.trust-bar {
  background: #fff;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.3s, color 0.3s;
}

.trust-item span:first-child {
  font-size: 1.1rem;
}

.trust-item:hover {
  background: var(--bg-mint);
  color: var(--primary-dark);
}

/* ============================================
   Marquee
   ============================================ */
.marquee-section {
  padding: 1.25rem 0;
  background: var(--bg-mint);
  overflow: hidden;
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--primary);
  opacity: 0.7;
  white-space: nowrap;
  padding-right: 2rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 3.5rem;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.9rem;
  background: var(--bg-mint);
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  color: var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Bento Grid
   ============================================ */
.experiencia {
  background: #fff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.bento-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.bento-large {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-mint) 0%, #fff 60%);
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.bento-large .bento-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(94, 196, 212, 0.2) 0%, transparent 50%);
  z-index: 0;
}

.bento-image {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.bento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.bento-large:hover .bento-image img {
  transform: scale(1.05);
}

.bento-large .bento-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.bento-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-sky) 0%, #fff 100%);
}

.bento-card:nth-child(2) { background: var(--bg-warm); }
.bento-card:nth-child(3) { background: var(--bg-sky); }

.bento-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(26, 158, 140, 0.18);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.bento-content { position: relative; z-index: 1; }

.progress-bars {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-left: 0;
}

.bar::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
}

.bar::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  border-radius: 6px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar.animated::after { width: var(--w); }

.bar span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.bar em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================
   Services
   ============================================ */
.servicios {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  border-left: none;
  display: flex;
  flex-direction: column;
}

.service-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

.service-body {
  padding: 1.5rem 1.75rem 2rem;
  border-left: 4px solid var(--primary);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card:nth-child(1) .service-body { border-left-color: var(--primary); }
.service-card:nth-child(2) .service-body { border-left-color: var(--sky); }
.service-card:nth-child(3) .service-body { border-left-color: var(--lime); }
.service-card:nth-child(4) .service-body { border-left-color: var(--coral); }
.service-card:nth-child(5) .service-body { border-left-color: #9b8aff; }
.service-card:nth-child(6) .service-body { border-left-color: var(--primary-light); }

.service-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding: 12px;
  background: var(--bg-mint);
  border-radius: 16px;
  transition: transform 0.4s, background 0.4s;
}

.service-card:hover .service-icon {
  transform: scale(1.08);
  background: var(--primary);
  color: #fff;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.service-link span { transition: transform 0.3s; }

.service-card:hover .service-link span { transform: translateX(4px); }

/* ============================================
   Timeline
   ============================================ */
.proceso {
  background: #fff;
}

.proceso-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.proceso-desc {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 400px;
}

.proceso-image {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

.proceso-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s;
}

.proceso-image:hover img {
  transform: scale(1.03);
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--sky), var(--lime));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  z-index: 1;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.timeline-item:hover .timeline-marker {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ============================================
   Team
   ============================================ */
.equipo { background: var(--bg-mint); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  padding: 2.25rem 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s;
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(26, 158, 140, 0.2);
}

.team-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  position: relative;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.team-photo .team-ring {
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(26, 158, 140, 0.3);
  border-radius: 50%;
  animation: ringRotate 16s linear infinite;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.team-bio {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonios {
  background: #fff;
  overflow: hidden;
}

.testimonials-slider { position: relative; }

.testimonials-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 0.85rem);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(26, 158, 140, 0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-mint);
  flex-shrink: 0;
}

.testimonial-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.stars {
  color: #f5b942;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: var(--text);
}

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

.testimonial-card footer strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-card footer span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: var(--primary);
  font-size: 1rem;
  background: #fff;
  transition: all 0.3s;
}

.slider-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.slider-dots { display: flex; gap: 8px; }

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   Gallery
   ============================================ */
.galeria {
  background: var(--bg-mint);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border: 3px solid #fff;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(22, 56, 50, 0.75), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.4s;
}

.gallery-item:hover figcaption {
  transform: translateY(0);
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.cta-inner {
  text-align: center;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #22b8a0 40%, var(--sky) 100%);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 158, 140, 0.25);
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  color: #fff;
}

.cta-inner h2 em {
  font-style: italic;
  color: var(--coral-light);
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  position: relative;
}

.cta-inner .btn { position: relative; }

/* ============================================
   Contact
   ============================================ */
.contacto { background: #fff; }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contacto-desc {
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.contacto-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contacto-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.contacto-list li:hover {
  background: var(--bg-mint);
  border-color: var(--border-hover);
}

.contact-icon {
  font-size: 1.1rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contacto-list li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacto-list strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.contacto-list span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contacto-image {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--bg-mint);
}

.contacto-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.contacto-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 158, 140, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234a6b65' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.85rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 2.5rem 0 1.75rem;
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  z-index: 1;
}

.footer .logo-text { color: #fff; }
.footer .logo-text em { color: var(--sky-light); }
.footer .logo-mark { background: rgba(255,255,255,0.1); color: var(--sky-light); }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--sky-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10000;
  pointer-events: none;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .visual-panel { max-width: 340px; margin-inline: auto; }

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

  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-large { grid-column: span 2; grid-template-columns: 1fr; }
  .bento-large .bento-content { padding: 1.5rem; }
  .bento-image { min-height: 200px; }
  .bento-wide { grid-column: span 2; grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-tall { grid-row: span 1; }
  .gallery-wide { grid-column: span 2; }
  .gallery-item { height: 200px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-inner { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonial-card {
    flex: 0 0 calc(50% - 0.65rem);
  }

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(244, 251, 248, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }

  .hero-stats {
    flex-direction: column;
    width: 100%;
  }

  .stat {
    width: 100%;
    border-radius: var(--radius-md) !important;
    border-left: 1px solid var(--border) !important;
  }

  .trust-inner { grid-template-columns: 1fr 1fr; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; }

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

  .gallery-wide { grid-column: span 1; }

  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .testimonial-card { flex: 0 0 100%; }

  .form-row { grid-template-columns: 1fr; }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .floating-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
