/* ------------------------------
  estilos principales - editable
  - Cambia variables en :root para personalizar colores/espacios
-------------------------------*/
:root{
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --color-text: #1d3557;         /* color principal del texto */
  --color-accent: #1d3557;       /* color del botón */
  --color-accent-boost: #2c5364; /* color hover (leve ajuste) */
  --gradient-top: #ffffff;       /* inicio del degradado (blanco) */
  --gradient-bottom: #f8f3e9;    /* final del degradado (arena claro) */
  --max-width: 920px;
  --radius-btn: 999px;
  --shadow: 0 8px 24px rgba(13, 30, 56, 0.12);
}

/* Reset muy simple */
* { box-sizing: border-box; }
html,body { height: 100%; margin: 0; padding: 0; }

/* Body y fondo con degradado blanco -> arena */
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: linear-gradient(180deg, var(--gradient-top) 0%, var(--gradient-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HERO centrado verticalmente */
.hero {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
}

/* Contenedor interior con ancho máximo */
.hero-inner {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 12px;
  background: rgba(255,255,255,0); /* transparente para conservar limpieza */
  /* entrada animada */
  transform: translateY(6px);
  opacity: 0;
  animation: fadeUp 700ms ease-out 120ms forwards;
}

/* Título */
.title {
  margin: 0 0 0.6rem 0;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.02;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-wrap: balance;
  /* leve animación independiente para desfasar */
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 700ms ease-out 0ms forwards;
}

/* Subtítulo */
.subtitle {
  margin: 0 0 1.8rem 0;
  color: #466880;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 700ms ease-out 60ms forwards;
}

/* Botón CTA */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: transform 220ms cubic-bezier(.2,.9,.3,1), background 220ms ease, box-shadow 220ms ease;
  will-change: transform;
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  animation: fadeUp 700ms ease-out 140ms forwards;
}

/* Icono pequeño dentro del botón */
.btn-icon {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Hover / focus styles */
.btn-cta:hover,
.btn-cta:focus {
  transform: translateY(-4px) scale(1.02);
  background: var(--color-accent-boost);
  box-shadow: 0 14px 34px rgba(13,30,56,0.12);
  outline: none;
}

/* Focus visible accesible */
.btn-cta:focus-visible {
  outline: 3px solid rgba(29,53,87,0.12);
  outline-offset: 4px;
}

/* Footer simple */
.site-footer {
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text);
  background: transparent;
  flex-shrink: 0;
}

/* Animaciones */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive: en pantallas pequeñas ajusta espaciado y tamaño */
@media (max-width: 520px) {
  .hero-inner { padding: 1.25rem; }
  .subtitle { margin-bottom: 1.25rem; }
  .btn-cta { padding: 0.85rem 1.6rem; font-size: 0.98rem; }
}

/* Pequeños helpers: cambiar fácilmente el aspecto */
