:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --ink: #1f2430;
  --muted: #667085;
  --line: #eadfce;
  --accent: #ff6b4a;
  --accent-2: #2bb5a0;
  --shadow: 0 1px 2px rgba(31, 36, 48, .05), 0 8px 24px rgba(31, 36, 48, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#15171d; --surface:#1d2029; --ink:#f3efe8; --muted:#a0a6b4; --line:#2b2f3b; --shadow:0 8px 24px rgba(0,0,0,.35); }
}
:root[data-theme="dark"] { --bg:#15171d; --surface:#1d2029; --ink:#f3efe8; --muted:#a0a6b4; --line:#2b2f3b; --shadow:0 8px 24px rgba(0,0,0,.35); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-image: radial-gradient(600px 400px at 85% -5%, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
                    radial-gradient(500px 380px at -5% 30%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent);
  background-repeat: no-repeat;
}
a { color: inherit; }
main, .top, footer { width: min(960px, 100% - 32px); margin-inline: auto; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.brand { font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo { width: 72px; height: 72px; margin: -20px -8px -20px -20px; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
.noscript-apps { line-height: 1.7; padding-left: 1.2em; }
nav a:hover { color: var(--ink); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; }

.hero { padding: 84px 0 72px; }
.eyebrow { color: var(--accent-2); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 18px; }
h1 { font: 700 clamp(36px, 7vw, 66px)/1.08 ui-serif, Georgia, "Times New Roman", serif; letter-spacing: -.02em; margin: 0 0 22px; max-width: 14em; }
h1 em { font-style: italic; color: var(--accent); }
.lead { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0 0 32px; }
.btn { display: inline-block; background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }

.section { padding: 40px 0; }
h2 { font: 700 28px/1.2 ui-serif, Georgia, serif; margin: 0 0 22px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.arrows { display: flex; gap: 8px; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.carousel { --per: 4; --gap: 18px; display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: 4px; padding: 6px 4px 22px; margin: -6px -4px 0; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .card { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; }
@media (max-width: 860px) { .carousel { --per: 3; } }
@media (max-width: 640px) { .carousel { --per: 2; } }
@media (max-width: 420px) { .carousel { --per: 1; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .status { align-self: flex-start; }
.card .tags { min-height: 58px; align-content: flex-start; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.action { font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; width: fit-content; }
.action:hover { text-decoration: underline; }
.card h3 a { text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretched:focus-visible { outline: none; }
.card:has(.stretched:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card p.desc { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; height: 6.4em; }
.action.main { position: relative; z-index: 1; }
.action.more { color: var(--accent-2); }
.card:hover .action.more { text-decoration: underline; }
.note { color: var(--muted); font-size: 12px; line-height: 1.4; }
.card h3 { margin: 12px 0 6px; font-size: 20px; }
.status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.status.ok { background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.about p, #contacto p { max-width: 38em; color: var(--muted); }
.links a { font-weight: 600; color: var(--accent); }
footer { padding: 40px 0 32px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
@media (max-width: 520px) { nav { gap: 14px; } .hero { padding: 48px 0; } }

.coffee { display: inline-flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s, border-color .15s; }
.coffee:hover { transform: translateY(-3px); border-color: var(--accent); }
.coffee:hover .cup { animation: wiggle .5s; }
.cup { font-size: 30px; display: inline-block; }
.coffee small { display: block; color: var(--muted); font-size: 14px; max-width: 26em; }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .coffee:hover .cup { animation: none; } html { scroll-behavior: auto; } }

.mail a { font-weight: 600; font-size: 19px; color: var(--accent); text-decoration: none; }
.mail a:hover { text-decoration: underline; }

.crumbs { margin: 8px 0 28px; font-size: 15px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.ficha { max-width: 760px; padding-bottom: 24px; }
.ficha h1 { margin: 14px 0 14px; font-size: clamp(34px, 6vw, 54px); }
.ficha .lead { margin-bottom: 18px; }
.ficha .tags { margin-bottom: 26px; }
.ficha .cta .note { display: block; margin-top: 10px; font-size: 14px; }
.ficha section { padding: 28px 0 0; }
.ficha section h2 { font-size: 24px; margin-bottom: 12px; }
.ficha li { margin-bottom: 6px; }
.ficha ul, .ficha ol { padding-left: 1.3em; color: var(--muted); }
.ficha li strong { color: var(--ink); }
.ficha section p { color: var(--muted); }
.video { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
