/* ==========================================================================
   Erwan 3D Studios — Sistema visual Apple · Pastel Azul/Verde
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Paleta pastel azul/verde Apple */
  --bg:            #fbfdfc;
  --bg-alt:        #f3f8f7;
  --surface:       #ffffff;
  --surface-tint:  #eaf5f3;

  --ink:           #1d1d1f;
  --ink-soft:      #424245;
  --ink-muted:     #6e6e73;
  --ink-faint:     #86868b;

  --line:          rgba(0, 0, 0, 0.08);
  --line-soft:     rgba(0, 0, 0, 0.04);

  --blue:          #b8dceb;   /* azul pastel */
  --blue-deep:     #7fb8cf;
  --blue-ink:      #0a6e8c;

  --green:         #bfe3cf;   /* verde pastel */
  --green-deep:    #86c8a4;
  --green-ink:     #186a43;

  --mint:          #d4eee2;
  --sky:           #e3f1f6;

  --accent:        #4ea4b8;   /* azul-verde saturado para CTAs */
  --accent-hover:  #3f8d9f;

  /* Gradientes pastel */
  --grad-hero:     linear-gradient(135deg, #e3f1f6 0%, #d4eee2 100%);
  --grad-soft:     linear-gradient(180deg, #fbfdfc 0%, #eaf5f3 100%);
  --grad-card:     linear-gradient(135deg, #f0f8fa 0%, #e8f4ee 100%);
  --grad-accent:   linear-gradient(135deg, #7fb8cf 0%, #86c8a4 100%);

  /* Tipografía */
  --font:          "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
                   "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display:  "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
                   "Segoe UI", Roboto, sans-serif;

  /* Radios */
  --r-sm:  10px;
  --r-md:  18px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;

  /* Sombras (muy suaves, estilo Apple) */
  --shadow-xs: 0 1px 2px rgba(10, 50, 60, 0.04);
  --shadow-sm: 0 4px 16px rgba(10, 50, 60, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 50, 60, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 50, 60, 0.10);

  /* Layout */
  --container:   1200px;
  --container-narrow: 860px;
  --pad-page:    max(20px, 4vw);
  --section-y:   clamp(72px, 10vw, 140px);

  /* Transiciones */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Base ----------------------------------------------------------------- */
html, body {
  height: 100%;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.08;
}
h1 { font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; }
h4 { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.015em; font-weight: 600; }

p { color: var(--ink-soft); line-height: 1.55; }
p.lead {
  font-size: clamp(19px, 2vw, 24px);
  color: var(--ink-soft);
  line-height: 1.45;
  font-weight: 400;
}

/* ================================================================
   Párrafos justificados SOLO en bloques largos de lectura.
   En textos cortos (cards, intros breves) deja huecos feos,
   así que allí usamos left-align limpio.
   ================================================================ */

/* Justify solo en artículos de blog — donde hay párrafos largos */
.article p,
.article li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* En móvil el justify queda mal (columnas estrechas): left-align */
@media (max-width: 640px) {
  .article p,
  .article li {
    text-align: left;
    hyphens: none;
  }
}

/* Zonas centradas por diseño */
.text-center,
.text-center *,
.section-head,
.section-head *,
.hero,
.hero *,
.hero__sub,
.cta-banner,
.cta-banner *,
.feature,
.feature *,
.article-hero,
.article-hero *,
figcaption {
  text-align: center !important;
}

/* Botones nunca justificados */
.btn, a.btn, button {
  text-align: center !important;
}

/* --- Container & secciones ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-page);
  padding-right: var(--pad-page);
}
.container--narrow { max-width: var(--container-narrow); }

.section        { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.section--tint  { background: var(--bg-alt); }
.section--soft  { background: var(--grad-soft); }

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(40px, 5vw, 72px);
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 16px;
}
.section-head p { margin-top: 20px; font-size: 19px; color: var(--ink-muted); }

/* --- Navbar --------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 253, 252, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line-soft);
  animation: navSlideDown 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1520px;
  margin: 0 auto;
  padding-left: clamp(28px, 5vw, 64px);
  padding-right: clamp(28px, 5vw, 64px);
  gap: clamp(20px, 3.5vw, 48px);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.015em;
  color: var(--ink);
  flex-shrink: 0;
}
.nav__brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad-accent);
  display: grid; place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(78, 164, 184, 0.25);
}
.nav__brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 8px rgba(10, 50, 60, 0.18);
  animation: logoEntry 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform 0.3s var(--ease);
}
.nav__brand:hover .nav__brand-logo {
  transform: rotate(-8deg) scale(1.06);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
  flex: 1;
  justify-content: center;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 450;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 4px 0;
  animation: navLinkIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
/* Staggered entry — cada enlace entra con un pequeño delay */
.nav__links a:nth-child(1) { animation-delay: 0.35s; }
.nav__links a:nth-child(2) { animation-delay: 0.42s; }
.nav__links a:nth-child(3) { animation-delay: 0.49s; }
.nav__links a:nth-child(4) { animation-delay: 0.56s; }
.nav__links a:nth-child(5) { animation-delay: 0.63s; }
.nav__links a:nth-child(6) { animation-delay: 0.70s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover::before { width: 60%; }
.nav__links a.is-active {
  color: var(--ink);
  font-weight: 500;
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 16px rgba(78, 164, 184, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: navLinkIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.78s both;
}
.nav__cta::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
  animation: ctaShimmer 4.5s cubic-bezier(0.4, 0, 0.2, 1) 1.6s infinite;
}
.nav__cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(78, 164, 184, 0.45);
  color: #fff;
}
.nav__cta:hover::before {
  animation-play-state: paused;
}

/* ========== ANIMACIONES ÉPICAS DE ENTRADA ========== */

@keyframes navSlideDown {
  0%   { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes navLinkIn {
  0%   { transform: translateY(-12px); opacity: 0; filter: blur(4px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

@keyframes logoEntry {
  0%   { opacity: 0; transform: scale(0.3) rotate(-180deg); }
  60%  { opacity: 1; transform: scale(1.12) rotate(14deg); }
  80%  { transform: scale(0.96) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes ctaShimmer {
  0%   { left: -120%; }
  60%, 100% { left: 140%; }
}
.nav__links-cta { display: none; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
}
.nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s ease;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }

@media (max-width: 960px) {
  .nav__links { display: none !important; }
  .nav__cta   { display: none !important; }
  .nav__burger { display: inline-flex; }
  .nav__inner {
    height: 64px;
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
    gap: 12px;
  }
  .nav.open .nav__links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(251, 253, 252, 0.98);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    padding: 24px clamp(20px, 5vw, 32px) 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
    align-items: stretch;
    z-index: 200;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    animation: navDropdownIn 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .nav.open .nav__links a {
    font-size: 17px;
    padding: 10px 4px;
    width: 100%;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.open .nav__links a:last-child { border-bottom: 0; }
  .nav.open .nav__links-cta { display: block; }
  .nav__links-cta {
    background: var(--grad-accent);
    color: #fff !important;
    text-align: center;
    padding: 14px 20px !important;
    border-radius: var(--r-pill);
    font-weight: 500;
    margin-top: 10px;
    border-bottom: 0 !important;
    box-shadow: 0 6px 16px rgba(78, 164, 184, 0.28);
  }
  .nav.open .nav__burger span { background: transparent; }
  .nav.open .nav__burger span::before { top: 0; transform: rotate(45deg); }
  .nav.open .nav__burger span::after  { top: 0; transform: rotate(-45deg); }
}
@keyframes navDropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* --- Botones -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--r-pill);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-xs);
}
.btn--primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn--accent {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(78, 164, 184, 0.25);
}
.btn--accent:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(78, 164, 184, 0.35); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: rgba(0,0,0,0.04); }

.btn--light {
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.btn--light:hover { background: #fff; transform: translateY(-1px); }

.btn--arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.btn--arrow:hover::after { transform: translateX(4px); }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16.5px; }

/* --- Link de texto con flecha -------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-ink);
  font-weight: 500;
  font-size: 15px;
}
.link-arrow::after {
  content: "›";
  transition: transform 0.25s var(--ease);
  font-size: 18px;
  line-height: 1;
}
.link-arrow:hover::after { transform: translateX(3px); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(80px, 12vw, 160px) var(--pad-page) clamp(60px, 8vw, 120px);
  background: var(--grad-hero);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(191, 227, 207, 0.5), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(134, 200, 164, 0.3);
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}
.hero h1 {
  background: linear-gradient(180deg, var(--ink) 0%, #2f3d45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__trust span::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-deep);
}

/* --- Grid de cards -------------------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- Card ----------------------------------------------------------------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--line-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  font-size: 28px;
  background: var(--grad-card);
}
.card__icon--blue  { background: linear-gradient(135deg, #e3f1f6, #b8dceb); }
.card__icon--green { background: linear-gradient(135deg, #e8f4ee, #bfe3cf); }
.card__icon--mint  { background: linear-gradient(135deg, #f0f8fa, #d4eee2); }
.card__icon--sky   { background: linear-gradient(135deg, #f3f8f7, #e3f1f6); }

.card h3 { margin-bottom: 10px; }
.card p  { color: var(--ink-muted); font-size: 15.5px; }
.card__price {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-ink);
}

/* --- Feature grande (media + texto) -------------------------------------- */
.feature {
  background: var(--grad-hero);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px);
  margin: 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.feature h2 { margin-bottom: 16px; }
.feature p  { max-width: 620px; margin: 0 auto 28px; font-size: 18px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--grad-card);
}
/* Variante vertical (retrato) para fotos de persona */
.split__media--portrait {
  display: flex;
  justify-content: center;
}
.split__media--portrait img {
  aspect-ratio: 3/4;
  max-width: 420px;
  width: 100%;
}
.split h2 { margin-bottom: 20px; }
.split p  { font-size: 18px; margin-bottom: 16px; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* --- Pasos (cómo funciona) ----------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.step {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--line-soft);
  position: relative;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}
.step h4 { margin-bottom: 8px; }
.step p  { color: var(--ink-muted); font-size: 15px; }

/* --- Testimonios / Blog lista -------------------------------------------- */
.testimonial {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--line-soft);
}
.testimonial__stars { color: #f5b83d; font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial__quote { color: var(--ink); font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
.testimonial__author { font-size: 14px; color: var(--ink-muted); font-weight: 500; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
  transition: color 0.2s;
}
.faq__q:hover { color: var(--blue-ink); }
.faq__q::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-muted);
  transition: transform 0.3s var(--ease);
}
.faq__item.open .faq__q::after {
  transform: rotate(45deg);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
}
.faq__item.open .faq__a {
  max-height: 800px;
  padding-bottom: 24px;
}

/* --- Blog ----------------------------------------------------------------- */
.post-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media {
  aspect-ratio: 16/10;
  background: var(--grad-card);
  background-size: cover;
  background-position: center;
}
.post-card__body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.post-card__title { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.25; margin-bottom: 10px; letter-spacing: -0.015em; }
.post-card__excerpt { color: var(--ink-muted); font-size: 15px; margin-bottom: 16px; flex: 1; }
.post-card__cta { font-size: 14px; font-weight: 500; color: var(--blue-ink); }

/* --- Article (post) ------------------------------------------------------- */
.article-hero {
  padding: clamp(72px, 10vw, 140px) var(--pad-page) clamp(48px, 7vw, 88px);
  text-align: center;
  background: var(--grad-soft);
}
.article-hero .container { max-width: 780px; }
.article-hero__meta { font-size: 13.5px; color: var(--ink-muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; }
.article-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 20px; }
.article-hero p.lead { font-size: 18px; color: var(--ink-muted); }

/* Wrapper para el video debajo del article-hero — con aire */
.video-wrap {
  padding: clamp(40px, 6vw, 72px) var(--pad-page) 0;
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad-page);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article > * + * { margin-top: 1.4em; }
.article h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 2em; color: var(--ink); }
.article h3 { font-size: clamp(20px, 2.3vw, 26px); margin-top: 1.6em; color: var(--ink); }
.article h4 { font-size: 20px; margin-top: 1.4em; color: var(--ink); }
.article p  { color: var(--ink-soft); }
.article a  { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article ul, .article ol {
  padding-left: 1.4em;
  list-style: disc;
}
.article ol { list-style: decimal; }
.article li { margin-bottom: 0.5em; }
.article blockquote {
  border-left: 3px solid var(--green-deep);
  padding: 4px 0 4px 20px;
  font-size: 19px;
  color: var(--ink);
  font-style: italic;
  background: var(--grad-card);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
}
.article img {
  border-radius: var(--r-md);
  margin: 1.6em auto;
  box-shadow: var(--shadow-sm);
}
.article strong { color: var(--ink); font-weight: 600; }

/* --- Formulario ----------------------------------------------------------- */
.form {
  max-width: 560px;
  margin: 0 auto;
}
.form__row { margin-bottom: 18px; }
.form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.form__label {
  display: block;
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15.5px;
  color: var(--ink);
  transition: border 0.2s, box-shadow 0.2s;
}
.form__input:focus,
.form__textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 164, 184, 0.15);
}
.form__textarea { resize: vertical; min-height: 140px; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 18px 0;
  line-height: 1.5;
}
.form__check input { margin-top: 3px; accent-color: var(--accent); }
.form__check a { color: var(--blue-ink); text-decoration: underline; }

@media (max-width: 560px) {
  .form__row--two { grid-template-columns: 1fr; }
}

/* --- CTA banner ----------------------------------------------------------- */
.cta-banner {
  background: var(--grad-accent);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
}
.cta-banner p { color: rgba(255,255,255,0.94); max-width: 560px; margin: 0 auto 28px; font-size: 18px; }
.cta-banner__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Botón primario sobre accent: blanco sólido, texto oscuro */
.cta-banner .btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.cta-banner .btn--light:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
/* Botón secundario sobre accent: outline blanco con fondo glass */
.cta-banner .btn--on-accent {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
}
.cta-banner .btn--on-accent:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-1px);
  color: #fff;
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  background: var(--bg-alt);
  padding: 72px var(--pad-page) 40px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.footer__inner { max-width: var(--container); margin: 0 auto; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; font-size: 16px; }
.footer__tag { color: var(--ink-muted); font-size: 14px; max-width: 260px; line-height: 1.55; }
.footer h5 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0.02em; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: var(--ink-muted);
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--ink); }
.footer__social { display: flex; gap: 10px; margin-top: 8px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
  transition: transform 0.2s, background 0.2s;
  color: var(--ink-soft);
}
.footer__social a:hover { transform: translateY(-2px); background: var(--grad-accent); color: #fff; border-color: transparent; }
.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.footer__bottom a { color: var(--ink-muted); }
.footer__bottom a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --- Botones flotantes sociales ------------------------------------------ */
.float-social {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}
.float-social a {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), background 0.2s;
  color: var(--ink-soft);
}
.float-social a:hover { transform: translateY(-3px); background: var(--grad-accent); color: #fff; }

/* --- Reveal on scroll ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Video hero & embeds ------------------------------------------------- */
.video-hero {
  position: relative;
  max-width: 960px;
  margin: 0 auto clamp(24px, 4vw, 48px);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--grad-card);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.video-hero__thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s;
}
.video-hero:hover .video-hero__thumb {
  transform: scale(1.02);
  filter: brightness(0.95);
}
.video-hero__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.video-hero:hover .video-hero__play {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}
.video-hero__play::before {
  content: "";
  width: 0; height: 0;
  border-left: 22px solid var(--ink);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}
