/* ==========================================================================
   Click Nova - Agencia de Marketing
   Stylesheet: CSS3 con Variables, Tipografía Outfit & Inter, Dividores Curvos SVG
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  /* Color Palette taken from logo */
  --bg-warm-white: #FDFCFA;
  --bg-cream: #FFF6E9;
  --bg-cream-light: #FFFBF5;
  --color-turquoise: #2FA8C4;
  --color-turquoise-light: #64D3EB;
  --color-petroleum: #0E5A6B;
  --color-petroleum-dark: #093E4A;
  --color-orange: #F5A623;
  --color-orange-hover: #E09418;
  --color-yellow: #FFD166;
  
  /* Text */
  --text-main: #123039;
  --text-muted: #5C7883;
  --text-light: #8BA2AB;
  --text-white: #FFFFFF;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows (Soft & Colored) */
  --shadow-sm: 0 4px 14px rgba(14, 90, 107, 0.05);
  --shadow-md: 0 10px 30px rgba(14, 90, 107, 0.08);
  --shadow-lg: 0 20px 45px rgba(14, 90, 107, 0.12);
  --shadow-orange: 0 12px 30px rgba(245, 166, 35, 0.35);
  --shadow-turquoise: 0 12px 30px rgba(47, 168, 196, 0.30);

  /* Border Radii */
  --radius-pill: 9999px;
  --radius-card: 28px;
  --radius-card-lg: 36px;
  --radius-input: 16px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

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

img, svg {
  display: block;
  max-width: 100%;
}

/* Focused elements */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 8px;
}

/* --- Gradient Utilities --- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-turquoise) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--color-turquoise) 0%, var(--color-orange) 100%);
}

.gradient-bg-reverse {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-turquoise) 100%);
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 90px;
  padding-bottom: 90px;
  position: relative;
}

/* Background Bands */
.bg-warm-white {
  background-color: var(--bg-warm-white);
}

.bg-cream {
  background-color: var(--bg-cream);
}

.bg-petroleum {
  background-color: var(--color-petroleum);
  color: var(--text-white);
}

/* --- Curved Section Dividers --- */
.curve-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.curve-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

@media (min-width: 768px) {
  .curve-divider svg {
    height: 90px;
  }
}

.curve-divider.top {
  top: 0;
  transform: translateY(-99%);
}

.curve-divider.bottom {
  bottom: 0;
  transform: translateY(99%);
}

.fill-warm-white { fill: var(--bg-warm-white); }
.fill-cream { fill: var(--bg-cream); }
.fill-petroleum { fill: var(--color-petroleum); }

/* --- Section Titles & Badges --- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(47, 168, 196, 0.12);
  color: var(--color-petroleum);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-badge-orange {
  background: rgba(245, 166, 35, 0.15);
  color: var(--color-petroleum);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-bounce);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-petroleum-dark);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(245, 166, 35, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-petroleum);
  border-color: var(--color-turquoise);
}

.btn-secondary:hover {
  background-color: rgba(47, 168, 196, 0.1);
  transform: translateY(-3px);
}

.btn-white {
  background-color: var(--text-white);
  color: var(--color-petroleum-dark);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
  background-color: #F8F9FA;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   SECTION 1: HEADER (Floating Pill)
   ========================================================================== */
.header-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
}

.header-pill {
  width: 100%;
  max-width: 1100px;
  background: rgba(253, 252, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(14, 90, 107, 0.08);
  transition: all var(--transition-fast);
}

.header-pill.scrolled {
  box-shadow: 0 14px 40px rgba(14, 90, 107, 0.14);
  background: rgba(253, 252, 250, 0.95);
}

.header-logo img {
  height: 42px;
  width: auto;
}

.header-nav {
  display: none;
}

@media (min-width: 992px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: color var(--transition-fast);

}

.nav-link:hover {
  color: var(--color-turquoise);
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(47, 168, 196, 0.1);
  color: var(--color-petroleum);
  cursor: pointer;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Overlay Menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 90, 107, 0.4);
  backdrop-filter: blur(8px);
  z-index: 999;
}

.mobile-menu-card {
  position: fixed;
  top: 90px;
  left: 20px;
  right: 20px;
  background: var(--bg-warm-white);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
}

