/* Marketing al Grano — portada */

.t-yellow-txt { color: var(--yellow); font-weight: 500; }
.t-violet-txt { color: var(--violet-text); font-weight: 500; }

/* ---------- Inicio ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 40px; }
.hero h1 { font-size: clamp(42px, 5.8vw, 76px); font-weight: 300; margin-top: 18px; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 30em; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stage { position: relative; min-height: 470px; align-self: start; }
.photo { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: min(330px, 60%); aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--lavender); }
.float { position: absolute; border-radius: var(--r-md); padding: 11px 13px; box-shadow: 0 20px 40px -20px rgb(36 27 46 / .45); animation: bob 6s ease-in-out infinite; background: var(--surface); color: var(--ink); }
.float small { display: block; font-size: 11px; font-weight: 600; opacity: .8; }
.float strong { display: block; font-family: var(--f-display); font-size: 15px; font-weight: 500; line-height: 1.12; margin-top: 4px; }
.f1 { top: 43px; left: 0; width: 170px; }
.f1 .arrow { margin-top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: var(--on-violet); display: grid; place-items: center; margin-left: auto; }
.f2 { top: 323px; right: 0; width: 205px; animation-delay: -2s; }
.f3 { top: 258px; left: 0; width: 170px; animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.route { display: flex; align-items: center; margin-top: 10px; }
.route i { flex: 1; height: 2px; background: var(--line); }
.route span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--violet); display: grid; place-items: center; background: var(--surface); flex: none; }
.route span.done { background: var(--violet); color: var(--on-violet); }
.route span.now { background: var(--yellow); }
.route-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 6px; gap: 6px; }

@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 24px 32px; } }
@media (max-width: 560px) {
  .stage { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .photo, .float { position: static; animation: none; }
  .photo { grid-column: 1 / -1; transform: none; width: 78%; justify-self: center; }
  .f1, .f3 { width: auto; }
  .f2 { grid-column: 1 / -1; width: auto; border: 1px solid var(--line); box-shadow: none; }
  .f1 strong, .f3 strong { font-size: 17px; }
}

/* Animación de entrada (primera visita) */
.intro .stage, .intro .hero-copy > * { opacity: 0; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .w > span { display: inline-block; }

/* ---------- Secciones ---------- */
section.block { padding-block: 88px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 400; margin-top: 12px; }
.arrows { display: flex; gap: 8px; }
.all-posts { display: flex; justify-content: center; margin-top: 24px; }

/* Carrusel de artículos */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--violet) var(--lavender); }
.rail .post { scroll-snap-align: start; }

/* ---------- Temas (2 o 3 tarjetas horizontales: texto a la izquierda, foto a la derecha) ---------- */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.topic { border-radius: var(--r-lg); padding: 10px; display: flex; gap: 12px; min-width: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.topic:hover { transform: translateY(-6px); border-color: var(--violet); }
.topic .txt { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px 10px 14px 16px; }
.topic h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 400; }
.topic p { font-size: 16px; color: var(--muted); line-height: 1.45; }
.topic .see { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--violet-text); background: var(--lavender); padding: 8px 8px 8px 14px; border-radius: 999px; }
.topic .see i { width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font-style: normal; transition: background .25s; }
.topic:hover .see i { background: var(--violet); color: var(--on-violet); }
.topic .pic { width: 50%; flex: none; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--lavender); }
@media (max-width: 520px) { .topic { flex-direction: column; } .topic .pic { width: 100%; aspect-ratio: 4 / 3; } }

