/* Festivos.cl — cascarón del sitio. Las herramientas traen su propio CSS;
   aquí todo va con prefijo fx- y valores explícitos para que los resets
   de las herramientas (* { margin:0; padding:0 }) no lo desarmen. */
:root {
  --fx-blue: #2563eb;
  --fx-blue-dark: #1e3a8a;
  --fx-red: #d52b1e;
  --fx-ink: #0f172a;
  --fx-muted: #475569;
  --fx-bg: #f1f5fb;
  --fx-card: #ffffff;
  --fx-line: #dbe3ef;
}
html { scroll-behavior: smooth; }
.fx-body {
  margin: 0;
  background: var(--fx-bg);
  color: var(--fx-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}
.fx-body img { max-width: 100%; height: auto; }
.fx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* Header */
.fx-header {
  background: linear-gradient(90deg, var(--fx-blue-dark), var(--fx-blue));
  color: #fff;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .18);
}
.fx-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.fx-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.fx-brand img { width: 44px; height: 44px; border-radius: 10px; background: #fff; object-fit: cover; }
.fx-brand b { color: #fca5a5; font-weight: 800; }
.fx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.fx-nav li { position: relative; margin: 0; padding: 0; }
.fx-nav a { display: block; color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.fx-nav a:hover, .fx-nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); }
.fx-sub { display: none !important; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 23, 42, .2); padding: 6px !important; flex-direction: column; align-items: stretch !important; }
.fx-sub a { color: var(--fx-ink); font-weight: 500; }
.fx-sub a:hover, .fx-sub a[aria-current="page"] { background: var(--fx-bg); }
.fx-has-sub:hover .fx-sub, .fx-has-sub:focus-within .fx-sub { display: flex !important; }
.fx-burger { display: none; background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #fff; font-size: 1.4rem; border-radius: 8px; padding: 4px 12px; cursor: pointer; }

/* Contenido */
.fx-main { padding: 24px 0 40px; }
.fx-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 8px 0 20px; text-align: center; color: var(--fx-blue-dark); line-height: 1.2; }
.fx-tool { overflow-x: hidden; }
.fx-lead { text-align: center; color: var(--fx-muted); font-size: 1.1rem; margin: 0 0 24px; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.fx-card { display: block; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: 14px; padding: 22px; text-decoration: none; color: var(--fx-ink); transition: transform .15s, box-shadow .15s; }
.fx-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 99, 235, .14); }
.fx-card h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--fx-blue-dark); }
.fx-card p { margin: 0 0 14px; color: var(--fx-muted); }
.fx-card span { color: var(--fx-red); font-weight: 700; }

/* Bloques heredados de WordPress (portada) */
.fx-tool .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; padding: 0; }
.fx-tool .wp-block-gallery figure, .fx-tool figure.wp-block-image { margin: 0; flex: 1 1 100%; }
.fx-tool .wp-block-gallery img { width: 100%; border-radius: 14px; display: block; }
.fx-tool .wp-block-columns { display: flex; flex-wrap: wrap; gap: 20px; }
.fx-tool .wp-block-column { flex: 1 1 280px; min-width: 0; }

/* Footer */
.fx-footer { background: var(--fx-ink); color: #cbd5e1; padding: 28px 0 18px; font-size: .95rem; }
.fx-footer a { color: #fff; }
.fx-footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fx-footer small { color: #94a3b8; }
.fx-copy { margin-top: 18px; padding-top: 14px; border-top: 1px solid #1e293b; color: #94a3b8; font-size: .85rem; }

@media (max-width: 900px) {
  .fx-burger { display: block; }
  .fx-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--fx-blue-dark); padding: 8px 16px 14px; }
  .fx-nav.open { display: block; }
  .fx-nav ul { flex-direction: column; align-items: stretch; }
  .fx-sub { display: flex !important; position: static; box-shadow: none; background: transparent; padding: 0 0 0 12px !important; }
  .fx-sub a { color: #dbeafe; }
  .fx-sub a:hover { background: rgba(255, 255, 255, .1); }
}
