/* =========================================================================
   AZAHAR DATA INSIGHTS — CSS de página: home
   Portada. Solo clases específicas de "home"; las globales azh-* viven en
   azh-globals.css y NO se redefinen aquí.
   Fuente de verdad: este fichero. La plantilla Jinja2 no lleva <style>.

   TESTIMONIO: el bloque reutiliza las clases caso-testimonial__* de
   pagina-caso.css. Aquí solo se prefijan con .home-page las reglas que
   necesitan comportamiento propio en la portada; el resto se hereda. Si
   algún día cambia el diseño del testimonio, cambia en los dos sitios a
   la vez, que es lo que se busca.

   MULTICOLOR: la página no lleva acento propio. Lo llevan las tarjetas de
   ruta y de caso, los enlaces de sector y el bloque de testimonio, y todo
   el CSS consume --accent-color y --accent-light. Sin variables inline (B5).

   REGLAS: longhand en padding y margin (B1), wrappers con width:100% (B7),
   border-radius 0, sin grises.
   ========================================================================= */

/* === WRAPPER RAÍZ === */
.home-page * { box-sizing: border-box; }

/* B11: contención de desbordamiento en el wrapper, nunca en el body. */
div.home-page { overflow-x: clip; }

/* B7: Bricks renderiza cada <section> como flex column y los wrappers sin
   ancho explícito se encogen a su contenido. */
.home-page .home-hero__container,
.home-page .home-rutas__inner,
.home-page .home-sectores__inner,
.home-page .home-clientes__inner,
.home-page .home-metodologia__inner,
.home-page .home-casos__inner,
.home-page .caso-testimonial__inner,
.home-page .home-cta__inner { width: 100%; }

