/* ========================================
   VARIABLES - Edita colores y estilos aquí
   ======================================== */
:root {
  --color-bg: #f5f8fc;
  --color-text: #1a2332;
  --color-white: #ffffff;
  --color-primary: #0066cc;
  --color-accent: #00b8d4;
  --color-muted: #6b7b8f;
  --color-border: #dde4ed;
  --color-light-bg: rgba(210, 230, 250, 0.3);
  --radius: 0.5rem;
  --shadow: 0 10px 40px -10px rgba(0, 102, 204, 0.3);
  --shadow-soft: 0 4px 20px -2px rgba(0, 102, 204, 0.1);
}

/* Fade animations for rotating word */
.fade-in {
  animation: fadeWordIn 0.4s ease-out forwards;
}
.fade-out {
  animation: fadeWordOut 0.4s ease-out forwards;
}
@keyframes fadeWordIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeWordOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ========================================
   RESET
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ========================================
   UTILIDADES
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  box-shadow: var(--shadow);
}

.btn:hover { opacity: 0.9; }
.btn--full { width: 100%; height: 3rem; font-size: 1rem; }
.btn--large { height: 3.5rem; padding: 0 3rem; font-size: 1.125rem; line-height: 3.5rem; }

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  background: linear-gradient(135deg, var(--color-bg), #e8f0fa);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.hero__title .accent { color: var(--color-accent); }

.hero__title .underline {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

/* ========================================
   FORMULARIO
   ======================================== */
.form-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 102, 204, 0.1);
  max-width: 28rem;
  margin: 0 auto;
  animation: slideIn 0.8s ease-out;
}

.form-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }

.field input,
.field select {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid rgba(0, 102, 204, 0.2);
  border-radius: var(--radius);
  background: rgba(245, 248, 252, 0.6);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus { outline: none; border-color: var(--color-primary); }

.field__phone { display: flex; gap: 0.5rem; }
.field__phone select { width: 140px; flex-shrink: 0; }
.field__phone input { flex: 1; }

/* ========================================
   LOGOS
   ======================================== */
.logos {
  padding: 4rem 1rem;
  background: var(--color-light-bg);
  overflow: hidden;
}

.logos__track {
  display: flex;
  animation: scroll 38s linear infinite;
}

.logos__item {
  flex-shrink: 0;
  width: 12rem;
  height: 6rem;
  margin: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  transition: filter 0.3s;
}

.logos__item:hover { filter: grayscale(0); }
.logos__item img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0.6; transition: opacity 0.3s; }
.logos__item:hover img { opacity: 1; }
.logos__item--small img { max-width: 120px; max-height: 60px; }
.logos__item--dark img { filter: brightness(0.3); }

/* ========================================
   CÓMO FUNCIONA
   ======================================== */
.steps {
  padding: 5rem 1rem;
  background: var(--color-bg);
}

.steps__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.steps__card {
  background: var(--color-white);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 102, 204, 0.1);
  max-width: 56rem;
  margin: 0 auto;
}

.steps__list { list-style: none; margin-bottom: 2.5rem; }

.steps__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.steps__list li:last-child { margin-bottom: 0; }

.steps__check {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.steps__cta {
  text-align: center;
}

.steps__cta p {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ========================================
   TESTIMONIOS
   ======================================== */
.testimonials {
  padding: 5rem 1rem;
  background: var(--color-light-bg);
}

.testimonials__header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials__header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.testimonials__header p {
  font-size: 1.25rem;
  color: var(--color-muted);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(0, 102, 204, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.3s;
}

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

.card__quote {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.card blockquote {
  flex-grow: 1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.card__author img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

.card__author .name { font-weight: 600; }
.card__author .role { font-size: 0.875rem; color: var(--color-muted); }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-muted);
}

/* ========================================
   TOAST (notificación)
   ======================================== */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid #22c55e;
  transform: translateX(120%);
  transition: transform 0.3s;
  z-index: 1000;
}

.toast.show { transform: translateX(0); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 640px) {
  .steps__card { padding: 3rem; }
}

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

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { text-align: left; }
  .form-card { margin: 0; }
  .testimonials__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}
