/* =========================================================
   GUÍA BBVA — Landing page
   styles.css
   Paleta tomada de la portada de la guía (Etapa 4).
   ========================================================= */

/* ---------- Reset básico ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, p, ul, ol, blockquote, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Variables de diseño (PROVISIONAL) ---------- */
:root {
  /* Paleta propia tomada de la portada de la guía — no copia la identidad de BBVA */
  --color-primary: #1b2a4a;      /* azul marino oscuro — títulos, botones, elementos de marca */
  --color-primary-dark: #10192e; /* marino más oscuro — hover/estados activos */
  --color-accent: #2d5fa7;       /* azul medio — iconos, acentos, enlaces */
  --color-bg: #ffffff;
  --color-bg-alt: #f4f3ee;       /* crema/off-white de la portada */
  --color-text: #16223f;
  --color-text-muted: #5b6b7a;
  --color-border: #e3e1d8;

  --font-heading: -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 8px 24px rgba(27, 42, 74, 0.14);

  --container-width: 1140px;
  --container-width-narrow: 720px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: var(--container-width-narrow);
}

.section {
  padding-block: 64px;
}

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

.section__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  margin-bottom: 32px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  width: 100%;
  text-align: center;
  padding: 18px 28px;
  font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 80px;
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero__copy h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  margin-bottom: 16px;
}

.hero__subtitle {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.hero__microcopy {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.hero__cover {
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Tarjetas ---------- */
.card {
  padding: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* ---------- Checklist ---------- */
.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- Índice de contenido ---------- */
.content-index {
  counter-reset: item;
}

.content-index li {
  counter-increment: item;
  padding: 12px 0 12px 40px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.content-index li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-primary);
}

/* ---------- Vista previa ---------- */
.preview-page {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Testimonios ---------- */
.testimonial {
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.testimonial cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ---------- Precio ---------- */
.price-card {
  padding: 40px;
  text-align: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.price-card__amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.price-card__includes {
  margin-bottom: 24px;
  text-align: left;
}

.price-card__includes li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.price-card__includes li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item__question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-item__question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item__answer p {
  padding-bottom: 20px;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 32px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
}