/* ======================= ELEMENTOS COMUNES ======================= */
.home-page .home-eyebrow {
  display: block;
  font-size: 15px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--azahar-oxford-50);
  margin-top: 0; margin-bottom: 16px;
}
.home-page .home-section__intro {
  color: var(--azahar-oxford-70); max-width: 720px; margin: 0;
}
.home-page .home-section__link {
  display: inline-block;
  color: var(--azahar-button); font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.home-page .home-section__link:hover { color: var(--azahar-oxford); }

/* ======================= 1 · HERO ======================= */
.home-page .home-hero {
  padding-top: 80px; padding-right: 40px; padding-bottom: 80px; padding-left: 40px;
  background: var(--azahar-white);
}
.home-page .home-hero__container {
  max-width: 1200px; margin-left: auto; margin-right: auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
}
.home-page .home-hero__text { max-width: 520px; }
.home-page .home-hero__title { color: var(--azahar-oxford); margin: 0 0 28px; }
.home-page .home-hero__subtitle { color: var(--azahar-oxford-75); margin: 0 0 44px; }
.home-page .home-hero__ctas { display: flex; flex-wrap: nowrap; gap: 12px; }
.home-page .home-hero__btn {
  display: inline-block;
  padding-top: 16px; padding-right: 24px; padding-bottom: 16px; padding-left: 24px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border-width: 2px; border-style: solid;
  transition: all 0.3s ease; white-space: nowrap;
}
.home-page .home-hero__btn--primary {
  color: var(--azahar-white); border-color: var(--azahar-button);
  background: var(--azahar-button);
}
.home-page .home-hero__btn--primary:hover {
  background: var(--azahar-button-hover); border-color: var(--azahar-button-hover);
}
.home-page .home-hero__btn--secondary {
  color: var(--azahar-oxford); border-color: var(--azahar-oxford); background: transparent;
}
.home-page .home-hero__btn--secondary:hover { background: var(--azahar-oxford); color: var(--azahar-white); }

.home-page .home-hero__mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr); aspect-ratio: 4/5;
}
.home-page .home-hero__tile--celeste   { grid-column: 1/4; grid-row: 1/2; background: linear-gradient(90deg, #64d0f7 0%, #ebf9fe 100%); }
.home-page .home-hero__tile--naranja   { grid-column: 4/5; grid-row: 1/3; background: linear-gradient(180deg, #ffe9c2 0%, #f59b00 100%); }
.home-page .home-hero__tile--rojo      { grid-column: 1/2; grid-row: 2/5; background: linear-gradient(180deg, #ffc2c2 40%, #ff6666 100%); }
.home-page .home-hero__tile--lavanda-1 { grid-column: 2/4; grid-row: 2/3; background: linear-gradient(90deg, #c599ff 0%, #e8d6ff 100%); }
.home-page .home-hero__tile--verde     { grid-column: 2/5; grid-row: 3/4; background: linear-gradient(-90deg, #68b800 0%, #edffd6 100%); }
.home-page .home-hero__tile--lavanda-2 { grid-column: 2/3; grid-row: 4/5; background: linear-gradient(180deg, #c599ff 0%, #e8d6ff 100%); }
.home-page .home-hero__tile--lavanda-3 { grid-column: 3/5; grid-row: 4/5; background: linear-gradient(90deg, #c599ff 0%, #ffffff 100%); }
.home-page .home-hero__tile--magenta   { grid-column: 1/5; grid-row: 5/6; background: linear-gradient(-90deg, #ff61c4 0%, #ffade1 60%); }

/* ======================= 2 · RUTAS ======================= */
.home-page .home-rutas {
  padding-top: 120px; padding-right: 40px; padding-bottom: 120px; padding-left: 40px;
  background: var(--azahar-bg-soft);
}
.home-page .home-rutas__inner { max-width: 1200px; margin-left: auto; margin-right: auto; }
.home-page .home-rutas__header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 48px; margin-bottom: 56px;
}
.home-page .home-rutas__header-text { max-width: 720px; }
.home-page .home-rutas__title { color: var(--azahar-oxford); margin: 0 0 20px; }
.home-page .home-rutas__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.home-page .home-ruta-card {
  position: relative; display: flex; flex-direction: column;
  padding-top: 32px; padding-right: 28px; padding-bottom: 28px; padding-left: 28px;
  min-height: 220px; text-decoration: none;
  background: var(--azahar-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-page .home-ruta-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 160px; height: 6px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
}
.home-page .home-ruta-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(5,37,76,0.08); }
.home-page .home-ruta-card__tag {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-color); margin-bottom: 14px;
}
.home-page .home-ruta-card__title { color: var(--azahar-oxford); margin: 0 0 12px; }
.home-page .home-ruta-card__desc {
  font-size: 16px; line-height: 1.55; color: var(--azahar-oxford-70); margin: 0 0 16px;
}
.home-page .home-ruta-card__arrow {
  display: block; margin-top: auto; font-size: 20px; font-weight: 700; color: var(--azahar-button);
}

/* ======================= 3 · SECTORES (banda) ======================= */
.home-page .home-sectores {
  padding-top: 72px; padding-right: 40px; padding-bottom: 72px; padding-left: 40px;
  background: var(--azahar-white);
}
.home-page .home-sectores__inner {
  max-width: 1200px; margin-left: auto; margin-right: auto;
  display: grid; grid-template-columns: 1fr 1.6fr; align-items: center; gap: 64px;
}
.home-page .home-sectores__title { font-size: 28px; color: var(--azahar-oxford); margin: 0 0 16px; }
.home-page .home-sectores__intro { color: var(--azahar-oxford-70); margin: 0; font-size: 17px; }
.home-page .home-sectores__list {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 0;
}
.home-page .home-sector-link {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--azahar-oxford-10);
  text-decoration: none; color: var(--azahar-oxford); font-weight: 500;
  transition: padding-left 0.25s ease;
}
.home-page .home-sector-link:hover { padding-left: 10px; }
.home-page .home-sector-link__bar {
  display: inline-block; width: 40px; height: 4px; margin-right: 16px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
}
.home-page .home-sector-link__name { flex: 1; }
.home-page .home-sector-link__arrow { color: var(--azahar-button); font-weight: 700; }


/* ======================= 4 · CLIENTES (solo texto) ======================= */
/* El mosaico de tarjetas de cliente queda fuera de esta versión hasta tener
   permiso escrito. El texto se mantiene: describe con quién se trabaja sin
   nombrar a nadie, así que no compromete nada. */
.home-page .home-clientes {
  padding-top: 96px; padding-right: 40px; padding-bottom: 96px; padding-left: 40px;
  background: var(--azahar-white);
}
.home-page .home-clientes__inner {
  max-width: 860px; margin-left: auto; margin-right: auto; text-align: center;
}
.home-page .home-clientes__title { color: var(--azahar-oxford); margin: 0 0 24px; }
.home-page .home-clientes__text {
  color: var(--azahar-oxford-70); margin: 0 auto; max-width: 720px; font-size: 19px;
}
.home-page .home-clientes__rule {
  display: block; width: 200px; height: 5px;
  margin-top: 40px; margin-left: auto; margin-right: auto;
  background: linear-gradient(90deg,
    var(--color-turquesa-accent) 0%,
    var(--color-morado-accent) 50%,
    var(--color-rosa-accent) 100%);
}

/* ======================= 5 · METODOLOGÍA ======================= */
.home-page .home-metodologia {
  padding-top: 120px; padding-right: 40px; padding-bottom: 120px; padding-left: 40px;
  background: var(--azahar-oxford); color: var(--azahar-white);
}
.home-page .home-metodologia__inner {
  max-width: 1200px; margin-left: auto; margin-right: auto;
  display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 80px;
}
.home-page .home-metodologia__eyebrow {
  display: block; font-size: 15px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-turquesa-light); margin-bottom: 20px;
}
.home-page .home-metodologia__title { color: var(--azahar-white); margin: 0 0 24px; }
.home-page .home-metodologia__line {
  display: block; width: 64px; height: 3px; margin-bottom: 32px;
  background: var(--color-turquesa-accent);
}
.home-page .home-metodologia__text {
  color: rgba(255,255,255,0.85); line-height: 1.75; margin: 0 0 36px;
}
.home-page .home-metodologia__cta {
  display: inline-block;
  padding-top: 16px; padding-right: 32px; padding-bottom: 16px; padding-left: 32px;
  color: var(--azahar-white); font-weight: 600; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4); background: transparent;
  transition: all 0.25s ease;
}
.home-page .home-metodologia__cta:hover { background: var(--azahar-white); color: var(--azahar-oxford); }
.home-page .home-metodologia__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.home-page .home-stat__number {
  font-size: 44px; font-weight: 600; color: var(--color-turquesa-light);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px;
}
.home-page .home-stat__number--texto { font-size: 30px; }
.home-page .home-stat__label {
  font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.45; margin: 0;
}
.home-page .home-stat__pdte {
  display: inline-block; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #ffc666; border: 1px dashed #ffc666;
  padding: 2px 10px; margin-top: 8px;
}

/* ======================= 6 · CASOS ======================= */
.home-page .home-casos {
  padding-top: 120px; padding-right: 40px; padding-bottom: 120px; padding-left: 40px;
  background: var(--azahar-white);
}
.home-page .home-casos__inner { max-width: 1200px; margin-left: auto; margin-right: auto; }
.home-page .home-casos__header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 48px; margin-bottom: 56px;
}
.home-page .home-casos__header-text { max-width: 720px; }
.home-page .home-casos__title { color: var(--azahar-oxford); margin: 0 0 20px; }
.home-page .home-casos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.home-page .home-caso-card {
  display: block; text-decoration: none; background: var(--azahar-white);
  box-shadow: 0 0 0 1px var(--azahar-oxford-15) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-page .home-caso-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(5,37,76,0.08); }
.home-page .home-caso-card__visual {
  aspect-ratio: 16/9; position: relative; display: block;
  padding-top: 16px; padding-right: 20px; padding-bottom: 16px; padding-left: 20px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
}
.home-page .home-caso-card__sector {
  position: absolute; bottom: 16px; left: 20px; display: inline-block;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--azahar-white); padding: 6px 12px; background: rgba(5,37,76,0.85);
}
.home-page .home-caso-card__body {
  padding-top: 28px; padding-right: 24px; padding-bottom: 32px; padding-left: 24px;
}
.home-page .home-caso-card__title { color: var(--azahar-oxford); margin: 0 0 12px; }
.home-page .home-caso-card__desc {
  font-size: 15px; line-height: 1.55; color: var(--azahar-oxford-70); margin: 0 0 12px;
}
.home-page .home-caso-card__arrow {
  display: block; padding-top: 8px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--azahar-button);
}

/* ======================= 7 · TESTIMONIO ======================= */
/* Reutiliza el bloque caso-testimonial de pagina-caso.css tal cual. */
.home-page .caso-testimonial {
  position: relative; overflow: hidden; min-height: 800px;
  padding-top: 160px; padding-right: 40px; padding-bottom: 160px; padding-left: 40px;
  background: var(--azahar-white);
}
.home-page .caso-testimonial__deco-1 { position: absolute; top: 0; right: 0; width: 380px; height: 88px; background: linear-gradient(90deg, var(--color-turquesa-light) 0%, var(--color-turquesa-accent) 100%); }
.home-page .caso-testimonial__deco-2 { position: absolute; top: 88px; right: 0; width: 250px; height: 88px; background: linear-gradient(90deg, var(--color-rosa-accent) 0%, var(--color-rosa-light) 100%); }
.home-page .caso-testimonial__deco-3 { position: absolute; top: 0; right: 0; width: 88px; height: 550px; background: linear-gradient(180deg, var(--color-naranja-light) 0%, var(--color-naranja-accent) 100%); }
.home-page .caso-testimonial__deco-4 { position: absolute; bottom: 88px; left: 88px; width: 250px; height: 88px; background: linear-gradient(90deg, var(--color-rosa-accent) 0%, var(--color-rosa-light) 100%); }
.home-page .caso-testimonial__deco-5 { position: absolute; bottom: 0; left: 88px; width: 380px; height: 88px; background: linear-gradient(90deg, var(--color-morado-light) 0%, var(--color-morado-accent) 100%); }
.home-page .caso-testimonial__deco-6 { position: absolute; bottom: 0; left: 0; width: 88px; height: 550px; background: linear-gradient(180deg, var(--color-celeste-light) 0%, var(--color-celeste-accent) 100%); }
.home-page .caso-testimonial__inner {
  position: relative; z-index: 2; max-width: 720px;
  margin-left: auto; margin-right: auto;
  padding-top: 80px; padding-bottom: 60px;
}
.home-page .caso-testimonial__mark {
  display: block; font-family: 'Safiro', Georgia, serif; font-size: 280px;
  line-height: 0.8; font-weight: 700; color: var(--azahar-oxford); margin: 0 0 -40px;
}
.home-page .caso-testimonial__quote { font-size: 22px; line-height: 1.6; color: var(--azahar-oxford); margin: 0 0 56px; }
.home-page .caso-testimonial__quote p { margin: 0 0 24px; }
.home-page .caso-testimonial__quote p:last-child { margin-bottom: 0; }
.home-page .caso-testimonial__author { display: flex; align-items: center; gap: 28px; }
.home-page .caso-testimonial__photo-wrapper { position: relative; flex-shrink: 0; width: 120px; height: 120px; }
.home-page .caso-testimonial__photo-wrapper::before {
  content: ''; position: absolute; top: 16px; left: 16px; width: 120px; height: 120px; z-index: 1;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
}
.home-page .caso-testimonial__photo { position: relative; z-index: 2; width: 120px; height: 120px; display: block; object-fit: cover; background: var(--azahar-oxford-10); }
.home-page .caso-testimonial__name { margin: 0 0 4px; font-weight: 500; font-style: italic; }
.home-page .caso-testimonial__role { margin: 0; font-size: 17px; line-height: 1.4; font-style: italic; color: var(--azahar-oxford-70); }

/* ======================= 8 · CTA FINAL ======================= */
.home-page .home-cta {
  padding-top: 120px; padding-right: 40px; padding-bottom: 120px; padding-left: 40px;
  background: var(--azahar-white);
}
.home-page .home-cta__inner {
  max-width: 1200px; margin-left: auto; margin-right: auto;
  padding-top: 80px; padding-right: 72px; padding-bottom: 80px; padding-left: 72px;
  display: grid; grid-template-columns: 2fr 1fr; align-items: center; gap: 48px;
  background: linear-gradient(135deg, var(--azahar-bg-soft) 0%, var(--azahar-white) 70%);
}
.home-page .home-cta__title { color: var(--azahar-oxford); line-height: 1.15; margin: 0 0 20px; }
.home-page .home-cta__desc { color: var(--azahar-oxford-90); margin: 0; }
.home-page .home-cta__button-wrapper { display: flex; justify-content: flex-end; }
.home-page .home-cta__button {
  display: inline-block;
  padding-top: 22px; padding-right: 44px; padding-bottom: 22px; padding-left: 44px;
  color: var(--azahar-white); font-weight: 600; text-decoration: none;
  letter-spacing: 0.02em; background: var(--azahar-button);
  white-space: nowrap; transition: background 0.25s ease;
}
.home-page .home-cta__button:hover { background: var(--azahar-button-hover); }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 991px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .home-page .home-hero__container { grid-template-columns: 1fr; gap: 48px; }
  .home-page .home-hero__text { order: 2; max-width: none; }
  .home-page .home-hero__mosaic { order: 1; aspect-ratio: 16/9; }
  .home-page .home-rutas__grid { grid-template-columns: 1fr 1fr; }
  .home-page .home-sectores__inner { grid-template-columns: 1fr; gap: 40px; }
  .home-page .home-sectores__list { grid-template-columns: 1fr; }
  .home-page .home-metodologia__inner { grid-template-columns: 1fr; gap: 56px; }
  .home-page .home-casos__grid { grid-template-columns: 1fr 1fr; }
  .home-page .caso-testimonial { min-height: 0; padding-top: 120px; padding-bottom: 120px; }
  .home-page .caso-testimonial__mark { font-size: 200px; margin-bottom: -24px; }
  .home-page .home-cta__inner { grid-template-columns: 1fr; padding-right: 48px; padding-left: 48px; gap: 32px; }
  .home-page .home-cta__button-wrapper { justify-content: flex-start; }
}
@media (max-width: 767px) {
  h1 { font-size: 32px; }
  .home-page .home-hero,
  .home-page .home-rutas,
  .home-page .home-sectores,
  .home-page .home-clientes,
  .home-page .home-metodologia,
  .home-page .home-casos,
  .home-page .home-cta { padding-left: 24px; padding-right: 24px; }
  .home-page .home-hero__ctas { flex-direction: column; }
  .home-page .home-hero__btn { width: 100%; text-align: center; }
  .home-page .home-rutas__grid,
  .home-page .home-casos__grid { grid-template-columns: 1fr; }
  .home-page .home-metodologia__stats { grid-template-columns: 1fr; gap: 24px; }
  .home-page .caso-testimonial { padding-left: 24px; padding-right: 24px; }
  .home-page .caso-testimonial__deco-3,
  .home-page .caso-testimonial__deco-6 { display: none; }
  .home-page .caso-testimonial__mark { font-size: 160px; }
  .home-page .caso-testimonial__quote { font-size: 18px; }
  .home-page .home-cta__inner { padding-right: 24px; padding-left: 24px; }
}
