/* ============================================
   STYLES.CSS — Landing Page José González Bueno
   HTML/CSS/JS puro, sin frameworks
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: hsl(215, 80%, 48%);
  --color-primary-foreground: #fff;
  --color-accent: hsl(200, 70%, 50%);
  --color-background: hsl(210, 20%, 98%);
  --color-foreground: hsl(220, 30%, 15%);
  --color-card: #fff;
  --color-card-foreground: hsl(220, 30%, 15%);
  --color-muted: hsl(210, 20%, 96%);
  --color-muted-foreground: hsl(220, 10%, 50%);
  --color-border: hsl(214, 20%, 90%);
  --color-input: hsl(214, 20%, 90%);
  --color-surface-warm: hsl(35, 30%, 97%);
  --color-destructive: hsl(0, 84%, 60%);

  --gradient-hero: linear-gradient(135deg, hsl(215, 80%, 48%), hsl(200, 70%, 50%));

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);

  --container-max: 1140px;
  --container-padding: 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-foreground);
  background: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: var(--gradient-hero);
}

.text-muted { color: var(--color-muted-foreground); }
.text-foreground { color: var(--color-foreground); }
.text-lg { font-size: 1.125rem; }
.fw-600 { font-weight: 600; }
.italic { font-style: italic; }
.relative { position: relative; }
.mb-16 { margin-bottom: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

/* --- Section --- */
.section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

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

.section__header {
  max-width: 42rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section__label {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section__label--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section__title { margin-top: 0.75rem; }
.section__subtitle { color: var(--color-muted-foreground); margin-top: 1rem; font-size: 1.125rem; }

.section__cta {
  max-width: 42rem;
  margin: 3.5rem auto 0;
  text-align: center;
}

.section__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  border-radius: 50%;
  background: hsla(215, 80%, 48%, 0.05);
  filter: blur(60px);
  pointer-events: none;
}

.section__orbs { position: absolute; inset: 0; pointer-events: none; }
.section__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.section__orb--1 { top: -5rem; right: -5rem; width: 500px; height: 500px; background: hsla(215, 80%, 48%, 0.1); }
.section__orb--2 { bottom: -5rem; left: -5rem; width: 500px; height: 500px; background: hsla(215, 80%, 48%, 0.05); }

/* --- Grid --- */
.grid { display: grid; gap: 1.5rem; }
.grid--2col { grid-template-columns: repeat(1, 1fr); }
.grid--3col { grid-template-columns: repeat(1, 1fr); }
.grid--max4 { max-width: 64rem; margin-left: auto; margin-right: auto; }
.grid--max5 { max-width: 72rem; margin-left: auto; margin-right: auto; }

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

/* --- Card --- */
.card {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}

.card:hover { box-shadow: var(--shadow-md); }

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

.card--hover:hover {
  border-color: hsla(215, 80%, 48%, 0.3);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: hsla(215, 80%, 48%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card--center .card__icon { margin-left: auto; margin-right: auto; }

.card__icon--gradient {
  background: var(--gradient-hero);
  color: var(--color-primary-foreground);
}

.card__title { font-weight: 600; font-family: var(--font-sans); }
.card--center .card__title { font-size: 1rem; }
.card__desc { color: var(--color-muted-foreground); margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; }
.card--center .card__desc { font-size: 0.875rem; }

/* Service cards */
.card--service {
  display: flex;
  flex-direction: column;
}

.card--service.card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  box-shadow: 0 0 0 1px hsla(215, 80%, 48%, 0.2);
}

.card__details { margin-top: 1rem; font-size: 0.875rem; }
.card__details > div { margin-bottom: 0.75rem; }

.card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.card__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Step cards */
.card--step {
  position: relative;
}

.card__step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card__step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: hsla(215, 80%, 48%, 0.1);
}

.card__checklist {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.5;
}

.card__checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232180d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Stat */
.stat { text-align: center; }
.stat__icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-primary-foreground);
}
.stat__value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
}
.stat__label { color: var(--color-muted-foreground); margin-top: 0.5rem; font-size: 0.875rem; }

/* Reasons */
.reasons {
  max-width: 48rem;
  margin: 0 auto;
}
.reasons__title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}
.reasons__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.reasons__icon {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}
.reasons__item span {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.tag--gradient {
  background: var(--gradient-hero);
  color: var(--color-primary-foreground);
}

.tag--secondary {
  background: var(--color-muted);
  color: var(--color-muted-foreground);
}

.badge {
  display: inline-block;
  background: hsla(215, 80%, 48%, 0.1);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

/* --- Link Arrow --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.2s;
}

.link-arrow:hover { gap: 0.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: opacity 0.2s, background-color 0.2s, border-color 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn--full { width: 100%; padding: 1rem; font-size: 1rem; }

.btn--gradient {
  background: var(--gradient-hero);
  color: var(--color-primary-foreground);
  box-shadow: 0 4px 12px hsla(215, 80%, 48%, 0.25);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

.btn--outline {
  border: 2px solid var(--color-border);
  color: var(--color-foreground);
  background: transparent;
}

.btn--outline:hover { background: var(--color-muted); }

/* --- Dot --- */
.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot--primary { background: var(--color-primary); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .navbar__inner { height: 5rem; }
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-foreground);
  letter-spacing: -0.01em;
}

.navbar__desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar__desktop { display: flex; }
}

.navbar__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
}

.navbar__link:hover { color: var(--color-foreground); }

.navbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-foreground);
}

@media (min-width: 768px) {
  .navbar__toggle { display: none; }
}

.navbar__mobile {
  display: none;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}

.navbar__mobile.open { display: block; }

.navbar__mobile-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  gap: 0.75rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__orb--1 {
  top: -10rem;
  right: -10rem;
  width: 600px;
  height: 600px;
  background: hsla(215, 80%, 48%, 0.05);
}

.hero__orb--2 {
  bottom: -10rem;
  left: -10rem;
  width: 500px;
  height: 500px;
  background: hsla(200, 70%, 50%, 0.05);
}

.hero__content {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .hero__content { padding-top: 8rem; padding-bottom: 6rem; }
}

.hero__inner { max-width: 48rem; }

.hero__title { margin-top: 1rem; }

.hero__subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  max-width: 40rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero__subtitle { font-size: 1.25rem; }
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
}

.hero__trust {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-muted-foreground);
}

/* ============================================
   FORMS
   ============================================ */
.form-wrapper {
  max-width: 40rem;
  margin: 0 auto;
}

.form {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form { padding: 2.5rem; }
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form__input,
.form__textarea,
.form select.form__input {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--color-input);
  background: var(--color-background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: box-shadow 0.2s;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-muted-foreground);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsla(215, 80%, 48%, 0.3);
}

.form__textarea { resize: none; }

.form select.form__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.form-success {
  text-align: center;
  background: var(--color-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 3rem;
}

.form-success__icon {
  color: var(--color-primary);
  margin: 0 auto 1rem;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.form-success__desc {
  color: var(--color-muted-foreground);
  margin-top: 0.75rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

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

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  transition: color 0.2s;
}

.footer__link:hover { color: var(--color-foreground); }

/* ============================================
   ANIMATIONS
   ============================================ */
@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(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.animate-float { animation: float 3s ease-in-out infinite; }

.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-800 { animation-delay: 0.8s; }

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
