@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --primary-color: #0c8b72;
  --primary-dark: #0b5b57;
  --accent-color: #f6b100;
  --dark-color: #0b2731;
  --muted-color: #5d6a72;
  --surface-color: #ffffff;
  --glass-color: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glow-mint: rgba(20, 179, 150, 0.5);
  --glow-amber: rgba(246, 177, 0, 0.32);
  --gradient-hero: linear-gradient(10deg, rgba(12, 139, 114, 0.685), rgba(7, 30, 34, 0.473));
}

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #f7fafb 0%, #f1f6f4 100%);
  color: var(--muted-color);
  font-family: 'Manrope', 'Roboto', sans-serif;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  color: var(--dark-color);
}

a {
  text-decoration: none;
}

.section {
  padding: 20px 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 44px;
}

.section-title {
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.section-subtitle {
  color: var(--muted-color);
  margin: 0 auto;
  max-width: 740px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 124, 102, 0.329);
  color: #13684e;
  font-weight: 800;
  letter-spacing: 0.8px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.eyebrow-pill-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 124, 102, 0.329);
  color: #e6f5f0;
  font-weight: 800;
  letter-spacing: 0.8px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #14b396, #0c8b72);
  border: none;
  color: #fff;
  padding: 14px 26px;
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(12, 139, 114, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 22px 60px rgba(12, 139, 114, 0.42);
}

.btn-hero-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 45px 0 45px;
  background: var(--gradient-hero), url('/app/assets/images/Autofondo.svg') center top/cover no-repeat;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.25));
}

.hero-section::before {
  content: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(246, 177, 0, 0.38), transparent 65%);
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
}

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

.hero-section h1 {
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: clamp(2.6rem, 3.6vw, 3.8rem);
  color: #fff;
}

.hero-section .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-trust {
  max-width: 980px;
  margin: 0 auto;
}

.countdown-card {
  margin: 0 auto;
  padding: 6px 4px 6px;
  max-width: 720px;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.countdown-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.countdown-time {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  margin: 6px 0 0;
  padding: 6px 2px;
  border-radius: 8px;
}

.count-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 100%;
  background: linear-gradient(140deg, rgba(12, 139, 114, 0.16), rgba(11, 27, 33, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 8px 8px;
  min-width: 104px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.count-box span {
  display: block;
  font-size: clamp(1.6rem, 1.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.6px;
}

.count-box small {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.hero-trust .hero-pill {
  height: 100%;
}

.hero-pill i {
  font-size: 1.1rem;
  color: var(--accent-color);
}

.hero-pill small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero-pill strong {
  color: #fff;
  font-weight: 800;
}

.feature-section {
  background: linear-gradient(180deg, #f9fbff 0%, #f5f7fb 100%);
}

.feature-card {
  background: var(--surface-color);
  border: 1px solid rgba(12, 139, 114, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(15, 47, 54, 0.08);
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(15, 47, 54, 0.12);
}

.feature-media {
  width: 100%;
  height: 150px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.36) 100%);
}

.feature-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 139, 114, 0.9);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1;
}

.timeline-section {
  background: radial-gradient(circle at 16% 20%, rgba(12, 139, 114, 0.12), transparent 38%), #f0f6f4;
  border-top: 1px solid rgba(0, 0, 0, 0.02);
}

.timeline-v2 {
  position: relative;
  padding: 28px 0;
}

.timeline-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(12, 139, 114, 0.4), rgba(12, 139, 114, 0.1));
  border-radius: 12px;
}

.timeline-v2-item {
  position: relative;
  width: 50%;
  padding: 26px 50px 16px;
}

.timeline-v2-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-v2-item:nth-child(even) {
  left: 50%;
}

.timeline-v2-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, #0c8b72, #0b5b57);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 3px solid rgba(255, 255, 255, 0.92);
  z-index: 1;
  box-shadow: 0 14px 30px rgba(12, 139, 114, 0.28);
}

.timeline-v2-item:nth-child(odd) .timeline-v2-icon {
  right: -22px;
}

.timeline-v2-item:nth-child(even) .timeline-v2-icon {
  left: -22px;
}

.timeline-v2-content {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
  padding: 20px 22px;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(11, 39, 49, 0.12);
  border: 1px solid rgba(12, 139, 114, 0.12);
}

.timeline-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.timeline-v2-item .badge {
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  background: linear-gradient(120deg, #2f3b46, #0b2731);
  color: #f4f8fb;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(11, 39, 49, 0.16);
}

.timeline-v2-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--dark-color);
}

.video-section {
  background: var(--surface-color);
}

.video-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(12, 139, 114, 0.08);
  box-shadow: 0 18px 45px rgba(15, 47, 54, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(15, 47, 54, 0.12);
}

.video-card a {
  position: relative;
  display: block;
}

.video-card a::after {
  content: "Ver historia";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(12, 139, 114, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

.video-card:hover a::after {
  opacity: 1;
  transform: translateY(0);
}

.video-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.video-card .card-body {
  padding: 22px;
}

.video-card .card-title {
  font-weight: 800;
  color: var(--dark-color);
}

.video-card .card-text {
  color: var(--muted-color);
}

@media (max-width: 992px) {
  .hero-section {
    padding: 100px 0 90px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 90px 0 70px;
  }
  .cta-buttons {
    justify-content: center;
  }
  .hero-trust {
    display: none; /* ocultar las pills en móvil para evitar solaparse con el fondo */
  }
  .countdown-time {
    gap: 8px;
  }
  .timeline-v2::before {
    left: 16px;
  }
  .timeline-v2-item {
    width: 100%;
    padding: 20px 0 0 58px;
    text-align: left !important;
    left: 0 !important;
  }
  .timeline-v2-icon {
    left: 0 !important;
    right: auto !important;
  }
}