.video-hero__label {
  position: absolute;
  bottom: 16px; left: 16px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}
.video-hero iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 2em 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- Utilidades ----------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.stack > * + * { margin-top: 16px; }

/* =====================================================================
   Bloque de introducción (home) — "¿Qué es el servicio de impresión 3D?"
   Título centrado + párrafo de lectura alineado a la izquierda.
   ===================================================================== */
.intro-block__title {
  text-align: center;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 auto 28px;
  max-width: 18ch;           /* evita el corte raro "3D que / ofrecemos?" */
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  color: var(--ink);
}

.intro-block__p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: left;
  max-width: 68ch;           /* ancho óptimo de lectura */
  margin: 0 auto 16px;
}

.intro-block__p:last-of-type { margin-bottom: 0; }

@media (max-width: 640px) {
  .intro-block__title {
    font-size: clamp(24px, 6vw, 30px);
    max-width: 22ch;
  }
  .intro-block__p {
    font-size: 16px;
    line-height: 1.7;
    padding: 0 4px;
  }
}

/* =====================================================================
   BANNER DE COOKIES (RGPD)
   ===================================================================== */
#e3d-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 22px;
  background: #ffffff;
  color: var(--ink, #0f172a);
  border: 1px solid var(--line-soft, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .26s ease, transform .26s ease;
}
#e3d-cookie-banner.is-visible { opacity: 1; transform: translateY(0); }

#e3d-cookie-banner .e3d-cookie__text strong { font-size: 15px; }
#e3d-cookie-banner .e3d-cookie__text p {
  margin: 6px 0 0;
  color: var(--ink-muted, #334155);
  font-size: 14px;
  line-height: 1.6;
}
#e3d-cookie-banner a {
  color: var(--accent, #1f6feb);
  text-decoration: underline;
}

#e3d-cookie-banner .e3d-cookie__options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--bg-alt, #f8fafc);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-muted, #334155);
}
#e3d-cookie-banner .e3d-cookie__options label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
#e3d-cookie-banner .e3d-cookie__options input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent, #1f6feb);
}

