/* ===================================================
   inicio.css
   Estilos específicos para la página de inicio (index.html)
   =================================================== */


/* ======================================
   1. BLOQUE: INTRODUCCIÓN / RECORRIDO
   Bloque de texto principal con entrada cálida al sitio
   ====================================== */

.intro-recorrido {
  background-color: #f7f4fe;
  border-left: 6px solid #b597f1;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-recorrido:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.intro-recorrido a {
  color: #5c3dc4;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.intro-recorrido a:hover {
  border-color: #5c3dc4;
}

:root{
  --bg: #ffffff;
  --fg: #111111;
  --muted: #5b5b5b;
  --card: #f7f5fd;
  --stroke: #e8e6f5;
  --brand: #5b43ff;
  --brand-ink: #3228a8;
  --radius: 18px;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
}

/* Contenedor */
#intro.intro-grid{
  background: #f7f4fe;
  color: var(--fg);
  padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--stroke);
    font-family: "Poppins", "sans serif";
}
#intro .card-title {
  text-align: center;
}

#intro .intro-wrap{
  max-width: 1120px;
  margin: 0 auto;
    text-align: center;
}

/* Cabecera */
#intro .intro-header{
  display: grid;
  gap: .6rem;
  margin-bottom: clamp(18px, 2.5vw, 28px);
}
#intro .intro-header h1{
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
#intro .intro-lead{
  color: var(--muted);
  font-size: clamp(.98rem, 1.4vw, 1.06rem);
  max-width: 103ch;
    text-align: center;
}

/* Grid de tarjetas */
#intro .intro-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}

#intro .card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
}
#intro .card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in oklab, var(--stroke) 70%, var(--brand) 30%);
}
#intro .card-body{
display: flex;
  flex-direction: column;
  justify-content: space-between;     
  padding: clamp(16px, 2.2vw, 22px);
}
#intro .card-title{
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.2;
}
#intro .card-subtitle{
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.35;
  margin-top: -2px;
}
#intro .card-text{
  color: var(--fg);
  opacity: .9;
  font-size: .99rem;
}

/* Destacado */
#intro .card.featured{
  border: 1px solid color-mix(in oklab, var(--stroke) 40%, var(--brand) 60%);
  background:
    radial-gradient(1200px 400px at 10% -10%, color-mix(in oklab, var(--brand) 12%, transparent) 0%, transparent 60%),
    var(--card);
}

/* Botón */
#intro .btn{
  display: inline-block;
  width: fit-content;
  padding: .62rem .9rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .2s ease, transform .15s ease, color .2s ease;
}
#intro .btn:hover{
  background: var(--brand-ink);
  transform: translateY(-1px);
      color: #fff; /* mantiene texto blanco */
}
#intro .btn:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--brand) 45%, #fff 55%);
  outline-offset: 2px;
}
#intro .btn.btn-outline{
  background: transparent;
  color: var(--brand);
  border-color: color-mix(in oklab, var(--brand) 60%, var(--stroke) 40%);
}
#intro .btn.btn-outline:hover{
  color: #fff;
  background: var(--brand);
}
/* ======================================
   2. BLOQUE: DESTACADOS
   Sección visual con 4 tarjetas principales
   (Mover a components.css si se reutiliza)
   ====================================== */

.destacados {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.destacados article {
  flex: 1 1 280px;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--color-base);
}

.destacados article:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Asignación visual individual por orden de aparición */
.destacados article:nth-child(1) {
  --color-base: #f3e8ff;
}
.destacados article:nth-child(2) {
  --color-base: #e6f7e6;
}
.destacados article:nth-child(3) {
  --color-base: #fffbe6;
}
.destacados article:nth-child(4) {
  --color-base: #e6f5fb;
}

.destacados h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #2b1f7a;
}

.destacados p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: #333;
}

.destacados a {
  text-decoration: none;
  font-weight: bold;
  color: #5c3dc4;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.destacados a:hover {
  border-color: #5c3dc4;
}

/* ================================
   HERO SECUNDARIO: ARTÍCULO DESTACADO
   ================================ */
