:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #132033;
    --muted: #607089;
    --line: #e3e9f2;
    --brand: #0a5bd8;
    --brand-dark: #06357f;
    --brand-2: #0fa3b1;
    --accent: #f7b731;
    --success: #168047;
    --danger: #b42318;
    --shadow: 0 18px 55px rgba(15, 35, 70, .12);
    --shadow-soft: 0 12px 30px rgba(15, 35, 70, .08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

.site-header {
    background: rgba(7, 22, 47, .92);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
    backdrop-filter: blur(16px);
}

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

.brand {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #fff2b8);
    color: #07162f;
    box-shadow: 0 10px 25px rgba(247, 183, 49, .26);
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1.08rem;
    letter-spacing: -.03em;
}

.brand-text small {
    color: #bcd2ef;
    font-size: .78rem;
    margin-top: 3px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.nav a {
    color: #dceaff;
    font-weight: 750;
    padding: 10px 13px;
    border-radius: 999px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.nav a.nav-cta {
    background: #fff;
    color: #07346f;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.nav a.nav-cta:hover,
.nav a.nav-cta.active {
    background: var(--accent);
    color: #07162f;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 5px auto;
    border-radius: 99px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(4, 18, 40, .92) 0%, rgba(6, 43, 94, .74) 48%, rgba(6, 99, 123, .68) 100%),
        url('../img/fondo.jpg') center/cover no-repeat,
        linear-gradient(135deg, #07162f 0%, #123a7a 55%, #0e84a8 100%);
    padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -40px -12%;
    height: 120px;
    background: var(--bg);
    transform: rotate(-2.4deg);
    transform-origin: left bottom;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #f8fbff;
    font-weight: 800;
    margin: 0 0 18px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 5rem);
    line-height: .96;
    margin: 0 0 18px;
    letter-spacing: -.065em;
    max-width: 920px;
}

.hero p {
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    max-width: 760px;
    color: #e7f1ff;
    margin: 0;
}

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

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

.stat-card {
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    padding: 16px;
    backdrop-filter: blur(12px);
}

.stat-card strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
}

.stat-card span {
    display: block;
    color: #dceaff;
    font-weight: 700;
    font-size: .92rem;
    margin-top: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    padding: 13px 18px;
    min-height: 48px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(10, 91, 216, .24);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    background: #084dc0;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(10, 91, 216, .30);
}

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

.btn.secondary:hover {
    background: #f4f8ff;
}

.btn.ghost {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
}

.btn.danger {
    background: var(--danger);
}

.btn.small {
    padding: 8px 12px;
    min-height: 38px;
    border-radius: 12px;
    font-size: .9rem;
}

.section {
    padding: clamp(34px, 6vw, 66px) 0;
}

.section.compact {
    padding-top: 24px;
}

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

.section h1,
.section h2 {
    margin: 0 0 10px;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.section h1 {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
}

.section h2 {
    font-size: clamp(1.65rem, 3.6vw, 2.7rem);
}

.lead {
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 780px;
}

.grid {
    display: grid;
    gap: 22px;
}

.grid.cards {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(4, 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 {
    position: relative;
    padding: 22px;
    min-height: 160px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(10, 91, 216, .26);
}

.category-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #edf5ff, #ecfeff);
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

.category-card p {
    margin: 0;
}

.card-meta {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .045em;
}

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

.listing-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(10, 91, 216, .22);
}

.listing-image {
    display: block;
    height: 210px;
    background-size: cover;
    background-position: center;
    background-color: #e9eef6;
}

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

.listing-card h3 {
    margin: 0 0 9px;
    font-size: 1.22rem;
    line-height: 1.2;
}

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

.listing-summary {
    margin: 0;
    color: var(--muted);
}

.listing-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.listing-facts span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    background: var(--surface-soft);
    color: #41516a;
    font-size: .88rem;
    font-weight: 750;
}

.price,
.listing-facts .price {
    font-weight: 900;
    color: var(--success);
    background: #e9f8ef;
}

.badge {
    display: inline-flex;
    background: #fff2bf;
    color: #744b00;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1;
}

.card-link {
    display: inline-flex;
    margin-top: auto;
    padding-top: 18px;
    font-weight: 900;
}

.search-box,
.form-box,
.admin-box,
.info-panel {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--shadow-soft);
}

.search-box.floating {
    position: relative;
    z-index: 2;
    margin-top: -54px;
}

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

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

label {
    display: block;
    font-weight: 850;
    margin-bottom: 7px;
    color: #21324b;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd6e5;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
    color: var(--text);
    outline: none;
    min-height: 48px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(10, 91, 216, .75);
    box-shadow: 0 0 0 4px rgba(10, 91, 216, .12);
}

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

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

.alert {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.alert.success {
    background: #e8f8ee;
    color: #166534;
}

.alert.error {
    background: #fff0f0;
    color: #9f1239;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

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

th {
    background: #f8fafc;
    color: #334155;
}

.status {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .8rem;
    font-weight: 900;
}

.status.pending {
    background: #fff7d6;
    color: #7a4d00;
}

.status.approved {
    background: #e8f8ee;
    color: #166534;
}

.status.rejected {
    background: #ffe4e6;
    color: #9f1239;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 380px;
    gap: 26px;
    align-items: start;
}

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

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

.detail-title {
    margin-top: 18px !important;
}

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

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

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

.whatsapp-link,
.phone-link,
.email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.whatsapp-link {
    background: #16a34a;
    color: #fff;
}

.phone-link {
    background: #0f766e;
    color: #fff;
}

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

.submit-hero,
.listings-hero {
    background:
        linear-gradient(120deg, rgba(7, 22, 47, .92), rgba(10, 91, 216, .78)),
        url('../img/fondo.jpg') center/cover no-repeat;
    color: #fff;
    padding: 58px 0;
}

.submit-hero .lead,
.listings-hero .lead {
    color: #e7f1ff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

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

.step strong {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf2ff;
    color: var(--brand);
    margin-bottom: 10px;
}

.site-footer {
    background: #07162f;
    color: #bdc8da;
    padding: 44px 0 22px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr .8fr 1fr;
    gap: 28px;
}

.footer-brand {
    color: #fff;
    font-weight: 900;
    font-size: 1.3rem;
}

.site-footer h3 {
    color: #fff;
    margin-top: 0;
}

.site-footer a {
    display: block;
    color: #dceaff;
    margin: 7px 0;
    font-weight: 750;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 28px;
    padding-top: 18px;
    font-size: .92rem;
}

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1160px);
    }

    .header-inner {
        min-height: 68px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: rgba(7, 22, 47, .98);
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

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

    .nav a {
        width: 100%;
        border-radius: 14px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        padding: 70px 0 68px;
    }

    .hero-actions .btn,
    .search-box .btn,
    .form-box .btn {
        width: 100%;
    }

    .hero-stats,
    .steps,
    .form-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .search-box.floating {
        margin-top: -28px;
    }

    .section-header {
        display: block;
    }

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

    .listing-image {
        height: 220px;
    }

    .submit-hero,
    .listings-hero {
        padding: 44px 0;
    }
}

@media (max-width: 420px) {
    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .brand-text strong {
        font-size: 1rem;
    }

    .card-body,
    .category-card,
    .search-box,
    .form-box,
    .admin-box,
    .info-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .detail-image {
        border-radius: 20px;
    }
}

/* AbreCuba feature upgrade */
.hero-content-wide { max-width: 1100px; }
.hero-submit-btn,
.big-cta {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    box-shadow: 0 14px 34px rgba(249, 115, 22, .34);
}
.hero-submit-btn:hover,
.big-cta:hover { filter: brightness(1.03); }
.cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 34px);
    border-radius: 30px;
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.cta-strip.inside-panel {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.hero-kicker.dark {
    color: var(--brand);
}
.badge-row {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.badge.verified {
    background: #dcfce7;
    color: #166534;
}
.badge.large {
    padding: 9px 12px;
    font-size: .86rem;
    white-space: nowrap;
}
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}
.card-actions .btn { flex: 1; }
.whatsapp-mini {
    background: #16a34a;
    color: #fff;
}
.city-pills,
.seo-links .link-columns div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.city-pills a,
.seo-links .link-columns a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 10px 13px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}
.split-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.media-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #e9eef6;
}
.video-box {
    margin-top: 16px;
    border-radius: 24px;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow-soft);
}
.video-box video {
    display: block;
    width: 100%;
    max-height: 520px;
    background: #020617;
}
.admin-video { max-width: 760px; }
.upload-panel {
    padding: 16px;
    border: 1px dashed #aac0dc;
    background: #f8fbff;
    border-radius: 18px;
}
.service-grid .card-body { min-height: 190px; }
.blog-card h2 {
    font-size: 1.24rem;
    line-height: 1.18;
}
.article-section {
    max-width: 980px;
}
.article-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    padding: clamp(24px, 5vw, 54px);
}
.article-card h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
    margin: 0 0 14px;
}
.article-body {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #243449;
    margin-top: 28px;
}
.article-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.link-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.footer-cta { margin-top: 10px; }
.compact-actions { margin-top: 22px; }

@media (max-width: 900px) {
    .cta-strip,
    .split-feature,
    .link-columns {
        grid-template-columns: 1fr;
    }
    .cta-strip {
        display: grid;
        text-align: left;
    }
    .media-grid { grid-template-columns: 1fr; }
    .media-grid img { height: 240px; }
}

@media (max-width: 620px) {
    .hero-actions,
    .card-actions,
    .article-cta {
        flex-direction: column;
    }
    .hero-actions .btn,
    .card-actions .btn,
    .article-cta .btn,
    .big-cta {
        width: 100%;
    }
    .badge-row { justify-content: flex-start; }
    .detail-title-row { display: block; }
    .badge.large { margin-top: 8px; }
}
