/* =========================================================
   AbreCuba — hoja de estilos
   Prioridades: lectura fácil, botones grandes, buen contraste
   (WCAG AA), foco visible y uso cómodo desde el celular.
   ========================================================= */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0b2447;
    --text: #1b2a41;
    --muted: #4a5b78;
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --line: #d9e2ef;
    --line-strong: #9fb3cf;

    --brand: #0b5cad;
    --brand-dark: #083b73;
    --brand-light: #e6f0fb;
    --accent: #ffc53d;
    --accent-dark: #f0b000;
    --wa: #0f7b3f;
    --wa-dark: #0a5c2f;
    --danger: #b42318;
    --success: #137a3f;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 32px rgba(11, 36, 71, .10);
    --shadow-soft: 0 4px 16px rgba(11, 36, 71, .08);
    --focus: 0 0 0 3px #fff, 0 0 0 6px #0b5cad;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.125rem; /* 18 px: cómodo de leer */
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

[hidden] {
    display: none !important;
}

h1, h2, h3 {
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

a:hover {
    color: var(--brand-dark);
}

/* ---------- Foco visible (teclado) ---------- */
:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

main:focus {
    outline: none;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

/* ---------- Cabecera ---------- */
.site-header {
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 14px rgba(11, 36, 71, .06);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    min-width: max-content;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
}

.brand-text strong span {
    color: var(--brand);
}

.brand-text small {
    margin-top: 3px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a,
.nav .nav-admin {
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nav a:hover,
.nav .nav-admin:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.nav a.active {
    background: var(--brand-light);
    color: var(--brand-dark);
    box-shadow: inset 0 -3px 0 var(--brand);
}

.nav a.nav-cta {
    background: var(--accent);
    color: var(--ink);
    font-weight: 800;
    margin-left: 8px;
    padding: 12px 20px;
    box-shadow: 0 2px 0 var(--accent-dark);
}

.nav a.nav-cta:hover {
    background: var(--accent-dark);
    color: var(--ink);
}

.nav .nav-admin {
    color: var(--muted);
    font-size: .95rem;
}

.nav-logout {
    margin: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 8px 16px;
    border: 2px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--ink);
    content: "";
    transition: transform .2s ease, background .2s ease;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before { position: absolute; left: 0; top: -7px; }
.nav-toggle-bars::after  { position: absolute; left: 0; top: 7px; }

body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 24px;
    border: 2px solid var(--brand);
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn:active {
    transform: translateY(0);
}

.btn[disabled] {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.btn.secondary {
    background: #fff;
    color: var(--brand-dark);
    border-color: var(--line-strong);
}

.btn.secondary:hover {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.btn.ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, .15);
    border-color: #fff;
    color: #fff;
}

.btn.danger {
    background: #fff;
    color: var(--danger);
    border-color: var(--danger);
}

.btn.danger:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn.small {
    min-height: 44px;
    padding: 8px 16px;
    font-size: .98rem;
    border-radius: 12px;
}

.hero-submit-btn,
.big-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    box-shadow: 0 3px 0 var(--accent-dark);
}

.hero-submit-btn:hover,
.big-cta:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--ink);
}

.big-cta {
    min-height: 60px;
    padding: 14px 32px;
    font-size: 1.15rem;
}

/* ---------- Portada (hero) ---------- */
.hero,
.listings-hero,
.submit-hero {
    background:
        linear-gradient(135deg, rgba(4, 18, 40, .92) 0%, rgba(6, 43, 94, .74) 55%, rgba(6, 99, 123, .68) 100%),
        url('../img/fondo-1600.jpg') center / cover no-repeat;
    background-color: #083b73;
    color: #fff;
}

@media (max-width: 680px) {
    .hero,
    .listings-hero,
    .submit-hero {
        background:
            linear-gradient(135deg, rgba(4, 18, 40, .92) 0%, rgba(6, 43, 94, .78) 55%, rgba(6, 99, 123, .72) 100%),
            url('../img/fondo-800.jpg') center / cover no-repeat;
        background-color: #083b73;
    }
}

.hero {
    padding: clamp(40px, 7vw, 84px) 0 clamp(80px, 9vw, 110px);
}

.listings-hero,
.submit-hero {
    padding: clamp(32px, 5vw, 56px) 0;
}

.hero h1,
.listings-hero h1,
.submit-hero h1 {
    color: #fff;
    max-width: 20ch;
}

.hero p,
.listings-hero .lead,
.submit-hero .lead {
    color: #eaf2fc;
    font-size: 1.2rem;
    max-width: 62ch;
}

.hero-kicker {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.hero-kicker.dark {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-search {
    margin-top: 28px;
    background: #fff;
    color: var(--text);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    max-width: 920px;
}

.hero-search label {
    color: var(--ink);
}

.hero-search .form-grid {
    grid-template-columns: 2fr 1.2fr auto;
    align-items: end;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    align-items: center;
}

.quick-links span {
    font-weight: 700;
    color: #eaf2fc;
}

.quick-links a {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 8px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 650;
}

.quick-links a:hover {
    background: rgba(255, 255, 255, .26);
    color: #fff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
    max-width: 720px;
}

.stat-card {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    padding: 14px 16px;
}

.stat-card strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1.1;
    color: #fff;
}

.stat-card span {
    font-size: .95rem;
    color: #dbe9fb;
}

/* ---------- Secciones ---------- */
.section {
    padding: clamp(32px, 5vw, 56px) 0;
}

.section.compact {
    padding: 24px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.section-header h1,
.section-header h2 {
    margin-bottom: 6px;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 70ch;
}

.help {
    font-size: .98rem;
    color: var(--muted);
}

/* ---------- Rejillas y tarjetas ---------- */
.grid {
    display: grid;
    gap: 20px;
}

.grid.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.card-body {
    padding: 22px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.category-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--brand-light);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.category-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.category-card p {
    margin: 0;
}

.listing-card {
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.listing-image {
    display: block;
    aspect-ratio: 4 / 3;
    background-color: var(--brand-light);
    background-size: cover;
    background-position: center;
}

.listing-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.card-meta {
    font-size: .92rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.listing-card h3 {
    margin: 4px 0 0;
    font-size: 1.25rem;
}

.listing-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.listing-card h3 a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.listing-summary {
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 6px 0 0;
    font-size: .98rem;
}

.listing-facts .price,
.price {
    font-weight: 800;
    color: var(--success);
}

.badge-row {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff3cf;
    color: #6a4a00;
    font-size: .85rem;
    font-weight: 800;
}

.badge.verified {
    background: #dcf5e6;
    color: #0a5c2f;
}

.badge.large {
    font-size: .98rem;
    padding: 8px 16px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.card-actions .btn {
    flex: 1 1 auto;
}

.whatsapp-mini,
.whatsapp-link {
    background: var(--wa);
    border-color: var(--wa);
    color: #fff;
}

.whatsapp-mini:hover,
.whatsapp-link:hover {
    background: var(--wa-dark);
    border-color: var(--wa-dark);
    color: #fff;
}

.card-link {
    font-weight: 700;
}

.city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--line);
    color: var(--ink);
    font-weight: 650;
    text-decoration: none;
}

.city-pills a:hover {
    border-color: var(--brand);
    background: var(--brand-light);
}

.info-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-soft);
}

.split-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fff7dc, #ffe9a8);
    border: 2px solid var(--accent);
    border-radius: 24px;
    padding: clamp(22px, 4vw, 40px);
    margin-top: 8px;
    margin-bottom: 8px;
}

.cta-strip h2 {
    margin-bottom: 8px;
}

.cta-strip .lead {
    color: #4b3a00;
    margin: 0;
}

.cta-strip.inside-panel {
    margin: 20px 0 0;
}

/* ---------- Pasos "Cómo funciona" ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.step strong {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.step h3 {
    margin-bottom: 6px;
}

.step p {
    margin: 0;
    color: var(--muted);
}

/* ---------- Formularios ---------- */
.form-box,
.search-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-soft);
}

