/*
  ============================================================
  FUTURIALS STATIC SITE — style.css
  Sistema de diseño: dark/premium, cinematográfico, minimalista
  Stack: HTML5 + CSS3 vanilla. Sin frameworks.
  ============================================================
  TOKENS DE COLOR — editar aquí para cambiar toda la paleta
  ============================================================
*/

:root {
  --color-bg:           #111826;
  --color-surface:      #1a2235;
  --color-border:       #2a3548;
  --color-text:         #ffffff;
  --color-muted:        #a8a8a8;
  --color-accent:       #ff7b00;
  --color-accent-hover: #ff7829;
  --color-accent-dim:   rgba(255, 123, 0, 0.12);
  --color-error:        #ff6b6b;

  --font-heading: 'Jost', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:  6px;
  --max-w:   1100px;
  --max-form: 520px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Dot pattern sutil */
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ============================================================
   LAYOUT
============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   TIPOGRAFÍA
============================================================ */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }

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

/* ============================================================
   BOTONES
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #ffffff;
}
.btn--primary:hover  { background-color: var(--color-accent-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background-color: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn--outline:hover { background-color: var(--color-accent-dim); }

.btn--full { width: 100%; }

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero__header { display: flex; align-items: center; }

.hero__logo { width: 180px; max-width: 100%; }

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 680px;
}

.hero__heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   SECCIONES GENÉRICAS
============================================================ */
.section { padding: 5rem 0; }

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

.section--form { background-color: var(--color-bg); }

.section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  display: inline-block;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.25rem;
}

/* ============================================================
   PILARES
============================================================ */
.pilares {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

.pilar { display: flex; flex-direction: column; gap: 1rem; }

.pilar__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.pilar__icon svg { width: 32px; height: 32px; }

.pilar__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.pilar__desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   FORMULARIO
============================================================ */
.form {
  max-width: var(--max-form);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.form__label--optional {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-border);
}

.form__input {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form__input::placeholder { color: var(--color-border); }

.form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}

.form__textarea {
  resize: vertical;
  min-height: 110px;
}

.form__error {
  color: var(--color-error);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ============================================================
   ESTADO AGRADECIMIENTO
============================================================ */
.gracias {
  max-width: var(--max-form);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  animation: fadeIn 0.35s ease;
}

.gracias[hidden] { display: none; }

.gracias__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
}

.gracias__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.gracias__text {
  color: var(--color-muted);
  line-height: 1.6;
}

.gracias__email {
  color: var(--color-text);
  font-weight: 500;
}

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

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo { width: 120px; }

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (max-width: 767px) {
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================
   WHATSAPP FLOTANTE
============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

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

/* ============================================================
   RESPONSIVE — ajustes adicionales
============================================================ */
@media (max-width: 767px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
}
