/* =========================================================
   INFINIK STUDIO — Estilos (réplica del diseño original)
   Colores y tipografías editables en :root
   ========================================================= */
:root {
  --purple: #7626ba;
  --purple-dark: #5e1e96;
  --ink: #171519;
  --text: #1c1c1c;
  --white: #f9f9f9;
  --gray-bg: #f2f2f2;
  --dark: #1c1c1c;
  --line: #dadce0;
  --max: 1000px;
  --header-h: 56px;
  --f-mont: "Montserrat", Arial, sans-serif;
  --f-pop: "Poppins", Arial, sans-serif;
  --f-lex: "Lexend", Arial, sans-serif;
  --f-script: "Pacifico", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--f-mont); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, iframe { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; margin: 0 auto; }
.purple { color: var(--purple); }
.script { font-family: var(--f-script); font-weight: 400; color: var(--purple); text-transform: none; }
.center { text-align: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0 auto; max-width: calc(var(--max) - 48px); }

/* ---------- Botón morado (estilo Google Sites) ---------- */
.btn {
  display: inline-block; background: var(--purple); color: #fff; text-decoration: none;
  font-family: var(--f-mont); font-weight: 700; font-size: 15px; line-height: 1.2;
  padding: 10px 14px; border-radius: 4px; border: 0; cursor: pointer; transition: background .2s, box-shadow .2s;
}
.btn:hover { background: var(--purple-dark); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.btn--upper { text-transform: uppercase; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100; transition: background .25s, box-shadow .25s; }
.site-header.is-scrolled, .site-header.is-open { background: var(--dark); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.site-header .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--white); text-decoration: none; font-family: var(--f-mont); font-size: 20px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav a { color: var(--white); text-decoration: none; font-family: var(--f-mont); font-size: 16px; text-transform: uppercase; white-space: nowrap; }
.nav a:hover { opacity: .8; }
.nav a[aria-current="page"] { font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-header .bar { padding: 0 16px; }
  .brand { font-size: 17px; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--dark); transform: translateX(-100%); transition: transform .3s; overflow-y: auto; }
  .site-header.is-open .nav { transform: none; }
  .nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
  .nav a { display: block; padding: 16px 24px; font-size: 17px; }
}

/* ---------- Hero con imagen de fondo ---------- */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--white); background: #2a0f45 center / cover no-repeat; padding: calc(var(--header-h) + 20px) 24px 40px; }
.hero--home { min-height: 458px; }
.hero--page { min-height: 340px; }
.hero h1 { font-family: var(--f-mont); font-weight: 500; font-size: clamp(30px, 4.5vw, 40px); line-height: 1.45; text-transform: uppercase; max-width: 560px; }
.hero h1 strong { display: block; font-weight: 700; font-size: clamp(34px, 5.4vw, 48px); line-height: 1.2; }
.hero .btn { margin-top: 26px; }
.hero--page h1 { font-family: var(--f-lex); font-weight: 500; font-size: clamp(44px, 7vw, 72px); line-height: 1.38; max-width: none; }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--ink); color: #fff; }
.intro p { font-family: var(--f-pop); font-size: 18.7px; line-height: 1.6; color: var(--ink); margin-bottom: 16px; }
.intro p:last-child { margin-bottom: 0; }
.subtitle { font-family: var(--f-mont); font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--ink); text-align: center; line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 32px; } .split--rev-m > :first-child { order: 2; } }

.h-upper { font-family: var(--f-mont); font-weight: 700; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.35; text-transform: uppercase; }
.lead-24 { font-family: var(--f-mont); font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; margin: 16px 0 20px; }
.project .h-upper { color: var(--purple); }
.project img, .cta-dark img { width: 100%; height: auto; }