/* ---------- Recursos ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; padding: 10px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.feature .txt { padding: clamp(22px, 3vw, 34px) clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.feature h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 400; }
.feature p { color: var(--muted); max-width: 30em; }
.feature .btn { align-self: start; }
.prompts { position: relative; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; justify-content: center; border-radius: var(--r-md); overflow: hidden; }
.prompts img { position: absolute; inset: 0; z-index: 0; }
.prompt { position: relative; z-index: 1; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 9px 14px; font-size: 14px; line-height: 1.4; display: flex; gap: 12px; align-items: start; box-shadow: 0 10px 24px -16px rgb(36 27 46 / .5); }
.prompt:nth-of-type(2) { margin-left: 28px; }
.prompt:nth-of-type(3) { margin-right: 28px; }
.prompt b { flex: none; width: 22px; height: 22px; border-radius: 8px; background: var(--violet); color: var(--on-violet); display: grid; place-items: center; font-size: 13px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Sobre este blog ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.about-pic { position: relative; }
.about-pic .frame { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--lavender); }
.about-pic .note { position: absolute; right: -16px; bottom: 28px; max-width: 240px; background: var(--yellow); color: var(--on-yellow); border-radius: var(--r-md); padding: 12px 14px; box-shadow: 0 20px 40px -20px rgb(36 27 46 / .45); }
.about-pic .note small { font-size: 12.5px; font-weight: 600; opacity: .8; }
.about-pic .note strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.15; margin-top: 4px; }
.about h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 400; }
.about .txt { display: flex; flex-direction: column; gap: 12px; color: var(--muted); max-width: 34em; }
.about .txt strong { color: var(--ink); }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pillars span { font-weight: 600; font-size: 14px; border-radius: 999px; padding: 8px 14px; background: var(--lavender); color: var(--violet-text); }
.pillars span:nth-child(2) { background: var(--yellow); color: var(--on-yellow); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } .about-pic { max-width: 460px; } .about-pic .note { right: 12px; } }

/* ---------- Pie con celular de Instagram ---------- */
.insta { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.insta .txt { display: flex; flex-direction: column; gap: 18px; }
.insta .txt p { opacity: .9; max-width: 30em; font-size: 18px; }
.insta .txt .btn { align-self: start; }
.phone-stage { position: relative; height: 330px; display: flex; justify-content: center; align-items: flex-start; }
.phone-stage::before { content: ""; position: absolute; width: min(280px, 80%); aspect-ratio: 1; border-radius: 50%; background: var(--yellow); top: 20px; left: 50%; transform: translateX(-50%); }
.phone { position: relative; width: min(210px, 62vw); margin-top: -140px; aspect-ratio: 9 / 19; background: #19151E; border-radius: 38px; padding: 9px; box-shadow: 0 40px 60px -30px rgb(36 27 46 / .55); transform: rotate(-4deg); }
.screen { width: 100%; height: 100%; border-radius: 30px; background: #FFFFFF; color: #241B2E; overflow: hidden; display: flex; flex-direction: column; font-size: 10px; line-height: 1.3; }
.island { width: 34%; height: 22px; background: #19151E; border-radius: 999px; margin: 8px auto 0; flex: none; }
.ig-top { padding: 10px 14px 6px; font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; align-items: center; flex: none; }
.ig-head { display: flex; align-items: center; gap: 12px; padding: 4px 14px; flex: none; }
.ig-avatar { width: 48px; height: 48px; border-radius: 50%; padding: 3px; background: var(--violet); flex: none; }
.ig-avatar span { width: 100%; height: 100%; border-radius: 50%; background: #FFFFFF; overflow: hidden; padding: 7px 5px; display: grid; place-items: center; }
.ig-avatar img { width: 100%; height: 100%; object-fit: contain; }
.ig-stats-wrap { flex: 1; min-width: 0; }
.ig-name { display: block; font-size: 11px; margin-bottom: 4px; }
.ig-stats { display: flex; justify-content: space-between; gap: 4px; font-size: 8px; line-height: 1.15; }
.ig-stats span { display: flex; flex-direction: column; }
.ig-stats b { font-size: 11px; }
.ig-bio { padding: 8px 14px 0; flex: none; font-size: 9px; line-height: 1.35; }
.ig-link { display: block; color: #3B5BDB; margin-top: 2px; }
.ig-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 14px; flex: none; }
.ig-btns span { text-align: center; font-weight: 600; padding: 6px 0; border-radius: 8px; background: #F0EDF3; }
.ig-btns span:first-child { background: var(--violet); color: #FFFFFF; }
.ig-tabs { flex: none; display: flex; justify-content: center; padding: 6px 0 4px; }
.ig-tabs i { width: 30%; height: 2px; background: #241B2E; display: block; }
.ig-grid-wrap { flex: 1; overflow: hidden; border-top: 1px solid var(--line); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; animation: feed 22s linear infinite; }
.ig-grid > * { aspect-ratio: 3 / 4; overflow: hidden; }
@keyframes feed { to { transform: translateY(-50%); } }
.phone-tag { position: absolute; z-index: 2; border-radius: 16px; padding: 12px 14px; font-weight: 600; font-size: 14px; box-shadow: 0 18px 36px -18px rgb(36 27 46 / .45); animation: bob 6s ease-in-out infinite; }
.phone-tag small { display: block; font-weight: 600; font-size: 11.5px; opacity: .8; }
.pt1 { top: 4%; left: 2%; background: var(--surface); color: var(--ink); }
.pt2 { bottom: 12%; right: 0; background: var(--lavender); color: var(--on-lavender); animation-delay: -3s; }
@media (max-width: 860px) { .insta { grid-template-columns: 1fr; gap: 28px; } .phone-stage { height: auto; padding-block: 8px 24px; } .phone { margin-top: 0; } }
@media (max-width: 560px) { .phone-tag { display: none; } }