/* Bounce animation for Alpine x-show */
.bounce-menu-enter-active {
  animation: bounceMenu 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bounce-menu-leave-active {
  animation: bounceMenu 0.3s ease-in reverse;
}

@keyframes bounceMenu {
  0% { opacity: 0; transform: translateY(-30px) scale(0.9); }
  70% { transform: translateY(8px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   SECTION 2: HERO
   ========================================================================== */
.hero-section {
  padding-top: 150px;
  padding-bottom: 110px;
  position: relative;
  overflow: hidden;
}

/* Animated Blurred Background Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 450px;
  height: 450px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--color-turquoise-light) 0%, rgba(47,168,196,0) 70%);
  animation: floatBlob 14s infinite alternate ease-in-out;
}

.blob-2 {
  width: 500px;
  height: 500px;
  top: 10%;
  right: -150px;
  background: radial-gradient(circle, var(--color-yellow) 0%, rgba(245,166,35,0) 70%);
  animation: floatBlob 18s infinite alternate-reverse ease-in-out;
}

.blob-3 {
  width: 350px;
  height: 350px;
  bottom: 0;
  left: 30%;
  background: radial-gradient(circle, rgba(245,166,35,0.3) 0%, rgba(255,255,255,0) 70%);
  animation: floatBlob 12s infinite alternate ease-in-out;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-paragraph {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

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

/* Hero Illustration Composite */
.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-preview {
  width: 100%;
  max-width: 480px;
  background: var(--bg-warm-white);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform 0.3s ease;
}

.hero-card-preview.pulse-impact {
  transform: scale(1.02);
  box-shadow: 0 25px 60px rgba(245, 166, 35, 0.25);
}

/* Floating Parallax Metric Badges */
.floating-metric {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite alternate;
}

.floating-metric-1 {
  top: -20px;
  right: -10px;
}

.floating-metric-2 {
  bottom: -25px;
  left: -20px;
  animation-delay: -3s;
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-14px); }
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Simulated Cursor in Hero */
.simulated-cursor {
  position: absolute;
  width: 36px;
  height: 36px;
  bottom: 30%;
  right: 25%;
  z-index: 10;
  pointer-events: none;
  transition: transform 0.4s ease-out;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.simulated-cursor.is-clicking {
  transform: scale(0.85) translate(-4px, 4px);
}

/* ==========================================================================
   SECTION 3: MARQUESINA DE SERVICIOS
   ========================================================================== */
.marquee-section {
  background-color: var(--color-turquoise);
  color: var(--text-white);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 3;
  box-shadow: 0 10px 25px rgba(47, 168, 196, 0.25);
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marquee-star {
  width: 20px;
  height: 20px;
  fill: var(--color-yellow);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION 4: PROBLEMA -> SOLUCIÓN
   ========================================================================== */
.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

@media (min-width: 992px) {
  .problem-solution-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ps-card {
  background: var(--bg-warm-white);
  border-radius: var(--radius-card-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.03);
}

.ps-card.solution-side {
  background: #FFFFFF;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(47, 168, 196, 0.2);
  position: relative;
}

.ps-card.solution-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-turquoise), var(--color-orange));
  border-radius: var(--radius-card-lg) var(--radius-card-lg) 0 0;
}

.ps-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.ps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ps-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,0.02);
  transition: transform var(--transition-fast);
}

.solution-side .ps-item {
  background: rgba(47, 168, 196, 0.05);
}

.ps-item:hover {
  transform: translateX(6px);
}

.ps-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-muted {
  background: #E8EEF0;
  color: #8CA0A8;
}

.icon-active {
  background: var(--color-orange);
  color: var(--color-petroleum-dark);
}

/* ==========================================================================
   SECTION 5: SERVICIOS (6 Tarjetas Elevadas)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 50px;
}

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

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-warm-white);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-bounce);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 168, 196, 0.2);
}

.service-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform var(--transition-bounce);
}

.service-card:hover .service-icon-circle {
  transform: scale(1.18);
}

.circle-1 { background: rgba(47, 168, 196, 0.15); color: var(--color-turquoise); }
.circle-2 { background: rgba(245, 166, 35, 0.18); color: var(--color-orange); }
.circle-3 { background: rgba(255, 209, 102, 0.25); color: #D69700; }
.circle-4 { background: rgba(14, 90, 107, 0.12); color: var(--color-petroleum); }
.circle-5 { background: rgba(224, 122, 95, 0.18); color: #E07A5F; }
.circle-6 { background: rgba(56, 198, 229, 0.18); color: #147B93; }

.service-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.service-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-turquoise);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.service-card:hover .service-link {
  gap: 12px;
  color: var(--color-orange);
}

/* ==========================================================================
   SECTION 6: COMPARADOR ANTES / DESPUÉS (Pieza Central Interactiva)
   ========================================================================== */
.comparator-wrapper {
  margin-top: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.comparator-box {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  cursor: ew-resize;
  border: 4px solid #FFFFFF;
}

@media (max-width: 600px) {
  .comparator-box {
    height: 380px;
  }
}

/* Images Layers */
.comparator-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparator-layer.before-layer {
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  z-index: 1;
}

.comparator-layer.after-layer {
  background: linear-gradient(135deg, #FFF6E9 0%, #E6F7FA 100%);
  z-index: 2;
  overflow: hidden;
}

/* Mockup UI Designs inside layers */
.mockup-card {
  width: 85%;
  max-width: 720px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.before-layer .mockup-card {
  opacity: 0.85;
  filter: grayscale(0.5);
}

.after-layer .mockup-card {
  border: 2px solid var(--color-turquoise-light);
  box-shadow: 0 20px 45px rgba(47, 168, 196, 0.2);
}

/* Handle Bar */
.comparator-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #FFFFFF;
  z-index: 10;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.comparator-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-petroleum-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.5);
  font-weight: bold;
}

/* Dynamic Metrics Bar below slider */
.comparator-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .comparator-metrics {
    grid-template-columns: 1fr;
  }
}

.metric-card-dynamic {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
}

.metric-val {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--color-petroleum);
}

.metric-lbl {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   SECTION 7: CÓMO TRABAJAMOS (Timeline Vertical)
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0 auto;
  padding: 20px 0;
}

/* Central Line */
.timeline-line-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 6px;
  background: rgba(14, 90, 107, 0.1);
  border-radius: 3px;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .timeline-line-bg {
    left: 50%;
  }
}