/* Cifras */
.stats { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; align-items: start; }
.stats__title { font-family: var(--f-mont); font-size: 34.7px; line-height: 1.25; color: var(--purple); text-align: right; padding-top: 40px; }
.stats__title .script { font-size: 34.7px; }
.stats__title b { font-weight: 900; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat img { width: 100%; max-width: 200px; height: auto; margin: 0 auto; }
.stat h3 { font-family: var(--f-mont); font-weight: 800; font-size: 24px; line-height: 1.5; color: var(--purple); text-transform: uppercase; margin: 12px 0 18px; }
.stat p { font-family: var(--f-pop); font-size: 16px; line-height: 1.5; color: var(--ink); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stats__title { text-align: center; padding-top: 0; }
  .stats__grid { grid-template-columns: 1fr; gap: 40px; }
}

.h-section { font-family: var(--f-mont); font-weight: 800; font-size: clamp(24px, 3.2vw, 32px); color: var(--ink); text-align: center; line-height: 1.4; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.testimonial { margin: 0; font-family: var(--f-pop); background: var(--gray-bg); padding: 24px; border-radius: 8px; }
.testimonial blockquote { margin: 0 0 12px; font-style: italic; }
.testimonial figcaption { font-weight: 600; color: var(--purple); }

.cta-dark .h-upper { color: #fff; }
.cta-dark .lead-24 { color: #fff; }

.form-embed { max-width: 640px; margin: 0 auto; }
.form-embed iframe { width: 100%; height: 1350px; border: 0; }
.form-embed .fallback { text-align: center; margin-top: 12px; font-family: var(--f-pop); font-size: 14px; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.member img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.member h2 { font-family: var(--f-mont); font-weight: 700; font-size: 21px; color: var(--purple); margin: 18px 0 20px; }
.member .role { font-family: var(--f-pop); font-weight: 600; font-style: italic; color: #474747; font-size: 15px; }
.member .role-2 { font-family: var(--f-pop); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.member .li-text { font-family: var(--f-pop); font-weight: 600; color: var(--purple); font-size: 15px; }
.member .li-icon { display: inline-flex; margin-top: 14px; color: #000; }
.member .li-icon svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; gap: 48px; } }
.body-text p { font-family: var(--f-pop); font-size: 16px; line-height: 1.6; color: var(--ink); margin-bottom: 14px; }

/* ---------- Servicios ---------- */
.svc-list { margin: 0; padding-left: 22px; font-family: var(--f-mont); font-weight: 700; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.5; color: var(--ink); }
.svc-list li { margin-bottom: 8px; }
.svc-list li::marker { font-size: .7em; }

/* ---------- Portafolio ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.videos iframe { width: 100%; aspect-ratio: 9 / 16; max-height: 520px; border: 0; background: #000; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; } }
.band-dark { background: var(--dark); color: #fff; text-align: center; padding: 34px 24px; }
.band-dark h2 { font-family: var(--f-mont); font-weight: 800; font-size: clamp(28px, 4.4vw, 42px); text-transform: uppercase; }
.h-feature { font-family: var(--f-mont); font-weight: 800; font-size: clamp(24px, 3vw, 29px); line-height: 1.3; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.h-feature .script { display: block; font-size: 1.05em; line-height: 1.25; }
.copy p { font-family: var(--f-pop); font-size: 16px; line-height: 1.5; color: var(--ink); margin-bottom: 14px; }
.copy ul { font-family: var(--f-pop); padding-left: 20px; margin: 14px 0 0; line-height: 1.6; }

/* Carrusel */
.carousel { position: relative; }
.carousel__track { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #eee; }
.carousel__track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.carousel__track img.is-active { opacity: 1; }
.carousel__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #c8c8c8; cursor: pointer; }
.carousel__dots button[aria-current="true"] { background: var(--purple); }
.carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; font-size: 18px; line-height: 36px; z-index: 2; opacity: 0; transition: opacity .2s; }
.carousel:hover .carousel__nav, .carousel__nav:focus-visible { opacity: 1; }
.carousel__nav--prev { left: 10px; } .carousel__nav--next { right: 10px; }

/* ---------- Blog ---------- */
.explore { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; max-width: 720px; margin: 0 auto; }
.explore__title { font-family: var(--f-mont); font-size: 24px; color: var(--purple); text-align: right; line-height: 1.2; }
.explore__title .script { display: block; font-size: 24px; }
.explore__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.explore__btns .btn { text-align: center; font-family: var(--f-mont); font-size: 14px; }
@media (max-width: 600px) { .explore { grid-template-columns: 1fr; } .explore__title { text-align: center; } }

.post-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: start; padding: 40px 0; }
.post-row img { width: 100%; height: auto; }
.post-row h2 { font-family: var(--f-lex); font-weight: 600; font-size: 22px; line-height: 1.4; color: var(--purple); margin-bottom: 12px; }
.post-row h2 a { text-decoration: none; }
.post-row .meta, .post-row .excerpt { font-family: var(--f-pop); font-style: italic; font-size: 14.5px; line-height: 1.6; color: var(--ink); margin-bottom: 18px; }
.post-row .excerpt--plain { font-style: normal; font-weight: 500; }
@media (max-width: 700px) { .post-row { grid-template-columns: 1fr; } }

.back-link { font-family: var(--f-lex); font-weight: 500; font-size: 18.7px; color: var(--purple); }
.article h1 { font-family: var(--f-lex); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.5; color: var(--purple); margin: 36px 0 4px; }
.article .meta { font-family: var(--f-pop); font-style: italic; font-weight: 700; font-size: 13px; color: #474747; margin-bottom: 24px; }
.article img { width: 100%; height: auto; margin-bottom: 28px; }
.article p, .article li { font-family: var(--f-pop); font-size: 15px; line-height: 1.6; color: var(--text); }
.article p { margin-bottom: 18px; }
.article h2 { font-family: var(--f-pop); font-size: 15px; font-weight: 700; margin: 28px 0 14px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 40px; }
.article ul li::marker { font-size: .8em; }
.article ol li::marker { font-weight: 700; }

/* ---------- Contacto ---------- */
.contact-banner img { width: 100%; height: auto; }
.contact-text p { font-family: var(--f-pop); font-size: 16px; line-height: 1.6; color: var(--purple); text-align: center; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.footer-logo img { width: 130px; height: auto; margin-bottom: 36px; }
.footer-tagline { font-family: var(--f-pop); font-size: 13.3px; line-height: 1.7; max-width: 130px; }
.footer-nav { list-style: none; padding: 0; margin: 0; text-align: center; display: grid; gap: 18px; align-content: start; }
.footer-nav a { font-family: var(--f-mont); font-weight: 700; font-size: 16px; text-transform: uppercase; color: #fff; }
.footer-contact h2 { font-family: var(--f-mont); font-weight: 800; font-size: 16px; margin-bottom: 24px; }
.footer-contact p { font-family: var(--f-mont); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.footer-contact a { font-family: var(--f-mont); font-weight: 500; font-size: 15px; color: #fff; word-break: break-all; }
.footer-contact .item { margin-bottom: 16px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.socials a { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; }
.socials svg { width: 22px; height: 22px; }
.copyright { text-align: center; font-family: var(--f-pop); font-size: 13.3px; line-height: 2.2; margin-top: 48px; padding: 0 24px; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo img { margin: 0 auto 24px; }
  .footer-tagline { max-width: 280px; margin: 0 auto; }
  .socials { justify-content: center; }
}

/* Evita desbordes en las cuadrículas */
.split > *, .team > *, .videos > *, .stats > *, .stats__grid > *, .post-row > *, .explore > *, .footer-grid > * { min-width: 0; }
img { height: auto; }
.split img { width: 100%; }

/* ---------- Blog: filtros, CTA y relacionados ---------- */

.post-row[hidden], .post-row[hidden] + .divider { display: none; }
.article .cta-box { background: var(--gray-bg); border-left: 4px solid var(--purple); padding: 18px 20px; margin-top: 28px; }
.related { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.related h2 { font-family: var(--f-lex); font-weight: 600; font-size: 22px; color: var(--purple); margin: 0 0 18px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; text-decoration: none; color: var(--ink); font-family: var(--f-pop); font-weight: 600; font-size: 14px; line-height: 1.4; }
.related a:hover span { color: var(--purple); }
.related img { width: 100%; height: auto; margin: 0 0 8px; }
@media (max-width: 640px) { .related ul { grid-template-columns: 1fr; } }
.hero--page .h1-like { font-family: var(--f-lex); font-weight: 500; font-size: clamp(44px, 7vw, 72px); line-height: 1.38; margin: 0; text-transform: uppercase; }

/* ---------- Blog: menú de temas ---------- */
.blog-menu { background: var(--gray-bg); padding: 36px 0 30px; position: sticky; top: var(--header-h); z-index: 20; box-shadow: 0 6px 16px -12px rgba(0,0,0,.35); }
.blog-menu__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.blog-menu .explore__title { text-align: left; margin: 0; font-weight: 400; }
.blog-menu .explore__title .script { display: inline; }
.blog-search { position: relative; flex: 0 1 340px; }
.blog-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #6b6b6b; pointer-events: none; }
.blog-search input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px 0 42px; font: 400 14px var(--f-pop); background: #fff; color: var(--ink); }
.blog-search input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(118,38,186,.18); }
.topics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.topic { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; position: relative; }
.topic:hover { border-color: var(--purple); box-shadow: 0 6px 14px -8px rgba(118,38,186,.5); transform: translateY(-1px); }
.topic__icon { flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: rgba(118,38,186,.1); color: var(--purple); }
.topic__icon svg { width: 20px; height: 20px; }
.topic__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.topic__text strong { font: 700 14px var(--f-mont); }
.topic__text small { font: 400 11.5px var(--f-pop); color: #6b6b6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic__count { margin-left: auto; flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--gray-bg); font: 700 12px var(--f-mont); display: grid; place-items: center; color: var(--ink); }
.topic.is-active { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 8px 18px -10px rgba(118,38,186,.9); }
.topic.is-active .topic__icon { background: rgba(255,255,255,.18); color: #fff; }
.topic.is-active .topic__text small { color: rgba(255,255,255,.8); }
.topic.is-active .topic__count { background: #fff; color: var(--purple); }
.filter-status { font: 500 14px var(--f-pop); color: #555; padding-top: 22px; margin: 0; }
.blog-empty { font: 400 15px var(--f-pop); padding: 30px 0; text-align: center; }
.blog-empty button { background: none; border: 0; color: var(--purple); font: inherit; text-decoration: underline; cursor: pointer; }
.cat-tag { color: var(--purple); font-weight: 700; font-style: normal; text-decoration: none; }
.cat-tag:hover { text-decoration: underline; }
#articulos { scroll-margin-top: 250px; }
@media (max-width: 1000px) {
  .topics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; scrollbar-width: none; }
  .topics::-webkit-scrollbar { display: none; }
  .topic { flex: 0 0 auto; scroll-snap-align: start; }
}
@media (max-width: 700px) {
  .blog-menu { padding: 22px 0 18px; }
  .blog-menu__head { margin-bottom: 14px; }
  .blog-menu .explore__title { font-size: 20px; }
  .blog-search { flex: 1 1 100%; }
  .topic__text small { display: none; }
  .topic { padding: 8px 12px; }
  .topic__icon { width: 30px; height: 30px; }
  #articulos { scroll-margin-top: 200px; }
}
.blog-menu .container { max-width: 1180px; }
.topic { min-width: 0; }
@media (max-width: 700px) { .blog-menu { position: static; box-shadow: none; } #articulos { scroll-margin-top: 70px; } }
