/* ═══════════════════════════════════════
   OBNOSIS — Shared Stylesheet v2.1
   Vida, Alegría y Movimiento (Corregido)
   ═══════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  /* Paleta nueva: cálida, juguetona, profesional */
  --cream:      #FDF8F3;
  --cream-warm: #FFF5EB;
  --coral:      #E8955F;
  --coral-soft: #F0A97A;
  --coral-dark: #D47A45;
  --sage:       #7EB8A2;
  --sage-soft:  #A3D4C2;
  --butter:     #F4D06F;
  --butter-soft:#F9E2A0;
  --ink:        #2D3142;
  --ink-light:  #4A4F63;
  --stone:      #6B7280;
  --stone-light:#9CA3AF;
  --white:      #FFFFFF;
  
  /* Gradientes orgánicos */
  --gradient-warm: linear-gradient(135deg, var(--cream-warm) 0%, var(--cream) 100%);
  --gradient-joy:  linear-gradient(135deg, var(--coral-soft) 0%, var(--butter-soft) 100%);
  --gradient-life: linear-gradient(135deg, var(--sage-soft) 0%, var(--cream-warm) 100%);
  
  /* Sombras suaves con tinte cálido */
  --shadow-sm: 0 2px 8px rgba(232,149,95,0.08);
  --shadow-md: 0 8px 24px rgba(232,149,95,0.12);
  --shadow-lg: 0 16px 48px rgba(232,149,95,0.16);
  --shadow-glow: 0 0 20px rgba(232,149,95,0.25);
  
  /* Tipografía */
  --serif: 'Playfair Display', serif;
  --sans:  'DM Sans', sans-serif;
  
  /* Radios amigables (pill shapes) */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  
  /* Transiciones suaves */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Base ─── */
*, *::before, *::after { 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Selection con alegría ─── */
::selection {
  background: var(--butter);
  color: var(--ink);
}

/* ─── Navbar ─── */
.navbar {
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(232, 149, 95, 0.15);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s var(--ease-smooth), padding 0.3s var(--ease-smooth);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.7rem 0;
}

.navbar-brand img { 
  height: 42px; 
  transition: transform 0.3s var(--ease-bounce);
}

.navbar-brand:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.nav-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink) !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.25s var(--ease-smooth);
  position: relative;
  border-radius: var(--radius-pill);
}

/* Hover con fondo sutil en vez de solo línea */
.nav-link:hover {
  color: var(--coral) !important;
  background: rgba(232, 149, 95, 0.08);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; 
  left: 50%; 
  right: 50%;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: all 0.3s var(--ease-bounce);
  transform: translateX(-50%);
}

.nav-link:hover::after, 
.nav-link.active::after { 
  left: 1rem; 
  right: 1rem; 
  width: auto;
}

.nav-link.active { 
  color: var(--coral) !important; 
}

/* Botón CTA con movimiento — CORREGIDO: hover a coral oscuro, no sage */
.btn-nav {
  background: var(--coral) !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.6rem !important;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-bounce);
    position: relative;
  overflow: hidden;
}

.btn-nav:hover {
  background: var(--coral-dark) !important;
  color: var(--white) !important; 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-md);
}

.btn-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-nav:hover::before {
  transform: translateX(100%);
}

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

/* ─── Page Header ─── */
.page-header {
  background: var(--ink);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Gradientes orgánicos animados en header */
.page-header::before {
  content: '';
  position: absolute; 
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(232, 149, 95, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(126, 184, 162, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(244, 208, 111, 0.08) 0%, transparent 40%);
  animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, -2%); }
}

.page-header-grid {
  position: absolute; 
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 149, 95, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 149, 95, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.page-header-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--butter);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex; 
  align-items: center; 
  gap: 0.75rem;
}

.page-header-label::before {
  content: '';
  width: 28px; 
  height: 2px;
  background: var(--butter);
  border-radius: 2px;
}

.page-header-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.15;
}

.page-header-title em { 
  font-style: italic; 
  color: var(--coral-soft); 
}

/* ─── Section Utilities ─── */
section { 
  padding: 5.5rem 0; 
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  width: 20px; 
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--ink);
}

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

.divider {
  width: 48px; 
  height: 3px;
  background: var(--gradient-joy);
  border-radius: 3px;
  margin: 1.25rem 0;
}

/* ─── Buttons con vida ─── */
.btn-primary-ob {
  display: inline-flex; 
  align-items: center; 
  gap: 0.55rem;
  background: var(--coral);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

/* Efecto de "ripple" sutil en hover */
.btn-primary-ob::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary-ob:hover {
  background: var(--coral-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-primary-ob:hover::before {
  transform: translateX(100%);
}

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

.btn-ghost-ob {
  display: inline-flex; 
  align-items: center; 
  gap: 0.55rem;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 2px solid rgba(232, 149, 95, 0.3);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s var(--ease-bounce);
}

.btn-ghost-ob:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(232, 149, 95, 0.06);
  transform: translateY(-2px);
}

/* ─── Cards con profundidad suave ─── */
.card-ob {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 149, 95, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-smooth);
  overflow: hidden;
}

.card-ob:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 149, 95, 0.2);
}

