/* Homepage-only additions; loaded after site/editorial CSS. */
.home-demos .section-head { grid-template-columns: 1fr; margin-bottom: 1.5rem; }
.demo-block { border-top: 1px solid var(--line); padding: 1.5rem 0 1.6rem; }
.demo-block__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.demo-block.is-open .demo-block__main { grid-template-columns: minmax(0, 1fr); }
.demo-block.is-open .demo-thumb { display: none; }
.demo-block__copy { min-width: 0; }
.demo-block__copy h3 { max-width: 28ch; margin: .6rem 0 .8rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.demo-block__text { max-width: 62ch; color: var(--ink-soft); }
.demo-block__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 1.8rem; }
.demo-price { margin: 0; color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.demo-full-link { display: inline-block; margin-top: 1.4rem; color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.demo-full-link:hover { color: #245e4c; }
.demo-full-link:focus-visible, .demo-thumb:focus-visible { outline: 3px solid #245e4c; outline-offset: 3px; }
.demo-thumb { position: relative; display: block; width: 100%; min-width: 0; padding: 0; border: 1px solid #d9d4c4; border-radius: 8px; background: #fff; overflow: hidden; cursor: pointer; box-shadow: 0 6px 18px rgba(18, 45, 49, .12); transition: box-shadow .2s ease, transform .2s ease; }
.demo-thumb img { display: block; width: 100%; height: auto; }
.demo-thumb:hover { box-shadow: 0 10px 26px rgba(18, 45, 49, .2); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .demo-thumb { transition: none; } .demo-thumb:hover { transform: none; } }
.demo-frame { position: relative; margin-top: 1.4rem; border: 1px solid var(--line); background: #fff; }
.demo-frame[hidden] { display: none; }
.demo-frame iframe { display: block; width: 100%; height: 640px; border: 0; background: #fff; }

.project-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.project-card { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.project-card .project-video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #122d31; }
.project-card figcaption { display: flex; flex: 1 1 auto; flex-direction: column; gap: .6rem; margin-top: .8rem; color: var(--ink-soft); font-size: .9rem; }
.project-card .text-link { width: fit-content; margin-top: auto; }

.faq details summary { font-size: 1.05rem; }
.about-note a:not(.text-link) { color: var(--ink); font-weight: 700; }

.home-contact__alt { font-size: 1.05rem; line-height: 2; }
.home-contact__alt a { color: var(--ink); font-weight: 700; }
.home-form { display: grid; gap: 1rem; min-width: 0; }
.home-form label { display: grid; gap: .35rem; color: var(--ink); font-size: .92rem; font-weight: 700; }
.home-form input[type="text"], .home-form textarea { width: 100%; min-width: 0; border: 1px solid #8a9185; border-radius: 4px; background: #fff; color: #222521; padding: .75rem .85rem; font-size: 16px; font-weight: 400; }
.home-form textarea { resize: vertical; }
.home-form .consent { display: flex; align-items: flex-start; gap: .7rem; font-weight: 400; color: var(--ink-soft); }
.home-form .consent input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: #245e4c; }
.home-form .consent a { color: var(--ink); text-decoration: underline; }
.home-form .button { font-size: 1rem; }
.feedback { display: none; border-left: 3px solid #245e4c; padding: .6rem .9rem; background: #fff; color: #222521; }
.feedback.show { display: block; }

@media (max-width: 800px) {
  .project-cards { grid-template-columns: 1fr; }
  .demo-block__main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .demo-block__buy { display: grid; }
  .demo-block__buy .button { width: 100%; }
  .home-form .form-actions .button { width: 100%; }
  .hero-copy h1 { max-width: none; font-size: clamp(1.7rem, 7.4vw, 2.1rem); line-height: 1.1; overflow-wrap: break-word; }
}

/* Legibility floor: no visible text below 12px on the homepage. */
.brand span, .eyebrow, .request-example__bar p, .request-message__channel, .request-avatar--owner { font-size: 12px; }
.process-step > span, .site-footer, .site-footer p, .site-footer a { font-size: 12px; }

/* Retouch: quieter "Abrir en pantalla completa" link (plain link to the demo page), tighter mobile rhythm. Thumbnails are result crops with a slim caption bar (no play overlay, no fade). */
.demo-full-link { font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
/* Captures are 560 CSS px wide; shown at <= 520px the smallest source text (13px) renders at >= 12px. */
.demo-thumb { max-width: 520px; justify-self: end; }
/* Below ~1100px the right column would be narrower than 520px (text < 12px): stack and keep the thumbnail at full 520px. */
@media (max-width: 1100px) { .demo-block__main { grid-template-columns: minmax(0, 1fr); } .demo-thumb { justify-self: start; } }
/* Below 561px the thumbnail would render under ~9px text: hide it; "Probar la demo" stays. */
@media (max-width: 560px) { .demo-thumb { display: none; } .demo-block { padding: 1.6rem 0 1.8rem; } .demo-block__main { gap: 1.2rem; } }
/* Hero modality line: on-site in Gran Canaria and remote must be visible above the fold. */
.hero-modality { display: inline-flex; text-wrap: balance; align-items: center; gap: .55rem; margin: 1.1rem 0 0; padding: .45rem .85rem; border: 1px solid #b9bfb5; border-radius: 999px; background: #fff; color: #222521; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.hero-modality::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: #4d7a55; }
@media (max-width: 560px) { .hero-modality { font-size: .88rem; } }