.form-box {
    max-width: 880px;
}

.search-box.floating {
    box-shadow: var(--shadow);
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--ink);
}

input,
select,
textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 2px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 1.05rem;
}

input[type="checkbox"],
input[type="radio"] {
    display: inline-block;
    width: 24px;
    min-height: 24px;
    height: 24px;
}

input[type="file"] {
    padding: 12px;
    background: var(--surface-soft);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #66768f;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--brand);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
}

.upload-panel {
    background: var(--brand-light);
    border: 2px dashed var(--brand);
    border-radius: var(--radius-sm);
    padding: 18px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    margin: 20px 0 0;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid;
    font-weight: 600;
}

.alert.success {
    background: #e6f7ee;
    border-color: #7fcf9f;
    color: #0a4d27;
}

.alert.error {
    background: #fdecea;
    border-color: #f1a49c;
    color: #8c1d14;
}

/* ---------- Detalle del anuncio ---------- */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.detail-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.media-grid img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.video-box,
.admin-video {
    margin-top: 14px;
}

.video-box video,
.admin-video video {
    width: 100%;
    border-radius: var(--radius);
    background: #000;
}

.detail-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

.detail-title {
    margin: 0;
}

.sticky-card {
    position: sticky;
    top: 96px;
}

.info-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.info-list li:last-child {
    border-bottom: 0;
}

