/* Guia Ocerin - Diseno nuevo (web estatica, limpio en blanco con acento rojo) */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --text: #33363b;
  --muted: #6f7680;
  --border: #e6e8eb;
  --primary: #c64343;
  --primary-strong: #a83636;
  --primary-soft: #fdecec;
  --accent: #c64343;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 8px 24px rgba(20, 22, 26, .06);
  --maxw: 1200px;
  --content: 74ch;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
::selection { background: var(--primary-soft); color: var(--primary-strong); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #d95a5a, var(--primary-strong)); color: #fff; font-weight: 900;
  font-size: 1rem; box-shadow: var(--shadow);
}
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--text); padding: .5rem .7rem; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--primary); background: var(--surface-2); }

.nav-toggle {
  display: none; margin-left: auto; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: var(--radius-sm); width: 42px; height: 42px; cursor: pointer;
  font-size: 1.2rem; line-height: 1;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.6rem 0;
}
.hero h1 { margin: 0 0 .4rem; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.02em; position: relative; padding-bottom: .35rem; }
.hero h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 999px; background: var(--primary); }
.hero p { margin: 0; color: var(--muted); max-width: 60ch; font-size: 1.05rem; }
.hero .actions { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.05rem;
  border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); text-decoration: none; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }

/* Layout */
main { display: block; padding: 2rem 0 3rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.2rem; align-items: start; }
.layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.layout.no-sidebar .content-wrap { max-width: none; margin: 0; width: 100%; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1.1rem; }
.section-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; }
.section-head .more { font-size: .9rem; font-weight: 600; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem 1.45rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .55rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card .meta { font-size: .8rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.card h3 { margin: 0; font-size: 1.22rem; line-height: 1.3; }
.card h3 a { color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .thumb { border-radius: var(--radius-sm); overflow: hidden; margin: -.35rem -.35rem .25rem; }
.card .thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pill {
  display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: .18rem .55rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-strong); border: 1px solid var(--primary-soft);
}
.pill:hover { text-decoration: none; background: #fbdcdc; }

/* Article */
article.post, .page-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
article.post > header { margin-bottom: 1.4rem; border-bottom: 1px solid var(--border); padding-bottom: 1.1rem; }
article.post h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; }
.byline { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .35rem .8rem; align-items: center; }

.entry { font-size: 1.02rem; }
.entry > * + * { margin-top: 1.05em; }
.entry h2 { font-size: 1.5rem; margin-top: 1.8em; letter-spacing: -.01em; scroll-margin-top: 80px; }
.entry h3 { font-size: 1.22rem; margin-top: 1.5em; scroll-margin-top: 80px; }
.entry h4 { font-size: 1.05rem; margin-top: 1.3em; }
.entry ul, .entry ol { padding-left: 1.4rem; }
.entry li + li { margin-top: .35em; }
.entry img { border-radius: var(--radius-sm); }
.entry figure { margin: 1.4em 0; text-align: center; }
.entry figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.entry blockquote { margin: 1.4em 0; padding: .4rem 1.1rem; border-left: 4px solid var(--primary); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.entry table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--border); padding: .5rem .65rem; text-align: left; }
.entry th { background: var(--surface-2); }
.entry hr { border: 0; border-top: 1px solid var(--border); margin: 1.8em 0; }
.entry pre { background: var(--surface-2); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; }
.entry code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.entry iframe { max-width: 100%; border-radius: var(--radius-sm); aspect-ratio: 16/9; width: 100%; height: auto; }

/* TOC */
.toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.6rem; }
.toc h2 { margin: 0 0 .5rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .93rem; }
.toc li + li { margin-top: .2rem; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 84px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.widget h2 { margin: 0 0 .7rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { margin-top: .5rem; }
.widget li a { font-size: .93rem; color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags a { font-size: .8rem; padding: .22rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.tags a:hover { color: var(--primary); text-decoration: none; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .4rem; margin: 2rem 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; text-align: center; padding: .45rem .7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600;
}
.pagination a:hover { background: var(--surface-2); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 3rem; padding: 2.2rem 0; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.6rem; }
.site-footer h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .35rem; }
.site-footer a { color: var(--text); font-size: .92rem; }
.site-footer .legal { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.notice { background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--muted); font-size: .92rem; }

/* Search-free utility */
.muted { color: var(--muted); }
.center { text-align: center; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .6rem 1.1rem 1rem; }
  .nav a { display: block; padding: .7rem .6rem; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .card .thumb img { aspect-ratio: 4/3; }
}