.destacado-home{
  --bg:#f7f6ff;            /* fondo suave */
  --ink:#1f2937;           /* texto principal */
  --accent:#5c3dc4;        /* violeta marca */
  --accent-2:#ffee03;      /* amarillo marca (detalles) */

  background: radial-gradient(1200px 600px at 90% 50%, #fff 0%, var(--bg) 65%, #f2f0ff 100%);
  margin: 32px auto 56px;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  color: var(--ink);
  max-width: 1200px;
}

.destacado-home h2{
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  letter-spacing: .02em;
  color: var(--accent);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.destacado-contenido{
  display: grid;
  grid-template-columns: 1.1fr .9fr;  /* texto | imagen */
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.destacado-texto h3{
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  margin: 6px 0 12px;
}

.destacado-texto p{
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 60ch;
}

.destacado-img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transform: translateZ(0);
}

.destacado-home .btn-ver{
  display: inline-block;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  box-shadow: 0 6px 18px rgba(92,61,196,.25);
}
.destacado-home .btn-ver:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(92,61,196,.32);
  background: #4d31a7;
}

/* Detalle bajo el título (subrayado amarillo) */
.destacado-texto h3::after{
  content:"";
  display:block;
  width: 120px;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--accent-2);
}

/* Responsivo */
@media (max-width: 900px){
  .destacado-contenido{
    grid-template-columns: 1fr;     /* apila */
  }
  .destacado-img{
    order: -1;                       /* imagen arriba */
  }
}

/* ================================================
   PRODUCTO DESTACADO (home)
   ================================================ */
.producto-destacado{
  --bg: #f7f6ff;
  --ink: #1f2937;
  --accent: var(--brand);
  --accent-ink: var(--brand-ink);
  --accent-2: #ffee03;

  background: radial-gradient(1200px 600px at 15% 10%, #fff 0%, var(--bg) 65%, #f2f0ff 100%);
  margin: 34px auto 56px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  max-width: 1200px;
}

.producto-eyebrow{
  font-size: clamp(.9rem, 1.2vw, 1rem);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
  font-weight: 600;
}

.producto-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr; /* texto | imagen */
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.producto-texto h2{
  font-size: clamp(1.55rem, 3.1vw, 2.2rem);
  line-height: 1.15;
  margin: 6px 0 12px;
  letter-spacing: -0.01em;
  position: relative;
}

.producto-texto h2::after{
  content:"";
  display:block;
  width: 120px;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--accent-2);
}

.producto-tagline{
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 64ch;
  color: #2b2b2b;
}

.producto-lista{
  margin: 0 0 16px 0;
  padding-left: 1.1rem;
  font-size: clamp(.98rem, 1.1vw, 1.05rem);
  line-height: 1.55;
  color: #333;
}
.producto-lista li{ margin: .35rem 0; }
.producto-lista li::marker{ color: var(--accent); }

.producto-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin: 10px 0 6px;
}

.producto-mini{
  font-size: .92rem;
  color: var(--muted);
  margin-top: 8px;
}

.producto-visual{
  margin: 0;
}
.producto-img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transform: translateZ(0);
}

/* Accesibilidad: screen-reader-only */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 1px, 1px);
  white-space: nowrap; border: 0;
}

/* Responsive */
@media (max-width: 900px){
  .producto-grid{ grid-template-columns: 1fr; }
  .producto-img{ order: -1; } /* imagen arriba en móvil */
}

/* --- Layout general --- */
#lead-tesauro {
  background: #fafafa; /* fondo suave */
  padding: 4rem 2rem;
  border-radius: 1rem;
  margin: 3rem auto;
  max-width: 1200px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__media img {
    margin: 0 auto;
  }
}

/* --- Texto --- */
.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #555;
  margin-bottom: 0.5rem;
}

#lead-tesauro-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
  color: #222;
}

#lead-tesauro-title .sub {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: #666;
}

.lead {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1rem;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.benefits li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.benefits li::before {
  content: "✔";
  color: #009688; /* verde confianza */
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* --- Botones --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-right: 0.8rem;
}

.btn--primary {
  background: #009688;
  color: #fff;
}

.btn--primary:hover {
  background: #00796b;
}

.btn--ghost {
  border: 2px solid #009688;
  color: #009688;
}

.btn--ghost:hover {
  background: #009688;
  color: #fff;
}

/* --- Imagen --- */
.hero__media img {
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --- Nota de confianza --- */
.tiny.trust {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2rem;
  text-align: center;
}