.detail-sidebar .btn {
    width: 100%;
    margin-top: 10px;
}

.phone-link {
    background: var(--brand);
    border-color: var(--brand);
}

.email-link {
    background: #fff;
    color: var(--brand-dark);
    border-color: var(--line-strong);
}

.email-link:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
    border-color: var(--brand);
}

.detail-sidebar form p {
    margin-bottom: 14px;
}

.detail-sidebar form label {
    font-weight: 700;
}

.detail-sidebar form label input,
.detail-sidebar form label textarea {
    margin-top: 6px;
    font-weight: 400;
}

/* ---------- Compartir anuncio ---------- */
.share-panel {
    margin-top: 28px;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 22px;
    background: linear-gradient(135deg, #eef6ff, #ffffff);
    border: 2px solid var(--brand);
    box-shadow: var(--shadow-soft);
}

.share-panel h2 {
    margin-bottom: 6px;
}

.share-intro {
    color: var(--text);
    max-width: 62ch;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 12px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 88px;
    padding: 12px 8px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font: inherit;
    font-size: .98rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    filter: brightness(1.08);
}

.share-icon {
    width: 28px;
    height: 28px;
}

.share-whatsapp  { background: #0f7b3f; }
.share-facebook  { background: #1459c7; }
.share-instagram { background: linear-gradient(45deg, #a3267a, #c2255d 55%, #d9531e); }
.share-x         { background: #111111; }
.share-tiktok    { background: #0b0b0b; box-shadow: inset 0 -4px 0 #25f4ee, inset 0 4px 0 #fe2c55; }

.share-more {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-status {
    min-height: 1.6em;
    margin: 12px 0 0;
    font-weight: 700;
    color: var(--success);
}

.share-help {
    margin: 6px 0 0;
}

/* ---------- Página del anunciante ---------- */
.owner-page {
    display: grid;
    gap: 20px;
    max-width: 860px;
}

.owner-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-soft);
}

.owner-page .share-panel {
    margin-top: 0;
}

.status-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid;
    margin: 16px 0;
}

.status-box.ok   { background: #e6f7ee; border-color: #7fcf9f; color: #0a4d27; }
.status-box.wait { background: #fff7dc; border-color: #f0c64a; color: #5b4200; }
.status-box.warn { background: #fdecea; border-color: #f1a49c; color: #8c1d14; }

.owner-link input {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .95rem;
}

/* ---------- Tablas (panel de administración) ---------- */
.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    background: #eef3fa;
    color: var(--ink);
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: 0;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 800;
    background: #eef3fa;
    color: var(--ink);
}

.status.pending  { background: #fff3cf; color: #6a4a00; }
.status.approved { background: #dcf5e6; color: #0a5c2f; }
.status.rejected { background: #fde2df; color: #8c1d14; }

/* ---------- Blog y guías ---------- */
.blog-card h2 {
    font-size: 1.35rem;
}

.article-section {
    padding: clamp(28px, 5vw, 56px) 0;
}

.article-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 44px);
    box-shadow: var(--shadow-soft);
}

.article-card h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
}

.article-cta {
    margin-top: 28px;
    padding: 22px;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-grid .card-body h3 {
    margin-bottom: 8px;
}

.seo-links h3 {
    font-size: 1.05rem;
}

.link-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.link-columns div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.link-columns h3 {
    width: 100%;
    margin-bottom: 4px;
}

.link-columns a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.compact-actions {
    margin-top: 18px;
}

/* ---------- Pie de página ---------- */
.site-footer {
    margin-top: 48px;
    background: #0a2347;
    color: #dbe7f7;
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-brand span span {
    color: var(--accent);
}

.footer-brand img {
    border-radius: 10px;
}

.site-footer h2 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 12px;
}

.site-footer a {
    color: #dbe7f7;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-grid a:not(.btn):not(.footer-brand) {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.site-footer a:focus-visible {
    outline-color: var(--accent);
}

.footer-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink) !important;
    display: inline-flex !important;
}

.footer-cta:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding: 20px 0 28px;
    font-size: .95rem;
    color: #b6c8e2;
}

.footer-bottom p {
    margin: 0;
}

/* ---------- Pantallas medianas y pequeñas ---------- */
@media (max-width: 1040px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: 1fr; }
    .sticky-card { position: static; }
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }

    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #fff;
        padding: 12px 16px 18px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(11, 36, 71, .14);
    }

    body.nav-open .nav { display: flex; }

    .nav a,
    .nav .nav-admin {
        width: 100%;
        min-height: 54px;
        font-size: 1.1rem;
    }

    .nav a.nav-cta {
        margin: 8px 0 0;
        justify-content: center;
    }

    .hero-search .form-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .split-feature { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .link-columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body { font-size: 1.0625rem; }

    .header-inner { min-height: 68px; }
    .brand-text small { display: none; }
    .brand-text strong { font-size: 1.35rem; }

    .grid.cards { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .share-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .share-whatsapp { grid-column: 1 / -1; flex-direction: row; min-height: 64px; font-size: 1.1rem; }
    .hero-actions .btn,
    .cta-strip .btn,
    .form-box .btn { width: 100%; }
    th, td { padding: 12px; }
}

/* ---------- Preferencias del usuario ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

@media (forced-colors: active) {
    .btn, .share-btn { border: 2px solid ButtonText; }
}

/* admin-responsive: las tablas del panel nunca hacen scroll lateral */
body { overflow-x: clip; }
.table-wrap { overflow: hidden; }
.table-wrap table { width: 100%; table-layout: auto; }
.table-wrap th { white-space: nowrap; }
.table-wrap .status { white-space: nowrap; }
.table-wrap .btn { white-space: nowrap; margin: 0 4px 6px 0; }
.table-wrap td form { margin: 0; }
/* Solo el texto libre puede partirse en cualquier punto; el resto conserva sus palabras enteras. */
.table-wrap td:first-child,
.table-wrap td[data-label="Motivos"],
.table-wrap td[data-label="Mensaje"],
.table-wrap td[data-label="Contacto"] { overflow-wrap: anywhere; }

@media (max-width: 1280px) {
    .table-wrap table,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap td { display: block; width: 100%; box-sizing: border-box; }
    .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .table-wrap tr { padding: 6px 0; border-bottom: 10px solid #eef3fa; }
    .table-wrap tr:last-child { border-bottom: 0; }
    .table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
    .table-wrap td:last-child { border-bottom: 0; }
    .table-wrap td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-weight: 800;
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--muted, #5b6b80);
    }
    .table-wrap td:not([data-label])::before { content: none; }
}

/* app-install */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 8px 16px; border-radius: 12px;
    background: #0b0f14; color: #fff; text-decoration: none;
    border: 1px solid #3a4658; line-height: 1.1;
}
a.store-badge:hover { background: #1b2430; }
a.store-badge:focus-visible { outline: 3px solid #ffc53d; outline-offset: 2px; }
.store-badge.is-soon { opacity: .75; cursor: default; }
.store-badge-text { display: flex; flex-direction: column; text-align: left; }
.store-badge-text small { font-size: .7rem; letter-spacing: .02em; }
.store-badge-text strong { font-size: 1.05rem; font-weight: 700; }
.app-popup {
    position: fixed; inset: 0; z-index: 1000; display: flex;
    align-items: flex-end; justify-content: center; padding: 16px;
    background: rgba(11, 36, 71, .55);
}
.app-popup[hidden] { display: none; }
.app-popup-card {
    position: relative; width: 100%; max-width: 420px; padding: 24px 20px 20px;
    border-radius: 20px; background: #fff; color: var(--text, #1b2a41);
    text-align: center; display: grid; gap: 12px; justify-items: center;
    box-shadow: 0 16px 48px rgba(11, 36, 71, .35);
}
.app-popup-card h2 { margin: 0; font-size: 1.3rem; color: var(--ink, #0b2447); }
.app-popup-card p { margin: 0; }
.app-popup-card .btn { width: 100%; justify-content: center; }
.app-popup-close {
    position: absolute; top: 6px; right: 8px; width: 44px; height: 44px;
    border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted, #4a5b78);
}

/* lightbox */
.detail-image[data-lb], .media-grid img[data-lb] { cursor: zoom-in; }
.media-grid img[data-lb]:focus-visible, .detail-image[data-lb]:focus-visible { outline: 3px solid #ffc83d; outline-offset: 2px; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(5, 12, 24, .94); touch-action: pan-y pinch-zoom; }
.lb[hidden] { display: none; }
.lb-stage { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 0 48px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-close, .lb-nav { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .16); border-radius: 999px; line-height: 1; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: 10px; right: 10px; width: 44px; height: 44px; font-size: 30px; }
.lb-nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 22px; }
.lb-nav[hidden], .lb-count[hidden] { display: none; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: 15px; }
@media (max-width: 640px) { .lb-nav { width: 42px; height: 42px; margin-top: -21px; font-size: 18px; } }

/* ABRECUBA-CLAIM-2026-11 */
.badge.unclaimed { background: #fff4d6; color: #7a5200; border-color: #f0d48a; }
.claim-box { background: #fffaf0; border: 1px solid #f0d48a; color: #3b2f12; margin-top: 18px; line-height: 1.6; }
.claim-box .btn.small { margin: 6px 4px 0 0; }

/* ABRECUBA-STATS-2026-11 */
.stats-month { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.stats-month input[type=month] { margin-left: 6px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 22px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stats-table th, .stats-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e6e9ef; vertical-align: top; }
.stats-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: #5b6575; }
.stats-table .num { text-align: right; white-space: nowrap; }
.stats-table td a { word-break: break-word; }
.stats-bar { display: inline-block; height: 8px; width: calc(var(--w) * 0.6); max-width: 60%; min-width: 2px; background: #0b5cad; border-radius: 4px; margin-right: 6px; vertical-align: middle; }

/* ABRECUBA-FOLLOW-2026-11: Síguenos */
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-follow ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.site-footer .footer-grid .footer-follow a.follow-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.08); text-decoration: none; }
.site-footer .footer-grid .footer-follow a.follow-link:hover { background: rgba(255,255,255,.16); }
.follow-link strong { display: block; line-height: 1.2; }
.follow-link small { display: block; opacity: .8; font-size: .82rem; }
.follow-dot { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.follow-facebook .follow-dot { background: #1877f2; }
.follow-instagram .follow-dot { background: #d62976; }
.follow-telegram .follow-dot { background: #229ed9; }

/* ABRECUBA-ICONS-2026-11: iconos oficiales (Simple Icons, CC0) en blanco */
.follow-dot img { width: 18px; height: 18px; filter: brightness(0) invert(1); display: block; }
.follow-instagram .follow-dot { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
