:root {
  --ink: #111111;
  --muted: #626262;
  --paper: #f5f5f5;
  --panel: #ffffff;
  --night: #080808;
  --night-soft: #222222;
  --amber: #ff1010;
  --amber-dark: #d60000;
  --rose: #d60000;
  --teal: #ff1010;
  --line: #dedede;
  --shadow: 0 20px 60px rgba(0, 0, 0, .06);
  --radius: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.site-header { height: 116px; padding: 0 clamp(22px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; background: #fff; color: #111; position: sticky; top: 0; z-index: 30; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { width: 42px; height: 42px; border: 2px solid var(--amber); color: var(--amber); border-radius: 50% 50% 47% 53%; display: grid; place-items: center; font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: 14px; transform: rotate(-3deg); }
.brand-mark.large { width: 64px; height: 64px; font-size: 20px; margin-bottom: 18px; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .12em; font-size: 14px; }
.brand small { color: #bfb4ca; margin-top: 3px; font-size: 11px; }
.main-nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.main-nav a { color: #111; }
.main-nav a:hover { color: var(--amber); }
.menu-button { display: none; background: transparent; border: 1px solid #111; color: #111; padding: 8px 12px; border-radius: 8px; }

.hero { min-height: 650px; color: white; background: #080808; background-size: cover; background-position: center; padding: clamp(70px, 10vw, 130px) clamp(24px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 60px; align-items: end; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 500px; height: 500px; border: 1px solid rgba(255,16,16,.3); border-radius: 48% 52% 45% 55%; right: -120px; top: -170px; transform: rotate(25deg); }
.hero-copy, .hero-card { position: relative; z-index: 2; }
.eyebrow { color: var(--amber-dark); font-size: 12px; letter-spacing: .17em; text-transform: uppercase; font-weight: 800; display: inline-block; margin-bottom: 14px; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { font-family: Arial, Helvetica, sans-serif; font-size: clamp(48px, 7vw, 92px); line-height: .94; letter-spacing: -.04em; margin: 0 0 28px; max-width: 900px; font-weight: 700; }
.hero h1 em { color: var(--amber); font-weight: 700; }
.hero-copy > p { color: #d0d0d0; max-width: 620px; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-actions, .contact-actions, .form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.button { min-height: 46px; border-radius: 0; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-weight: 750; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--amber); border-color: var(--amber); }
.button-primary:hover { background: #d60000; }
.button-ghost { color: inherit; background: transparent; border-color: currentColor; opacity: .9; }
.hero-card { justify-self: end; max-width: 320px; border-left: 3px solid var(--amber); padding: 18px 0 18px 24px; }
.hero-card span, .hero-card strong, .hero-card small { display: block; }
.hero-card span { color: var(--amber); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; margin-bottom: 9px; }
.hero-card strong { font-family: Arial, Helvetica, sans-serif; font-size: 27px; line-height: 1.15; }
.hero-card small { color: #ccc; margin-top: 10px; }

.section { padding: 90px clamp(24px, 8vw, 120px); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; background: var(--panel); align-items: end; }
.intro h2, .section-heading h2, .contact-section h2 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; line-height: 1.05; font-size: clamp(36px, 5vw, 64px); margin: 0; }
.intro p { color: var(--muted); line-height: 1.8; font-size: 18px; margin: 0; }
.content-section:nth-of-type(even) { background: #ededed; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(34px, 4vw, 54px); }
.count { color: var(--muted); font-size: 13px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.content-card { background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 470px; }
.card-image { height: 245px; position: relative; overflow: hidden; background: #111; display: grid; place-items: center; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.content-card:hover .card-image img { transform: scale(1.04); }
.card-image > span:not(.type-pill) { font-family: Arial, Helvetica, sans-serif; font-size: 82px; color: rgba(255,255,255,.85); }
.placeholder-taller { background: #ff1010; }
.placeholder-servicio { background: #333; }
.placeholder-espectaculo { background: #111; }
.type-pill { position: absolute; left: 16px; top: 16px; background: var(--amber); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 7px 10px; border-radius: 999px; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { color: var(--rose); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.card-body h3 { font-family: Arial, Helvetica, sans-serif; font-size: 27px; font-weight: 700; margin: 12px 0 10px; }
.card-body p { color: var(--muted); line-height: 1.6; margin: 0; }
.card-footer { border-top: 1px solid var(--line); margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-footer a { color: var(--rose); font-weight: 800; font-size: 13px; }
.empty-public { border: 1px dashed #aaa; color: var(--muted); padding: 45px; text-align: center; border-radius: var(--radius); }
.contact-section { padding: 90px clamp(24px, 8vw, 120px); background: var(--night); color: white; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.contact-section p { color: #ccc; line-height: 1.7; }
.site-footer { background: #000; color: #aaa; padding: 26px clamp(24px, 8vw, 120px); display: flex; justify-content: space-between; font-size: 12px; }

.auth-page { min-height: 100vh; background: #111; display: grid; place-items: center; padding: 28px; }
.auth-card { width: min(100%, 470px); background: var(--panel); border-radius: 24px; padding: clamp(28px, 6vw, 54px); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.auth-card h1 { font-family: Arial, Helvetica, sans-serif; font-size: 40px; font-weight: 700; margin: 0 0 10px; }
.auth-card > p { color: var(--muted); line-height: 1.5; }
.stack-form { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; color: #403748; }
input, select, textarea { width: 100%; border: 1px solid #d9d0c6; background: white; color: var(--ink); border-radius: 10px; padding: 12px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--amber-dark); box-shadow: 0 0 0 3px rgba(255,16,16,.13); }
.back-link { color: #d60000; font-weight: 750; font-size: 13px; display: inline-block; margin-top: 22px; }
.alert { border-radius: 11px; padding: 13px 15px; margin: 14px 0; font-size: 14px; }
.alert.success { background: #dcf4eb; color: #17604e; }
.alert.error { background: #fce1e5; color: #8b2638; }

.admin-body { background: #f3f3f3; }
.admin-sidebar { width: 250px; position: fixed; inset: 0 auto 0 0; background: var(--night); color: white; padding: 26px 18px; z-index: 40; display: flex; flex-direction: column; }
.admin-brand { padding: 0 8px 30px; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar nav a { color: #cfc4d5; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 700; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: #252525; color: var(--amber); }
.sidebar-footer { margin-top: auto; border-top: 1px solid #392b46; padding-top: 18px; display: grid; gap: 12px; }
.sidebar-footer a { color: #b9adbf; padding: 0 10px; font-size: 12px; }
.admin-shell { min-height: 100vh; margin-left: 250px; }
.admin-topbar { height: 76px; padding: 0 36px; background: rgba(255,253,250,.92); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.admin-topbar small, .admin-topbar strong { display: block; text-align: right; }
.admin-topbar small { color: var(--muted); font-size: 10px; }
.sidebar-toggle { display: none; margin-right: auto; border: 0; background: transparent; font-size: 24px; }
.admin-main { padding: 40px; max-width: 1500px; margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { font-family: Arial, Helvetica, sans-serif; font-size: 44px; font-weight: 700; margin: 0; }
.page-heading .back-link { margin: 0 0 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat-card, .form-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 35px rgba(34,20,43,.05); }
.stat-card { padding: 24px; }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card strong { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 38px; margin: 14px 0 8px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.quick-grid a { background: var(--night); color: white; border-radius: 16px; padding: 28px; display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; align-items: center; }
.quick-grid a > span { grid-row: span 2; width: 42px; height: 42px; background: var(--amber); color: var(--night); border-radius: 50%; display: grid; place-items: center; font-size: 22px; }
.quick-grid small { color: #bdb1c4; }
.filter-row { display: flex; gap: 12px; margin-bottom: 16px; }
.filter-row input { flex: 1; }
.filter-row select { width: 220px; }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.admin-table th, .admin-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.admin-table td { font-size: 13px; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { color: var(--muted); margin-top: 4px; max-width: 310px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.actions a, .actions button { color: #d60000; font-weight: 750; border: 0; background: none; padding: 0; }
.actions button { color: #a73449; }
.status { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: .05em; background: #e8e2da; }
.status-publicado, .status-pagada { background: #d8f2e8; color: #19614e; }
.status-cancelado, .status-cancelada { background: #f9dce1; color: #92283e; }
.status-pendiente, .status-reservada { background: #fff0c9; color: #7d5500; }
.empty-cell { text-align: center !important; color: var(--muted); padding: 45px !important; }
.admin-form { display: grid; gap: 18px; }
.form-card { padding: 26px; }
.form-card h2 { font-family: Arial, Helvetica, sans-serif; font-size: 25px; font-weight: 700; margin: 0 0 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
label small { color: var(--muted); font-weight: 700; }
label.check { display: flex; flex-direction: row; align-items: center; gap: 9px; }
label.check input { width: auto; }
.current-image { width: 150px; }
.current-image img { width: 150px; height: 90px; object-fit: cover; border-radius: 9px; }
.current-image small { color: var(--muted); }
.form-actions { justify-content: flex-end; margin-top: 0; }
.form-actions .button-ghost { color: var(--ink); }
.total-preview { background: #f1ebe4; border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; }
.total-preview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.total-preview strong { font-size: 22px; }

@media (max-width: 1050px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .site-header { height: 88px; padding: 0 18px; }
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; top: 88px; left: 0; right: 0; background: #fff; padding: 20px; flex-direction: column; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .hero { min-height: 680px; grid-template-columns: 1fr; align-content: end; padding: 70px 24px 55px; gap: 30px; }
  .hero-card { justify-self: start; }
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 68px 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .contact-section { padding: 68px 22px; flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 22px; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-shell { margin-left: 0; }
  .admin-topbar { padding: 0 20px; }
  .sidebar-toggle { display: block; }
  .admin-main { padding: 26px 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .stat-grid, .quick-grid { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; }
  .filter-row select { width: 100%; }
  .form-grid, .form-grid.four { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
}

/* Marca original y lenguaje editorial del sitio. */
.logo-frame { display: block; position: relative; width: 226px; height: 108px; overflow: hidden; flex-shrink: 0; background: #fff; }
.logo-frame .brand-logo { position: absolute; width: 280px; max-width: none; height: 245px; left: -27px; top: -68px; }
.site-header { border-bottom: 1px solid #eee5df; }
.main-nav { font-weight: 600; letter-spacing: .025em; font-size: 14px; }
.main-nav a { padding: 12px 0; }
.public-site { --ink: #2b2024; --muted: #75636a; --paper: #fbf7f2; --panel: #fffdf9; --line: #e9ddd7; --rose: #a63043; --amber-dark: #a63043; --radius: 20px; --shadow: 0 16px 45px rgba(75, 29, 44, .07); }
.public-site h1, .public-site h2, .public-site h3 { font-family: Georgia, "Times New Roman", serif; text-transform: none; font-weight: 400; letter-spacing: -.035em; text-wrap: pretty; }
.public-site .hero { align-items: center; background-image: radial-gradient(ellipse at 85% 25%, rgba(178, 57, 73, .38), transparent 55%), linear-gradient(115deg, rgba(30, 20, 30, .96), rgba(70, 27, 43, .88) 65%, rgba(111, 42, 52, .77)), var(--hero-image, linear-gradient(#21151f, #21151f)); }
.public-site .hero::after { width: 510px; height: 610px; border: 1px solid rgba(255, 210, 192, .14); border-radius: 50%; background: transparent; right: -200px; top: -210px; transform: rotate(-30deg); pointer-events: none; }
.public-site .hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 115%, rgba(225, 106, 76, .16), transparent 55%); pointer-events: none; }
.public-site .hero h1 { font-size: clamp(48px, 6vw, 84px); line-height: 1.07; font-weight: 400; }
.public-site .hero h1 em { font-style: italic; font-weight: 400; color: #ffb8a4; }
.public-site .hero-copy > p { color: #e7d7dc; line-height: 1.7; font-size: clamp(17px, 1.6vw, 20px); max-width: 520px; }
.public-site .eyebrow { letter-spacing: .13em; font-weight: 700; font-size: 11px; }
.public-site .hero .eyebrow, .public-site .hero-card span, .public-site .contact-section .eyebrow { color: #ffb8a4; }
.public-site .hero-card { border: 1px solid rgba(255, 227, 214, .2); border-radius: 22px 22px 22px 4px; padding: 28px; background: linear-gradient(140deg, rgba(255, 226, 216, .1), rgba(255, 226, 216, .025)); backdrop-filter: blur(10px); }
.public-site .hero-card strong { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; }
.public-site .hero-card small { color: #e7d7dc; line-height: 1.6; }
.public-site .intro { background: radial-gradient(ellipse at 95% 0, #fae7df, transparent 65%), linear-gradient(135deg, #fffdf9, #fbf3ed); }
.public-site .intro h2, .public-site .section-heading h2, .public-site .contact-section h2 { font-weight: 400; font-size: clamp(36px, 4.3vw, 59px); line-height: 1.12; }
.public-site .content-section:nth-of-type(even) { background: linear-gradient(135deg, #f5eae5, #f9f2ed 55%, #f5eeee); }
.public-site .button { border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .01em; min-height: 48px; padding: 0 24px; }
.public-site .button-primary { background: linear-gradient(120deg, #d83b34, #a51e3b); border-color: transparent; box-shadow: 0 8px 24px rgba(151, 31, 54, .18); color: #fff; }
.public-site .button-primary:hover { background: linear-gradient(120deg, #be2d2a, #8c1732); }
.public-site .button-ghost { border-color: rgba(255, 231, 223, .5); background: rgba(255, 245, 239, .035); }
.public-site .content-card { border: 1px solid rgba(112, 64, 67, .1); box-shadow: var(--shadow); }
.public-site .card-body h3 { font-size: 29px; line-height: 1.18; font-weight: 400; }
.public-site .card-body p { margin-bottom: 24px; }
.public-site .card-image > span:not(.type-pill) { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: 100px; }
.public-site .placeholder-espectaculo { background: radial-gradient(ellipse at 15% 0, #b34c5b, transparent 75%), linear-gradient(140deg, #582a42, #291e32); }
.public-site .placeholder-taller { background: radial-gradient(ellipse at 85% 10%, #f0b18e, transparent 70%), linear-gradient(140deg, #a74650, #732b49); }
.public-site .placeholder-servicio { background: radial-gradient(ellipse at 15% 10%, #bba1ac, transparent 70%), linear-gradient(140deg, #77596f, #3a2c46); }
.public-site .type-pill { border-radius: 999px; background: #fff8ef; color: #773448; letter-spacing: .08em; }
.public-site .contact-section { border-top: 0; background: radial-gradient(ellipse at 100% 100%, rgba(174, 68, 77, .4), transparent 60%), linear-gradient(120deg, #251b29, #492335); }
.public-site .contact-section p { color: #e3ced5; }
.public-site .site-footer { background: #201820; color: #c4afb9; }
section[id], main[id] { scroll-margin-top: 116px; }
a:focus-visible, button:focus-visible { outline: 3px solid #bd4b60; outline-offset: 5px; }
.admin-brand { padding: 0; margin-bottom: 30px; }
.admin-brand .logo-frame { width: 214px; }
.auth-brand { margin-bottom: 26px; }
@media (max-width: 780px) {
  .site-header .logo-frame { width: 174px; height: 82px; }
  .site-header .brand-logo { width: 216px; height: 189px; left: -21px; top: -52px; }
  .public-site .hero { min-height: 600px; }
  .public-site .hero h1 { font-size: clamp(43px, 9.8vw, 68px); }
  .public-site .hero-card { justify-self: stretch; max-width: none; padding: 24px; }
  section[id], main[id] { scroll-margin-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