/* ─── Quote Block ─── */
.quote-block {
  border-left: 4px solid var(--coral);
  padding: 1.5rem 2rem;
  background: var(--gradient-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  margin: 2rem 0;
  position: relative;
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -0.2rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--coral);
  opacity: 0.2;
  font-family: var(--serif);
  line-height: 1;
}

/* ─── CTA Banner ─── */

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  color: var(--white);
  
  /* Gradiente principal: sage oscurecido → ink con tinte cálido */
  background: 
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(126, 184, 162, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(232, 149, 95, 0.18) 0%, transparent 55%),
    linear-gradient(145deg, #2a2e3e 0%, var(--ink) 50%, #252839 100%);
  
  box-shadow: 
    0 20px 60px rgba(45, 49, 66, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Grid decorativo sutil */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 208, 111, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 208, 111, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
}

/* Blob coral animado (misma técnica que tu header) */
.cta-banner::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: var(--coral);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: ctaBlobFloat 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ctaBlobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-20px, 15px) scale(1.08); }
  100% { transform: translate(10px, -10px) scale(0.95); }
}

/* Quote / texto principal */
.cta-banner p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.95);
  text-wrap: balance;
}

.cta-banner p em {
  color: var(--butter);
  font-style: italic;
  text-shadow: 0 0 30px rgba(244, 208, 111, 0.25);
}

/* Wrapper botones */
.cta-buttons-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ═── BOTÓN PRIMARIO: "Ver Servicios" ─── */
.btn-primary-ob {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--butter);
  color: var(--ink) !important;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 2.4rem;
  border: none;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 
    0 4px 15px rgba(244, 208, 111, 0.35),
    0 0 0 1px rgba(244, 208, 111, 0.2);
  transition: all 0.35s var(--ease-bounce);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 52px;
}

/* Shine effect en hover */
.btn-primary-ob::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary-ob:hover {
  background: #fff0a8;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 30px rgba(244, 208, 111, 0.45),
    0 0 0 1px rgba(244, 208, 111, 0.3);
  color: var(--ink) !important;
}

.btn-primary-ob:hover::before {
  transform: translateX(100%);
}

.btn-primary-ob:active {
  transform: translateY(-1px) scale(0.98);
}

/* ═── BOTÓN SECUNDARIO: "Conversemos" ─── */
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  color: var(--white) !important;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 2.4rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 2px solid rgba(244, 208, 111, 0.45);
  transition: all 0.35s var(--ease-bounce);
  cursor: pointer;
  min-height: 52px;
  position: relative;
  overflow: hidden;
}

/* Hover: se llena de butter */
.btn-cta-secondary:hover {
  background: var(--butter);
  border-color: var(--butter);
  color: var(--ink) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(244, 208, 111, 0.3);
}

.btn-cta-secondary:active {
  transform: translateY(-1px) scale(0.98);
}

/* ─── Responsive ─── */
@media (max-width: 576px) {
  .cta-banner {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
  }
  
  .cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .btn-primary-ob,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta-banner::after {
    animation: none;
  }
  .btn-primary-ob::before {
    display: none;
  }
}

/* ─── Footer ─── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 3rem 0 2rem;
  font-size: 0.82rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-joy);
}

footer a {
  color: var(--butter);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.25s var(--ease-bounce);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

footer a:hover {
  color: var(--coral);
  background: rgba(232, 149, 95, 0.1);
  transform: translateY(-3px);
}

/* ─── Badges y Chips ─── */
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-coral {
  background: rgba(232, 149, 95, 0.12);
  color: var(--coral);
}

.tag-sage {
  background: rgba(126, 184, 162, 0.15);
  color: var(--sage);
}

.tag-butter {
  background: rgba(244, 208, 111, 0.2);
  color: #B8860B;
}

/* ─── Animaciones ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fade-up { 
  animation: fadeUp 0.7s var(--ease-smooth) both; 
}

.fade-in { 
  animation: fadeIn 0.6s ease both; 
}

.slide-left { 
  animation: slideInLeft 0.7s var(--ease-smooth) both; 
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.7s; }

/* ─── Scroll Reveal base ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s var(--ease-smooth);
}

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

/* ─── Blob decorativos (para secciones) ─── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.blob-coral {
  background: var(--coral);
  width: 300px; 
  height: 300px;
}

.blob-sage {
  background: var(--sage);
  width: 250px; 
  height: 250px;
}

.blob-butter {
  background: var(--butter);
  width: 200px; 
  height: 200px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  section { 
    padding: 3.5rem 0; 
  }
  
  .cta-banner { 
    padding: 2rem; 
    text-align: center; 
    justify-content: center;
  }
  
  .cta-banner p { 
    font-size: 1.2rem; 
  }
  
  .page-header { 
    padding: 4rem 0 3rem; 
  }
  
  .btn-primary-ob,
  .btn-ghost-ob {
    padding: 0.8rem 1.6rem;
    font-size: 0.78rem;
  }
}

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