:root {
  --ink: #0c1c2b;
  --muted: #5e6b78;
  --line: #dce3e8;
  --paper: #f5f7f8;
  --white: #fff;
  --blue: #0067a8;
  --blue-dark: #004b7b;
  --cyan: #18b7d4;
  --orange: #f2992e;
  --danger: #b42318;
  --success: #197148;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(12, 28, 43, .10);
}

/* Fichas de producto y trazabilidad reglamentaria */
.wide-form { max-width: 1180px; }
.wide-form form { display: grid; gap: 1.5rem; }
.wide-form fieldset { border: 1px solid var(--border, #d8dee6); border-radius: 12px; padding: 1.25rem; }
.wide-form legend { font-size: 1.15rem; font-weight: 700; padding: 0 .45rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .55rem 1rem; margin: 1rem 0; }
.publish-panel { background: #f5f8fb; border-left: 4px solid #005b96; padding: 1rem 1.2rem; }
.button-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.button-secondary { background: #e9f0f5; color: #183247; }
.compliance-badge { display: inline-block; border-radius: 999px; font-size: .8rem; font-weight: 700; padding: .25rem .6rem; }
.compliance-badge.ready { background: #e2f6e9; color: #176637; }
.compliance-badge.pending { background: #fff0d8; color: #8a4b00; }
.two-column-admin { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr); gap: 2rem; align-items: start; }
.panel { border: 1px solid #d8dee6; border-radius: 12px; padding: 1.25rem; }
.document-card { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e2e7eb; padding: 1rem 0; }
.document-card p { margin: .25rem 0; }
.product-information { padding-top: 0; }
.legal-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.legal-card { border: 1px solid #dce3e8; border-radius: 12px; background: #fff; padding: 1.25rem; }
.legal-card h2 { margin-top: 0; font-size: 1.2rem; }
.legal-card h3 { font-size: 1rem; margin: 1rem 0 .25rem; }
.legal-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; }
.legal-card dt { font-weight: 700; }
.legal-card dd { margin: 0; }
.plain-list { padding-left: 1.2rem; }
.previous-price, .unit-price { color: #536475; font-size: .92rem; }
.document-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.document-links a { border: 1px solid #cbd8e2; border-radius: 8px; padding: .75rem 1rem; text-decoration: none; }
.product-image-editor { display: grid; gap: 1.15rem; margin-top: 1rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.product-image-editor-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.product-image-editor-heading h2 { margin: 0; font-size: 1.05rem; }
.product-image-editor-heading p { margin: .3rem 0 0; }
.product-image-count { flex: 0 0 auto; padding: .3rem .65rem; color: var(--blue); border-radius: 999px; background: #e7f4fa; font-size: .78rem; font-weight: 800; }
.product-image-section { display: grid; gap: .65rem; }
.product-image-section h3 { margin: 0; font-size: .9rem; }
.product-image-thumbnail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: .8rem; }
.product-image-thumbnail { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 9px; background: white; }
.product-image-thumbnail img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: white; }
.product-image-thumbnail figcaption { overflow: hidden; padding: .45rem .55rem; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.product-image-empty { margin: 0; padding: 1rem; color: var(--muted); border: 1px dashed #b7c5cd; border-radius: 9px; text-align: center; }
.product-image-editor .form-field { margin-bottom: 0; }
.product-image-editor .form-field small { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .two-column-admin, .legal-product-grid { grid-template-columns: 1fr; }
  .product-image-editor-heading { display: grid; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background:
        radial-gradient(
            circle at top left,
            rgba(8, 119, 181, 0.08),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f9fcfe 0%,
            #eef7fb 50%,
            #f7fbfd 100%
        ); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.utility-bar { color: #dceaf3; background: var(--ink); font-size: .78rem; letter-spacing: .04em; }
.utility-content { display: flex; justify-content: space-between; padding: 7px 0; }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(255,255,255,.96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); }
.nav-row { display: grid; grid-template-columns: 160px minmax(260px, 1fr) auto; gap: 25px; align-items: center; min-height: 82px; }
.brand img { width: 140px; max-height: 58px; object-fit: contain; object-position: left center; }
.brand span { color: var(--blue); font-size: 2.15rem; font-weight: 900; letter-spacing: -.08em; }
.global-search { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.global-search input { flex: 1; min-width: 0; padding: 12px 18px; border: 0; outline: 0; background: transparent; }
.global-search button { padding: 0 22px; color: var(--white); border: 0; background: var(--blue); cursor: pointer; }
.account-nav { display: flex; gap: 16px; align-items: center; white-space: nowrap; font-size: .92rem; font-weight: 650; }
.account-nav form { margin: 0; }
.link-button { padding: 0; color: inherit; border: 0; background: none; cursor: pointer; font-weight: inherit; }
.cart-badge { display: inline-grid; place-items: center; min-width: 22px; min-height: 22px; padding: 0 6px; color: white; border-radius: 999px; background: var(--orange); font-size: .75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 21px; color: var(--white); border: 0; border-radius: 9px; background: var(--blue); font-weight: 750; cursor: pointer; transition: .2s ease; }
.button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-small { min-height: 38px; padding: 8px 14px; }
.button-full { width: 100%; }
.button-ghost { color: var(--ink); border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.92); }
.hero { position: relative; overflow: hidden; color: white; background: linear-gradient(120deg, #061b2b 0%, #063f67 55%, #057b9a 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .20; background-image: linear-gradient(30deg, transparent 48%, #fff 49%, transparent 50%); background-size: 34px 34px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: center; min-height: 510px; padding-block: 70px; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: .78rem; font-weight: 850; letter-spacing: .15em; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.7rem, 5vw, 4.75rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy { max-width: 680px; margin: 25px 0; color: #d8eaf3; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 12px; }
.hero-panel { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.06); text-align: center; }
.hero-mark { font-size: 4.5rem; font-weight: 900; letter-spacing: -.1em; }
.hero-panel p { margin: -20px 0 0; color: #bfeaf2; }
.signal { position: absolute; border: 1px solid rgba(24,183,212,.55); border-radius: 50%; }
.signal-one { inset: -18px; }.signal-two { inset: -50px; }.signal-three { inset: -84px; }
.section { padding-block: 68px; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 28px; }
.section-heading h1, .section-heading h2, .page-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > a:not(.button) { color: var(--blue); font-weight: 750; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { min-height: 340px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: .2s ease; }
.category-card:hover, .product-card:hover { border-color: #9ac7de; box-shadow: var(--shadow); transform: translateY(-3px); }
.category-image { display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(145deg, #f5f8f9, #e8eef1); }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.category-card:hover .category-image img { transform: scale(1.035); }
.category-body { display: block; padding: 20px 22px 22px; }
.category-icon { display: grid; place-items: center; width: 46px; height: 46px; color: var(--blue); border-radius: 12px; background: #e7f4fa; font-weight: 850; }
.category-card h3 { margin: 15px 0 5px; font-size: 1.16rem; }.category-card p { min-height: 48px; color: var(--muted); }.category-link { color: var(--blue); font-weight: 750; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: .2s ease; }
.product-image { display: grid; place-items: center; aspect-ratio: 4/3; overflow: hidden; color: #a8bbc6; background: linear-gradient(145deg, #f5f8f9, #e8eef1); font-size: 2.7rem; font-weight: 900; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 18px; }.product-meta { margin: 0; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }.product-body h3 { margin: 7px 0; font-size: 1.08rem; line-height: 1.28; }.product-description { min-height: 48px; color: var(--muted); font-size: .9rem; }.price-row { display: flex; gap: 7px; align-items: baseline; margin: 14px 0 10px; }.price-row strong { font-size: 1.3rem; }.price-row span { color: var(--muted); font-size: .75rem; }
.stock { display: inline-block; padding: 4px 9px; color: var(--success); border-radius: 999px; background: #e9f7ef; font-size: .72rem; font-weight: 800; }.stock-por_encargo { color: #875400; background: #fff3d9; }.stock-agotado_temporalmente { color: var(--danger); background: #feecea; }
.notice-stack { padding-top: 15px; }.notice { display: flex; gap: 15px; padding: 13px 16px; border: 1px solid #b6deea; border-radius: 9px; background: #edf9fc; }.notice-warning { border-color: #f1d396; background: #fff8e8; }
.flash-stack { position: fixed; z-index: 50; top: 100px; left: 50%; transform: translateX(-50%); }.flash { margin-top: 8px; padding: 13px 17px; border-radius: 9px; box-shadow: var(--shadow); background: white; }.flash-success { border-left: 5px solid var(--success); }.flash-danger { border-left: 5px solid var(--danger); }.flash-warning { border-left: 5px solid var(--orange); }.flash-info { border-left: 5px solid var(--blue); }
.page-heading { margin-bottom: 32px; }.page-heading > p:last-child { color: var(--muted); }.catalog-layout { display: grid; grid-template-columns: 210px 1fr; gap: 32px; }.filters { align-self: start; display: grid; position: sticky; top: 115px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); }.filters h2 { margin: 0 0 12px; font-size: 1rem; }.filters a { padding: 8px 10px; color: var(--muted); border-radius: 7px; }.filters a.active { color: var(--blue); background: #eaf5fa; font-weight: 750; }.pagination { display: flex; justify-content: space-between; margin-top: 28px; padding: 15px 0; border-top: 1px solid var(--line); }.pagination a { color: var(--blue); font-weight: 750; }
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; }.gallery { display: grid; gap: 12px; }.gallery img, .image-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: contain; border-radius: var(--radius); background: var(--paper); }.image-placeholder { display: grid; place-items: center; color: #a8bbc6; font-size: 5rem; font-weight: 900; }.product-summary h1 { margin: 0; font-size: clamp(2.3rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.045em; }.lead { color: var(--muted); font-size: 1.12rem; }.detail-price { margin: 25px 0 8px; font-size: 2rem; font-weight: 850; }.detail-price small { color: var(--muted); font-size: .8rem; font-weight: 500; }.add-form { display: flex; gap: 10px; margin-top: 24px; }.add-form input { width: 80px; text-align: center; }.form-help { color: var(--muted); font-size: .85rem; }.detail-copy { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
.auth-shell { min-height: 650px; display: grid; place-items: center; padding: 60px 20px; background: var(--paper); }.auth-card { width: min(480px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }.auth-card-wide { width: min(760px, 100%); }.auth-card h1 { margin: 0; font-size: 2.3rem; letter-spacing: -.04em; }.auth-card > p { color: var(--muted); }.auth-switch { margin: 20px 0 0; text-align: center; }.auth-switch a, label a { color: var(--blue); font-weight: 700; }
label { display: grid; gap: 6px; margin-bottom: 16px; font-size: .9rem; font-weight: 700; }input, select, textarea { width: 100%; padding: 11px 12px; color: var(--ink); border: 1px solid #bdc8cf; border-radius: 8px; background: white; outline: none; }input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,103,168,.12); }.check-row { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; font-weight: 500; }.check-row input { width: auto; margin-top: 4px; }.field-errors { margin: 0; padding-left: 18px; color: var(--danger); font-size: .8rem; font-weight: 500; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }.form-page form { max-width: 900px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.form-field { display: grid; gap: 6px; margin-bottom: 16px; font-size: .9rem; font-weight: 700; }
.form-field > label { margin: 0; }
.check-field { margin-bottom: 12px; }
.check-field .check-row { margin-bottom: 0; }
.field-invalid, .field-invalid > label, .field-invalid .check-row { color: var(--danger); }
input.input-invalid, select.input-invalid, textarea.input-invalid { border: 2px solid var(--danger); background: #fff8f8; }
input.input-invalid:focus, select.input-invalid:focus, textarea.input-invalid:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(190, 35, 45, .14); }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; }.cart-lines { display: grid; gap: 12px; }.cart-line { display: grid; grid-template-columns: 90px 1fr 115px 100px 60px; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }.cart-thumb { display: grid; place-items: center; width: 90px; aspect-ratio: 1; overflow: hidden; color: #9fb2bd; border-radius: 9px; background: var(--paper); font-weight: 900; }.cart-line h2 { margin: 3px 0; font-size: 1rem; }.cart-line p { margin: 0; color: var(--muted); font-size: .85rem; }.cart-line form { margin: 0; }.cart-line button:not(.danger-link) { width: 100%; margin-top: 5px; border: 0; background: none; color: var(--blue); cursor: pointer; }.danger-link { padding: 0; color: var(--danger); border: 0; background: none; cursor: pointer; }.order-summary { align-self: start; position: sticky; top: 115px; padding: 24px; border-radius: var(--radius); background: var(--ink); color: white; }.order-summary h2 { margin-top: 0; }.order-summary > div { display: flex; justify-content: space-between; gap: 10px; margin: 15px 0; }.order-summary > div span:last-child { text-align: right; color: #c5d3dc; }.order-summary hr { border: 0; border-top: 1px solid #3f5261; }.order-summary p { color: #aebfca; font-size: .78rem; }.summary-total { font-size: 1.1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }.stat-grid > * { display: grid; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }.stat-grid strong { color: var(--blue); font-size: 2.6rem; }.stat-grid span { color: var(--muted); }.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }table { width: 100%; border-collapse: collapse; }th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }th { color: var(--muted); background: var(--paper); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }td small { color: var(--muted); }.table-actions { vertical-align: middle; white-space: nowrap; }.table-actions > * { display: inline-block; margin-right: 12px; vertical-align: middle; }.table-actions > *:last-child { margin-right: 0; }.table-actions a { color: var(--blue); }.muted-row { opacity: .55; }
.table-actions form { margin-top: 0; margin-bottom: 0; }.action-link { color: var(--blue); }.status-pill { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; }.status-active { color: var(--success); background: #e9f7ef; }.status-inactive { color: var(--danger); background: #feecea; }
.category-image-editor { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: center; margin: 8px 0 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.category-file-field { margin: 0; }
.category-file-field small { color: var(--muted); font-weight: 500; }
.category-image-preview { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; }
.category-image-preview img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 9px; background: white; }
.category-table-image { width: 82px; height: 52px; object-fit: cover; border-radius: 7px; background: var(--paper); }
.category-table-placeholder { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.empty-state { grid-column: 1/-1; padding: 55px; border: 1px dashed #b7c5cd; border-radius: var(--radius); background: var(--paper); text-align: center; }.page-error { margin-block: 80px; }.page-error h1 { margin: 0; color: var(--blue); font-size: 5rem; }.legal-page { max-width: 820px; padding-block: 70px; }.legal-page h1 { font-size: 3rem; }.legal-draft { padding: 20px; border-left: 5px solid var(--orange); background: #fff8e8; }
.site-footer { margin-top: 40px; padding: 55px 0; color: #c9d6de; background: var(--ink); }.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }.footer-grid strong { color: white; }.footer-grid div { display: grid; align-content: start; gap: 7px; }.footer-grid p { margin: 0; }.footer-grid a { color: #c9d6de; }
@media (max-width: 980px) { .nav-row { grid-template-columns: 110px 1fr; }.account-nav { grid-column: 1/-1; justify-content: center; padding-bottom: 13px; }.hero-grid { grid-template-columns: 1fr; }.hero-panel { display: none; }.category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }.catalog-layout { grid-template-columns: 1fr; }.filters { position: static; grid-template-columns: repeat(2, 1fr); }.filters h2 { grid-column: 1/-1; }.product-detail { grid-template-columns: 1fr; }.cart-layout { grid-template-columns: 1fr; }.order-summary { position: static; }.cart-line { grid-template-columns: 75px 1fr 100px; }.cart-line > strong, .cart-line > form:last-child { grid-column: auto; }.stat-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .container { width: min(100% - 24px, 1180px); }.utility-content { justify-content: center; }.utility-content span:last-child { display: none; }.nav-row { grid-template-columns: 75px 1fr; gap: 10px; }.brand span { font-size: 1.7rem; }.global-search button { padding: 0 12px; }.account-nav { gap: 10px; overflow-x: auto; justify-content: flex-start; }.hero-grid { min-height: auto; padding-block: 55px; }.hero h1 { font-size: 2.8rem; }.hero-actions { flex-direction: column; }.section { padding-block: 45px; }.category-grid, .product-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }.section-heading { align-items: flex-start; flex-direction: column; }.auth-card { padding: 25px; }.cart-line { grid-template-columns: 60px 1fr; }.cart-thumb { width: 60px; }.cart-line > form, .cart-line > strong { grid-column: 2; }.footer-grid { gap: 25px; }.category-image-editor { grid-template-columns: 1fr; } }

/* Contacto, avisos y promociones */
.button-secondary { color: var(--ink); border: 1px solid var(--line); background: var(--white); }
.button-secondary:hover { color: var(--blue); background: var(--paper); }
.hero-claim { margin: 0 0 26px; color: #fff; font-size: 1.35rem; line-height: 1.25; }
.site-notice-stack { position: relative; z-index: 10; }
.site-notice { color: #0b4058; border-bottom: 1px solid #b6deea; background: #edf9fc; }
.site-notice-warning { color: #684000; border-color: #f1d396; background: #fff4d7; }
.site-notice-success { color: #125538; border-color: #a8d9bf; background: #e9f7ef; }
.site-notice-content { display: flex; gap: 14px; align-items: center; min-height: 52px; padding-block: 8px; }
.site-notice-content img { width: 42px; height: 42px; object-fit: cover; border-radius: 7px; }
.site-notice-content div { display: flex; flex: 1; gap: 10px; align-items: baseline; }
.site-notice-content a { color: var(--blue); font-weight: 800; white-space: nowrap; }
.promotion-section { padding-bottom: 0; }
.promotion-grid { display: grid; gap: 20px; }
.promotion-card { display: grid; grid-template-columns: minmax(220px, .7fr) 1.3fr; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.promotion-card > img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.promotion-card > div { align-self: center; padding: 36px; }
.promotion-card h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; }
.promotion-card p:not(.eyebrow) { color: var(--muted); }
.promotion-card-warning { border-color: #f1d396; background: #fff8e8; }
.promotion-card-success { border-color: #a8d9bf; background: #effaf4; }
.contact-hero { padding-block: 70px; color: white; background: linear-gradient(120deg, #061b2b, #063f67); }
.contact-hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.contact-hero p:last-child { max-width: 700px; color: #d8eaf3; font-size: 1.15rem; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; align-items: start; }
.contact-details h2, .contact-form-card h2 { margin-top: 0; font-size: 2rem; line-height: 1.1; }
.contact-list { display: grid; gap: 0; margin: 28px 0; }
.contact-list > div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list dt, .message-meta dt { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.contact-list dd, .message-meta dd { margin: 3px 0 0; }
.contact-list a, .message-meta a, .map-link { color: var(--blue); font-weight: 750; }
.contact-list small { display: block; color: var(--muted); }
.contact-form-card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.map-shell { overflow: hidden; min-height: 330px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #eaf3f6, #dce9ee); }
.map-shell iframe { width: 100%; height: 330px; border: 0; }
.map-placeholder { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 330px; padding: 30px; text-align: center; }
.map-placeholder strong { color: var(--blue); font-size: 1.35rem; }
.map-placeholder span, .map-placeholder small { color: var(--muted); }
.map-link { display: inline-block; margin-top: 12px; }
.contact-admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.message-card, .status-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.message-card h1 { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); }
.message-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 22px 0; border-block: 1px solid var(--line); }
.message-body { margin: 24px 0; padding: 22px; border-radius: 10px; background: var(--paper); white-space: pre-wrap; }
.message-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.status-card { position: sticky; top: 115px; }
.status-card h2 { margin-top: 0; }
.status-pendiente, .status-programado { color: #875400; background: #fff3d9; }
.status-leido, .status-publicado { color: var(--blue); background: #e7f4fa; }
.status-respondido { color: var(--success); background: #e9f7ef; }
.status-finalizado, .status-inactivo { color: var(--muted); background: var(--paper); }
.notice-table-image { float: left; width: 72px; height: 48px; margin-right: 12px; object-fit: cover; border-radius: 7px; }
.notice-image-editor { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: center; margin: 8px 0 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.notice-image-editor > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 9px; }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 35px; }
.legal-page h2 { margin-top: 32px; }
.legal-page a { color: var(--blue); font-weight: 700; }

@media (max-width: 820px) {
  .contact-layout, .contact-admin-layout, .promotion-card { grid-template-columns: 1fr; }
  .promotion-card > img { min-height: auto; max-height: 320px; }
  .status-card { position: static; }
  .site-notice-content div { display: grid; gap: 2px; }
}
@media (max-width: 640px) {
  .contact-form-card, .message-card, .status-card { padding: 22px; }
  .message-meta, .notice-image-editor { grid-template-columns: 1fr; }
  .site-notice-content { align-items: flex-start; flex-wrap: wrap; }
  .site-notice-content a { margin-left: 56px; }
  .promotion-card > div { padding: 25px; }
}

.notice-popup-open { overflow: hidden; }
.notice-popup[hidden] { display: none; }
.notice-popup { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: clamp(16px, 4vw, 54px); background: rgba(2, 16, 27, .88); backdrop-filter: blur(7px); }
.notice-popup-panel { position: relative; display: grid; grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr); width: min(1120px, 100%); max-height: calc(100vh - 32px); overflow-x: hidden; overflow-y: auto; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.48); }
.notice-popup-image { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.notice-popup-content { min-width: 0; align-self: center; padding: clamp(34px, 6vw, 74px); overflow-wrap: anywhere; word-break: normal; }
.notice-popup-content h1 { margin: 0 0 22px; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
.notice-popup-body { max-width: 100%; margin-bottom: 28px; color: var(--muted); font-size: 1.12rem; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.notice-popup-body h1, .notice-popup-body h2, .notice-popup-body h3 { color: var(--ink); line-height: 1.08; }
.notice-popup-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: #fff; border: 2px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(5,28,43,.88); font: 400 2rem/1 Arial, sans-serif; cursor: pointer; box-shadow: 0 5px 18px rgba(0,0,0,.25); }
.notice-popup-close:hover, .notice-popup-close:focus { background: var(--blue); transform: scale(1.05); }
.notice-popup-warning { border-color: #e7b957; }
.notice-popup-success { border-color: #72c59a; }
.notice-editor-field { margin-bottom: 22px; }
.notice-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; border: 1px solid #bdc8cf; border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--paper); }
.notice-editor-toolbar button, .notice-editor-toolbar select { width: auto; min-height: 38px; margin: 0; padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
.notice-color-control { display: flex; align-items: center; gap: 6px; margin: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .8rem; }
.notice-color-control input { width: 30px; height: 28px; padding: 1px; border: 0; }
.notice-rich-editor { min-width: 0; min-height: 280px; padding: 22px; overflow-x: hidden; overflow-y: auto; white-space: normal; overflow-wrap: anywhere; word-break: normal; border: 1px solid #bdc8cf; border-radius: 0 0 8px 8px; background: #fff; outline: none; }
.notice-rich-editor:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,103,168,.12); }
.notice-editor-source { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .notice-popup { padding: 10px; }
  .notice-popup-panel { grid-template-columns: 1fr; max-height: calc(100vh - 20px); }
  .notice-popup-image { min-height: 190px; max-height: 34vh; }
  .notice-popup-content { padding: 30px 24px; }
  .notice-popup-content h1 { font-size: clamp(2rem, 11vw, 3.3rem); }
  .notice-popup-close { top: 10px; right: 10px; }
}
.form-error-summary {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.25rem;
    border: 2px solid #b42318;
    border-radius: 12px;
    background: #fff1f0;
    color: #7a271a;
    box-shadow: 0 4px 14px rgba(180, 35, 24, 0.12);
}

.form-error-summary-title {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.form-error-summary p {
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.form-error-summary ul {
    margin: 0;
    padding-left: 1.3rem;
}

.form-error-summary li + li {
    margin-top: 0.35rem;
}

.form-error-summary a {
    color: #7a271a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-error-summary a:hover {
    color: #b42318;
}

/* =========================================================
   PANEL DE ADMINISTRACIÓN
   ========================================================= */

.admin-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.25rem;
}

.admin-dashboard-header h1 {
    margin-bottom: 0.35rem;
}

.admin-dashboard-subtitle {
    margin: 0;
    color: #667085;
    font-size: 1.05rem;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    border: 1px solid #dce5eb;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #25a768;
    box-shadow: 0 0 0 4px rgba(37, 167, 104, 0.12);
}


.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}


.admin-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 175px;
    padding: 1.45rem;
    border: 1px solid #dbe5eb;
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 18px rgba(15, 38, 55, 0.04);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.admin-card:hover {
    transform: translateY(-3px);
    border-color: #9bc9df;
    box-shadow: 0 12px 28px rgba(15, 38, 55, 0.10);
}


.admin-card-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eef8fc;
    color: #0877b5;
    font-size: 1.45rem;
    font-weight: 800;
}


.admin-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


.admin-card-label {
    margin-bottom: 0.35rem;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.admin-card strong {
    margin: 0;
    color: #0877b5;
    font-size: 2.65rem;
    line-height: 1;
}


.admin-card-text {
    margin-top: 0.55rem;
    color: #344054;
    font-size: 1rem;
    font-weight: 600;
}


.admin-card-arrow {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    color: #98a2b3;
    font-size: 1.35rem;
    transition: transform 0.18s ease;
}

.admin-card:hover .admin-card-arrow {
    transform: translateX(4px);
    color: #0877b5;
}


.admin-card-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}


.admin-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0.65rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}


.admin-chip.success {
    background: #e9f8f0;
    color: #137a4b;
}

.admin-chip.warning {
    background: #fff4dd;
    color: #a15c00;
}

.admin-chip.danger {
    background: #feeceb;
    color: #b42318;
}

.admin-chip.neutral {
    background: #f2f4f7;
    color: #667085;
}


.admin-card-inventory {
    border-top: 4px solid #0877b5;
}


.admin-card-attention {
    border-top: 4px solid #f59e0b;
}


.admin-card-disabled {
    opacity: 0.65;
    background: #f8fafb;
    cursor: default;
}

.admin-card-disabled:hover {
    transform: none;
    box-shadow: 0 5px 18px rgba(15, 38, 55, 0.04);
}


@media (max-width: 1000px) {
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 680px) {
    .admin-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}