/* ==========================================
   Altea Landing v2 — Clean & Luminoso
   ========================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #2C5F7C;
  --primary-dark: #1d4259;
  --primary-10:   rgba(44, 95, 124, 0.08);
  --primary-20:   rgba(44, 95, 124, 0.15);
  --accent:       #D17B54;
  --accent-dark:  #b8673f;
  --bg:           #F8F6F4;
  --white:        #ffffff;
  --text:         #111827;
  --text-2:       #374151;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --radius:       0.75rem;
  --radius-lg:    1.25rem;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 28px rgba(0,0,0,0.09);
  --shadow-lg:    0 24px 64px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Container --- */
.c {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-fill        { background: var(--accent); color: var(--white); }
.btn-fill:hover  { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(209,123,84,0.35); }
.btn-outline     { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-dark  { background: rgba(255,255,255,0.12); color: var(--white); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.22); }
.btn-lg          { padding: 0.9rem 2.25rem; font-size: 1.0625rem; border-radius: 0.875rem; }
.btn-full        { width: 100%; }

/* ==========================================
   NAV
   ========================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.nav__logo svg { flex-shrink: 0; }
.nav__cta { font-size: 0.875rem; }

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  text-align: center;
  overflow: hidden;
  background: var(--white);
}

/* Dot grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(44,95,124,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
}

.hero > .c { position: relative; z-index: 1; max-width: 800px; }

/* Animated gradient blobs */
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
}
.hero__blob--1 {
  width: 700px;
  height: 520px;
  top: -180px;
  left: -80px;
  background: radial-gradient(ellipse, rgba(44,95,124,0.13) 0%, transparent 68%);
  filter: blur(60px);
  animation: blob1 14s ease-in-out infinite;
}
.hero__blob--2 {
  width: 620px;
  height: 480px;
  top: -120px;
  right: -130px;
  background: radial-gradient(ellipse, rgba(93,168,208,0.10) 0%, transparent 66%);
  filter: blur(70px);
  animation: blob2 18s ease-in-out infinite;
}
.hero__blob--3 {
  width: 420px;
  height: 380px;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(44,95,124,0.07) 0%, transparent 70%);
  filter: blur(50px);
  animation: blob3 11s ease-in-out infinite;
}

@keyframes blob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(55px, 35px) scale(1.08); }
}
@keyframes blob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-45px, 28px) scale(1.06); }
}
@keyframes blob3 {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%       { transform: translateX(-50%) scale(1.18); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-10);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border-radius: 99px;
  margin-bottom: 2rem;
  border: 1px solid var(--primary-20);
}

/* Pulsing live-dot in badge */
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  flex-shrink: 0;
}
.hero__badge-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.35);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.75); opacity: 0.9; }
  100% { transform: scale(2.2);  opacity: 0; }
}
.hero__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.375rem;
}
.hero__title .highlight {
  background: linear-gradient(135deg, var(--primary) 20%, #5da8d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero__trust {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hero__trust span { display: flex; align-items: center; gap: 0.3rem; }
.hero__trust-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* ==========================================
   FEATURES
   ========================================== */
.features {
  padding: 6rem 0;
  background: var(--bg);
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.875rem;
}
.section-title {
  font-size: clamp(1.625rem, 3.5vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
}

.features__header {
  margin-bottom: 4rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}
.feature-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
.how {
  padding: 6rem 0;
  background: var(--white);
}
.how__header {
  text-align: center;
  margin-bottom: 4rem;
}
.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
/* Connecting line between steps */
.how__steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.how__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}
.how__step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1.375rem;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--primary);
}
.how__step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.how__step-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================
   PRICING
   ========================================== */
.pricing {
  padding: 6rem 0;
  background: var(--bg);
}
.pricing__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.pricing__card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Accent top border */
.pricing__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e8a07a);
}
.pricing__badge {
  display: inline-block;
  background: var(--primary-10);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.875rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
}
.pricing__amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.125rem;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.pricing__currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-2);
  padding-top: 0.75rem;
}
.pricing__number {
  font-size: 5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.05em;
}
.pricing__period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.pricing__sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1.75rem;
}
.pricing__list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2.25rem;
}
.pricing__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.pricing__list li svg { flex-shrink: 0; color: var(--primary); }
.pricing__trust {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   FINAL CTA
   ========================================== */
.cta-section {
  padding: 6rem 0;
  background: var(--primary);
  text-align: center;
}
.cta-section .c { max-width: 640px; }
.cta-section__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.cta-section__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.cta-section__trust {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.footer__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 220px;
}
.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer__col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer__col ul li a:hover { color: var(--white); }
.footer__bottom {
  padding: 1.375rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

/* ==========================================
   LEGAL PAGES
   ========================================== */
.legal-hero {
  background: var(--white);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.legal-hero__tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.legal-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.legal-hero__date { font-size: 0.9rem; color: var(--text-muted); }
.legal-body {
  padding: 3.5rem 0 5rem;
  max-width: 700px;
  margin: 0 auto;
}
.legal-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.625rem;
}
.legal-body ul, .legal-body ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--primary); text-decoration: underline; }

/* ==========================================
   TYPING EFFECT
   ========================================== */
.typing-wrap {
  display: inline-block;
  white-space: nowrap;
}
.typing-text {
  display: inline;
}
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--primary);
  -webkit-text-fill-color: initial;
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 2px;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */

/* Cards / elementos individuales — scale + fade */
[data-animate] {
  opacity: 0;
  transform: scale(0.9) translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate].visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
[data-animate][data-delay="1"] { transition-delay: 0.05s; }
[data-animate][data-delay="2"] { transition-delay: 0.15s; }
[data-animate][data-delay="3"] { transition-delay: 0.25s; }

/* Headers de sección — slide suave sin scale */
.section-header-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-header-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   ENHANCED INTERACTIONS
   ========================================== */

/* Card hover glow */
.feature-card:hover {
  box-shadow: 0 0 0 1px var(--primary-20), var(--shadow-md);
  transform: translateY(-4px);
}

/* CTA section subtle mesh */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-section > .c { position: relative; z-index: 1; }

/* Button shine effect */
.btn-fill {
  position: relative;
  overflow: hidden;
}
.btn-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.45s ease;
  pointer-events: none;
}
.btn-fill:hover::after {
  left: 110%;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .hero   { padding: 4.5rem 0 4rem; }
  .features, .how, .pricing, .cta-section { padding: 4rem 0; }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .how__steps::before { display: none; }
  .how__step { align-items: flex-start; text-align: left; flex-direction: row; gap: 1rem; }
  .how__step-num { flex-shrink: 0; margin-bottom: 0; }
  .how__step-body { padding-top: 0.375rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .pricing__card { padding: 2rem 1.5rem; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { text-align: center; }
}