.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 24px;
  width: 6px;
  height: 0%;
  background: linear-gradient(180deg, var(--color-turquoise) 0%, var(--color-orange) 100%);
  border-radius: 3px;
  transform: translateX(-50%);
  transition: height 0.1s linear;
}

@media (min-width: 768px) {
  .timeline-line-progress {
    left: 50%;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .timeline-item {
    flex-direction: row;
    align-items: center;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.timeline-content {
  width: 100%;
  padding-left: 70px;
}

@media (min-width: 768px) {
  .timeline-content {
    width: 45%;
    padding-left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    padding-right: 40px;
    text-align: right;
  }

  .timeline-item:nth-child(even) .timeline-content {
    padding-left: 40px;
    text-align: left;
  }
}

.timeline-card {
  background: var(--bg-warm-white);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
}

.timeline-node {
  position: absolute;
  top: 0;
  left: 24px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-petroleum-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: var(--shadow-orange);
  z-index: 3;
}

@media (min-width: 768px) {
  .timeline-node {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ==========================================================================
   SECTION 8: RESULTADOS (Banda Cream con Círculos Animados)
   ========================================================================== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

@media (min-width: 992px) {
  .results-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.result-circle-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ring-container {
  position: relative;
  width: 170px;
  height: 170px;
  margin-bottom: 20px;
}

.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  stroke: rgba(14, 90, 107, 0.08);
  stroke-width: 10;
}

.progress-ring-circle {
  stroke: var(--color-turquoise);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.ring-2 .progress-ring-circle { stroke: var(--color-orange); }
.ring-3 .progress-ring-circle { stroke: var(--color-yellow); }
.ring-4 .progress-ring-circle { stroke: var(--color-petroleum); }

.ring-text-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--text-main);
}

/* ==========================================================================
   SECTION 9: TESTIMONIOS (Tarjetas Rotadas & Superpuestas)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 60px;
}

@media (min-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  border-radius: var(--radius-card-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform var(--transition-bounce);
}

.testimonial-card:hover {
  transform: translateY(-8px) rotate(0deg) !important;
  box-shadow: var(--shadow-lg);
}

.card-style-1 {
  background: #FFFFFF;
  transform: rotate(-2deg);
}

.card-style-2 {
  background: var(--bg-cream);
  transform: rotate(2deg);
}

.card-style-3 {
  background: rgba(47, 168, 196, 0.1);
  transform: rotate(-1deg);
}

.stars-row {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--color-orange);
}

.testimonial-text {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: var(--text-main);
  font-style: italic;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-petroleum);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.author-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 10: CTA FINAL (Gradiente Ancho Completo)
   ========================================================================== */
.cta-banner-wrapper {
  margin-top: 40px;
  margin-bottom: 40px;
}

.cta-banner {
  background: linear-gradient(135deg, var(--color-turquoise) 0%, var(--color-orange) 100%);
  border-radius: var(--radius-card-lg);
  padding: 70px 40px;
  text-align: center;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-turquoise);
}

.cta-title {
  color: var(--text-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3.5rem;
  }
}

.cta-desc {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 36px auto;
  opacity: 0.95;
}

/* Decorative Spark SVG in CTA */
.cta-spark-vector {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
}

.spark-top-left { top: 20px; left: 30px; width: 80px; }
.spark-bottom-right { bottom: 20px; right: 30px; width: 100px; }

/* ==========================================================================
   SECTION 11: CONTACTO (Formulario Validado)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-top: 50px;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card-form {
  background: #FFFFFF;
  border-radius: var(--radius-card-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.03);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-light);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: var(--radius-input);
  border: 2px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 1rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

textarea.form-control {
  padding-left: 20px;
  resize: vertical;
  min-height: 120px;
}

.form-control:focus {
  border-color: var(--color-turquoise);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(47, 168, 196, 0.15);
}

.form-control.is-invalid {
  border-color: #E53E3E;
  background: #FFF5F5;
}

.error-msg {
  color: #E53E3E;
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 600;
}

.success-banner {
  background: #C6F6D5;
  color: #22543D;
  border-radius: var(--radius-input);
  padding: 20px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 20px;
}

/* ==========================================================================
   SECTION 12: FOOTER (Azul Petróleo #0E5A6B)
   ========================================================================== */
.footer-section {
  background-color: var(--color-petroleum);
  color: #FFFFFF;
  padding-top: 100px;
  padding-bottom: 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

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

.footer-logo img {
  height: 48px;
  margin-bottom: 20px;

}

.footer-desc {
  color: #A0BEC8;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #A0BEC8;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: #81A2AD;
  font-size: 0.9rem;
}

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

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: transform var(--transition-bounce);
  animation: pulseGreen 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Reveal Observer Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