#e3d-cookie-banner .e3d-cookie__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: flex-end;
}
#e3d-cookie-banner .e3d-cookie__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  font-family: inherit;
  line-height: 1;
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
#e3d-cookie-banner .e3d-cookie__btn--primary {
  background: var(--accent, #1f6feb);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 111, 235, 0.22);
}
#e3d-cookie-banner .e3d-cookie__btn--primary:hover {
  background: #1657bf;
  transform: translateY(-1px);
}
#e3d-cookie-banner .e3d-cookie__btn--ghost {
  background: transparent;
  color: var(--ink-soft, #334155);
  border: 1px solid var(--line, #cbd5e1);
}
#e3d-cookie-banner .e3d-cookie__btn--ghost:hover {
  background: var(--bg-alt, #f1f5f9);
}

@media (max-width: 560px) {
  #e3d-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px 14px;
    border-radius: 14px;
  }
  #e3d-cookie-banner .e3d-cookie__actions { justify-content: stretch; }
  #e3d-cookie-banner .e3d-cookie__btn {
    flex: 1 1 calc(50% - 5px);
    padding: 12px 14px;
    min-height: 44px;
  }
}

#e3d-cookie-reopen {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-soft, #e2e8f0);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .16s ease, box-shadow .16s ease;
}
#e3d-cookie-reopen[hidden] { display: none !important; }
#e3d-cookie-reopen:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

