/* CDECAR – piezas compartidas por todo el sitio y la consigna: colores, tipografía, encabezado,
   pie de página y panel de foto con esquinas recortadas. Nombres pensados para no chocar con consigna.css. */
/* ---------- Tipografía de la marca ---------- */
@font-face { font-family: 'Campton'; src: url('../fonts/campton-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Campton'; src: url('../fonts/campton-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Campton'; src: url('../fonts/campton-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Campton'; src: url('../fonts/campton-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Campton'; src: url('../fonts/campton-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --navy: #283445;          /* azul CDECAR (editable en el panel) */
  --navy-2: #1f2937;
  --brand: #E5B450;         /* acento (editable en el panel) */
  --bg: #e9eaeb;
  --frame: #f4f4f3;
  --white: #fff;
  --ink: #1f2733;
  --mut: #6b7079;
  --line: rgba(40, 52, 69, .12);
  --ok: #1f9d55; --err: #d9363e;
  --r: 30px; --r-lg: 36px; --r-md: 24px; --r-sm: 16px;
  --gap: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Campton', 'Avenir Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic path[fill], .ic circle[fill] { stroke: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }
.sq { display: inline-block; width: 12px; height: 12px; background: var(--brand); flex: none; }
.caps { font-size: 13px; font-weight: 500; text-transform: uppercase; line-height: 1.45; letter-spacing: .01em; }
.plus { color: var(--mut); letter-spacing: .3em; font-size: 14px; }
.dot-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; flex: none; transition: transform .3s var(--ease), background .25s; }
.dot-btn:hover { transform: rotate(45deg); }
.dot-btn .ic { width: 17px; height: 17px; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 0; background: var(--white); color: var(--navy); font: 600 14px/1.2 var(--font); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.sbtn:hover { background: var(--brand); transform: translateY(-2px); }
.sbtn::before, .sbtn::after { content: none; }

.site-header > .wrap, .site-footer > .wrap, .cta-final > .wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gap); }
/* ---------- Encabezado (todas las páginas y la consigna) ---------- */
.site-header { padding: var(--gap) 0 0; position: relative; z-index: 50; }
.hd { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--frame); border-radius: var(--r-lg); padding: 12px 12px 12px 26px; }
.hd-logo img { height: 28px; width: auto; }
.hd-nav { display: flex; align-items: center; gap: 4px; padding: 6px; background: var(--white); border-radius: 999px; }
.hd-nav a { padding: 11px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--ink); transition: background .2s, color .2s; }
.hd-nav a:hover { background: var(--frame); }
.hd-nav a[aria-current="page"] { background: var(--navy); color: #fff; padding: 11px 30px; }
.hd-cta { display: flex; align-items: center; gap: 8px; }
.hd-cta .sbtn { background: var(--white); color: var(--navy); text-transform: uppercase; font-weight: 600; font-size: 14px; letter-spacing: .01em; padding: 14px 24px; }
.hd-cta .sbtn:hover { background: var(--brand); }
.hd-cta .dot-btn { width: 50px; height: 50px; }
.hd-cta .dot-btn .ic { width: 21px; height: 21px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span + span { margin-top: 4px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) and (min-width: 981px) {
  .hd { padding-left: 20px; gap: 10px; }
  .hd-nav a { padding: 10px 13px; font-size: 14px; }
  .hd-nav a[aria-current="page"] { padding: 10px 18px; }
  .hd-cta .sbtn { padding: 13px 16px; font-size: 13px; }
}
@media (max-width: 980px) {
  :root { --gap: 10px; --r-lg: 26px; --r: 24px; }
  .hd { padding: 8px 8px 8px 18px; flex-wrap: wrap; }
  .hd-logo img { height: 24px; }
  .nav-toggle { display: grid; order: 2; }
  .hd-cta { order: 1; margin-left: auto; }
  .hd-cta .sbtn { display: none; }
  .hd-cta .dot-btn { width: 48px; height: 48px; }
  .hd-nav { order: 3; display: none; flex-direction: column; align-items: stretch; width: 100%; border-radius: 22px; padding: 8px; }
  .hd-nav a, .hd-nav a[aria-current="page"] { padding: 14px 18px; font-size: 16px; }
  .nav-open .hd-nav { display: flex; }
}

/* ---------- Pie de página ---------- */
.cta-final { padding: var(--gap) 0 0; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--brand); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); }
.cta-card h2 { font-size: clamp(30px, 3.6vw, 54px); color: var(--navy); margin: 0; }
.cta-card h2 b { color: var(--navy); }
.cta-card p { margin: 8px 0 0; color: rgba(40, 52, 69, .8); font-size: 17px; }
.cta-card .btn { background: var(--navy); color: #fff; }
.site-footer { padding: var(--gap) 0; }
.sf-in { background: var(--navy); color: rgba(255,255,255,.72); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px) 26px; }
.sf-in a { color: inherit; }
.sf-in a:hover { color: #fff; }
.sf-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.sf-brand img { height: 34px; width: auto; margin-bottom: 18px; }
.sf-brand p { max-width: 320px; font-size: 15px; }
.site-footer h3 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 16px; display: flex; align-items: center; gap: 10px; }
.site-footer h3::before { content: ""; width: 10px; height: 10px; background: var(--brand); }
.sf-row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 15px; }
.sf-row .ic { margin-top: 3px; color: var(--brand); }
.sf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.sf-socials { display: flex; gap: 8px; margin-top: 18px; }
.sf-socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s, color .2s; }
.sf-socials a:hover { background: var(--brand); color: var(--navy); }
.sf-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: 13px; }
.sf-credit { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float .ic { width: 27px; height: 27px; }
@media (max-width: 860px) { .sf-grid { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sf-grid { grid-template-columns: 1fr; } }

/* ---------- Inicio: presentación ---------- */
.hx { display: grid; grid-template-columns: 41% 1fr; min-height: min(820px, calc(100svh - 120px)); }
.hx-left { display: flex; flex-direction: column; padding: 14px 34px 6px 10px; }
.hx-kick { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.hx-kick .caps { color: var(--mut); letter-spacing: .14em; font-size: 12px; }
.hx h1 { font-size: clamp(42px, 4.6vw, 72px); line-height: .98; letter-spacing: -.045em; margin: 0; }
.faces { display: inline-flex; vertical-align: middle; margin-left: 12px; transform: translateY(-.12em); }
.faces img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid var(--frame); }
.faces img + img { margin-left: -16px; }
.scroll-cue { display: flex; align-items: center; gap: 16px; margin: 38px 0 32px; color: var(--mut); }
.scroll-cue i { flex: 1; border-top: 1.5px dashed rgba(40,52,69,.25); }
.scroll-cue a { width: 96px; height: 46px; border-radius: 999px; border: 1.5px dashed rgba(40,52,69,.3); display: grid; place-items: center; color: var(--navy); }
.scroll-cue .ic { width: 22px; height: 22px; stroke-width: 1.5; }
.scroll-cue .wheel { animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(4px); opacity: 0; } 100% { opacity: 0; } }
.hx-about { max-width: 250px; }
.hx-about .sq { margin-bottom: 14px; }
.hx-about p { margin: 0; }
.hx-foot { margin-top: auto; display: flex; justify-content: space-between; padding-top: 24px; }

.panel { --nw: 450px; position: relative; border-radius: var(--r); overflow: hidden; isolation: isolate; min-height: 620px; background: #cfd6dc; }
.panel > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.panel > .ph.out { opacity: 0; transform: scale(1.04); }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.28), transparent 35%); }
.notch { position: absolute; z-index: 3; background: var(--frame); }
.notch::before, .notch::after { content: ""; position: absolute; width: var(--r); height: var(--r); background: radial-gradient(circle at var(--cx) var(--cy), transparent calc(var(--r) - .5px), var(--frame) var(--r)); }
.n-top { top: 0; right: 0; padding: 0 0 14px 14px; border-bottom-left-radius: var(--r); display: flex; align-items: center; gap: 8px; }
.n-top::before { left: calc(-1 * var(--r)); top: 0; --cx: 0; --cy: 100%; }
.n-top::after { right: 0; bottom: calc(-1 * var(--r)); --cx: 0; --cy: 100%; }
.n-top .sbtn { background: var(--white); color: var(--navy); text-transform: uppercase; font-weight: 600; font-size: 14px; }
.n-top .sbtn:hover { background: var(--brand); }
.n-bot { left: 0; bottom: 0; width: var(--nw); padding: 14px 14px 0 0; border-top-right-radius: var(--r); }
.n-bot::before { left: 0; top: calc(-1 * var(--r)); --cx: 100%; --cy: 0; }
.n-bot::after { right: calc(-1 * var(--r)); bottom: 0; --cx: 100%; --cy: 0; }
.vlabel { position: absolute; z-index: 2; top: 24px; left: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vlabel span { writing-mode: vertical-rl; transform: rotate(180deg); background: var(--white); color: var(--navy); border-radius: 999px; padding: 18px 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.chip-f { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: var(--white); color: var(--navy); border-radius: 18px; padding: 14px 22px 14px 16px; font-size: 15px; font-weight: 600; box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); white-space: nowrap; transition: top .3s var(--ease); }
.chip-f small { font-weight: 400; color: var(--mut); font-size: 14px; }
.chip-f .ic { width: 20px; height: 20px; }
.chip-f::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.chip-f.c1 { top: 33%; left: 36%; }
.chip-f.c2 { top: 57%; right: 15%; }
.tags { position: absolute; z-index: 2; right: 24px; bottom: 24px; display: grid; grid-template-columns: repeat(2, minmax(118px, auto)); gap: 8px; justify-content: end; transition: bottom .3s var(--ease); }
.tags span { padding: 10px 18px; border-radius: 999px; font-size: 14px; color: #fff; text-align: center; white-space: nowrap; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tipo { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 3px solid transparent; transition: border-color .25s, transform .3s var(--ease); }
.tipo:hover { transform: translateY(-3px); }
.tipo.on { border-color: var(--navy); }
.tipo img { width: 100%; height: 100%; object-fit: cover; }
.tipo b { position: absolute; left: 8px; right: 8px; bottom: 8px; background: var(--white); color: var(--navy); border-radius: 14px; padding: 9px 0; font-size: 15px; font-weight: 500; text-align: center; }
.tipo i { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); display: grid; place-items: center; color: #fff; }
.tipo i .ic { width: 12px; height: 12px; }
.pager { display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 4px 4px; }
.pager .n { font-size: 34px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--navy); }
.pager .n small { font-size: 14px; color: var(--mut); }
.pager .arr { display: flex; gap: 18px; color: var(--navy); }
.pager .arr .ic { width: 22px; height: 22px; transition: transform .2s; }
.pager .arr button:hover .ic { transform: translateX(3px); }
.pager .arr button:first-child:hover .ic { transform: translateX(-3px); }
@media (max-width: 1180px) and (min-width: 981px) { .hx h1 { font-size: clamp(38px, 4.2vw, 60px); } }
@media (max-width: 980px) {
  .hx { grid-template-columns: 1fr; min-height: 0; }
  .hx-left { padding: 10px 4px 22px; }
  .faces img { width: 42px; height: 42px; }
  .hx-about { max-width: none; }
  .hx-foot { display: none; }
  .panel { min-height: 500px; overflow: visible; margin-bottom: 200px; }
  .panel > .ph, .panel::after { border-radius: var(--r); }
  .n-top { display: none; }
  .vlabel span { padding: 14px 8px; font-size: 11px; }
  .chip-f.c1 { top: 20%; left: 18%; } .chip-f.c2 { top: 44%; right: 8%; }
  .tags { right: 14px; bottom: 14px; grid-template-columns: repeat(2, auto); }
  .tags span { padding: 8px 14px; font-size: 12px; }
  .n-bot { left: 0; right: 0; bottom: auto; top: calc(100% + 12px); width: auto !important; padding: 0; background: none; }
  .n-bot::before, .n-bot::after { display: none; }
}

.site-header a, .site-footer a, .wa-float, .hx a, .notch a { text-decoration: none; }
.site-header img, .site-footer img, .hx img { display: block; max-width: 100%; }
.faces img { display: inline-block; }

/* ---------- Temporada navideña ---------- */
.xmas-ribbon { position: relative; z-index: 60; text-align: center; padding: 10px 16px; font: 500 14px/1.3 var(--font); color: var(--xr-fg, #fff);
  background: var(--xr-bg, #C8202A) repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 18px, transparent 18px 36px); }
.xmas-ribbon a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.xmas-ribbon .xr-star { color: currentColor; opacity: .8; font-size: 12px; }
.xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
.is-xmas .sq { background: #c8202a; }
.is-xmas .hd-logo::after { content: ""; }
@media (prefers-reduced-motion: reduce) { .xmas-snow { display: none; } }

/* Textos movidos con el editor visual (solo en computadora; en celular se acomodan solos) */
@media (min-width: 981px) { [data-ed-moved] { position: relative; translate: var(--dx, 0) var(--dy, 0); display: inline-block; } }