/* =====================================================================
   HERO con SLIDER de miniaturas de YouTube
   ===================================================================== */
.hero.hero--slider {
  position: relative;
  overflow: hidden;
  background: #0a1220;      /* fallback mientras cargan imágenes */
  padding-top: clamp(96px, 14vw, 180px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

/* Oculta el blob radial decorativo del hero original (se come contraste) */
.hero.hero--slider::before { display: none; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease-in-out;
  will-change: opacity, transform;
}

.hero__bg-slide.is-active {
  opacity: 1;
  animation: heroKenBurns 7s ease-out forwards;
}

@keyframes heroKenBurns {
  from { transform: scale(1.08); }
  to   { transform: scale(1.18); }
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.55) 0%, rgba(10, 18, 32, 0.78) 100%),
    radial-gradient(circle at 50% 40%, rgba(10, 18, 32, 0.35) 0%, rgba(10, 18, 32, 0.75) 75%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Contenido encima del slider */
.hero.hero--slider .hero__inner {
  position: relative;
  z-index: 2;
}

/* Tipografía invertida para modo oscuro */
.hero.hero--slider .hero__eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #d7fbe6;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero.hero--slider h1 {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #ffffff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

.hero.hero--slider .hero__sub {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero.hero--slider .hero__trust {
  color: rgba(255, 255, 255, 0.8);
}
.hero.hero--slider .hero__trust span {
  color: rgba(255, 255, 255, 0.85);
}

/* Botón "ghost" sobre fondo oscuro */
.hero.hero--slider .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero.hero--slider .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Accesibilidad: desactivar animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-slide,
  .hero__bg-slide.is-active { transition: none; animation: none; transform: none; }
}

@media (max-width: 640px) {
  .hero.hero--slider { padding-top: clamp(80px, 22vw, 140px); }
  .hero__bg-overlay {
    background:
      linear-gradient(180deg, rgba(10, 18, 32, 0.65) 0%, rgba(10, 18, 32, 0.85) 100%);
  }
}
