:root {
    --bg-main: #0b0b0f;
    --bg-card: #14141b;
    --bg-card-soft: #1b1b24;
    --bg-hover: #23232e;

    --text-main: #f5f5f7;
    --text-muted: #a5a5b5;
    --text-soft: #d0d0dc;

    --gold: #d4af37;
    --gold-soft: #f1d77a;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #38bdf8;

    --border: rgba(255,255,255,0.08);
    --shadow: 0 20px 50px rgba(0,0,0,0.35);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,0.16), transparent 35%),
        radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 30%),
        var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.ah-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.ah-sidebar {
    background: rgba(10,10,14,0.92);
    border-right: 1px solid var(--border);
    padding: 28px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.ah-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.ah-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold), #9c7420);
    display: grid;
    place-items: center;
    color: #08080b;
    font-weight: 900;
    letter-spacing: -1px;
    box-shadow: 0 12px 30px rgba(212,175,55,0.25);
}

.ah-brand-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
}

.ah-brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.ah-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ah-nav a {
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s ease;
    font-size: 14px;
    border: 1px solid transparent;
}

.ah-nav a:hover,
.ah-nav a.active {
    background: var(--bg-card-soft);
    color: var(--text-main);
    border-color: var(--border);
}

.ah-nav a.active {
    color: var(--gold-soft);
}

.ah-sidebar-footer {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 24px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    color: var(--text-muted);
    font-size: 13px;
}

.ah-main {
    padding: 28px;
}

.ah-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.ah-page-title h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -0.8px;
}

.ah-page-title p {
    margin: 7px 0 0;
    color: var(--text-muted);
}

.ah-user-pill {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 14px;
}

.ah-grid {
    display: grid;
    gap: 20px;
}

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

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

.ah-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px;
}

.ah-stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.ah-stat-value {
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -0.7px;
}

.ah-stat-note {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.ah-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(212,175,55,0.12);
    color: var(--gold-soft);
    margin-bottom: 16px;
}

.ah-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.ah-section-title h2 {
    margin: 0;
    font-size: 20px;
}

.ah-section-title span {
    color: var(--text-muted);
    font-size: 13px;
}

.ah-table {
    width: 100%;
    border-collapse: collapse;
}

.ah-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
}

.ah-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-soft);
    font-size: 14px;
}

.ah-table tr:hover td {
    background: rgba(255,255,255,0.025);
}

.ah-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ah-badge.pendiente {
    background: rgba(245,158,11,0.12);
    color: #fbbf24;
}

.ah-badge.confirmada {
    background: rgba(56,189,248,0.12);
    color: #7dd3fc;
}

.ah-badge.completada {
    background: rgba(34,197,94,0.12);
    color: #86efac;
}

.ah-badge.cancelada {
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
}

.ah-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ah-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 13px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s ease;
}

.ah-btn:hover {
    transform: translateY(-1px);
}

.ah-btn-primary {
    background: linear-gradient(135deg, var(--gold), #9c7420);
    color: #08080b;
}

.ah-btn-soft {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
}

.ah-btn-danger {
    background: rgba(239,68,68,0.14);
    color: #fca5a5;
}

.ah-btn-success {
    background: rgba(34,197,94,0.14);
    color: #86efac;
}

.ah-empty {
    padding: 36px;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.025);
}

.ah-highlight {
    background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(255,255,255,0.04));
    border: 1px solid rgba(212,175,55,0.22);
}

.ah-kpi-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ah-money {
    color: var(--gold-soft);
}

@media (max-width: 1050px) {
    .ah-shell {
        grid-template-columns: 1fr;
    }

    .ah-sidebar {
        position: relative;
        height: auto;
    }

    .ah-sidebar-footer {
        position: static;
        margin-top: 24px;
    }

    .ah-grid-4,
    .ah-grid-2 {
        grid-template-columns: 1fr;
    }

    .ah-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

.ah-public {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.ah-public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 48px;
}

.ah-public-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.ah-public-links a:hover {
    color: var(--text-main);
}

.ah-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 34px;
}

.ah-hero-content,
.ah-hero-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 34px;
}

.ah-kicker {
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-size: 11px;
    font-weight: 800;
}

.ah-hero h1 {
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.95;
    margin: 18px 0;
    letter-spacing: -3px;
}

.ah-hero p {
    color: var(--text-muted);
    max-width: 640px;
    font-size: 16px;
    line-height: 1.7;
}

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

.ah-public-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 13px;
}

.ah-public-meta span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.035);
}

.ah-hero-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
}

.ah-hero-mark {
    position: absolute;
    right: 24px;
    top: 12px;
    font-size: 140px;
    font-weight: 950;
    color: rgba(255,255,255,0.035);
    letter-spacing: -8px;
}

.ah-hero-card h2 {
    font-size: 32px;
    line-height: 1.05;
    margin: 0 0 10px;
    position: relative;
}

.ah-contact-box {
    position: relative;
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(212,175,55,0.24);
    background: rgba(212,175,55,0.08);
}

.ah-contact-box span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.ah-contact-box strong {
    font-size: 22px;
    color: var(--gold-soft);
}

.ah-public-section {
    margin-top: 28px;
}

.ah-service-grid,
.ah-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ah-service-grid h3,
.ah-gallery-grid h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.ah-service-grid p,
.ah-gallery-grid p {
    color: var(--text-muted);
    line-height: 1.6;
}

.ah-service-price {
    color: var(--gold-soft);
    font-size: 28px;
    font-weight: 850;
    margin-top: 18px;
}

.ah-gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
}

.ah-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ah-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

@media (max-width: 900px) {
    .ah-public-nav,
    .ah-hero,
    .ah-contact-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .ah-service-grid,
    .ah-gallery-grid {
        grid-template-columns: 1fr;
    }

    .ah-public-links {
        flex-wrap: wrap;
    }
}

.ah-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ah-trust-grid h3,
.ah-location-box h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.ah-trust-grid p,
.ah-location-box p {
    color: var(--text-muted);
    line-height: 1.6;
}

.ah-service-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ah-service-card .ah-btn {
    width: fit-content;
    margin-top: auto;
}

.ah-location-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ah-muted {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .ah-trust-grid,
    .ah-location-box {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Ajuste profesional de galería pública */
.ah-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ah-gallery-grid .ah-card {
    padding: 18px;
}

.ah-gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
}

@media (max-width: 900px) {
    .ah-gallery-grid {
        grid-template-columns: 1fr;
    }

    .ah-gallery-img {
        height: 240px;
    }
}

/* Resumen de precios, cupones y cortesías */
.ah-price-box {
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.055);
    line-height: 1.5;
}

.ah-price-box small {
    color: var(--text-muted);
}

.ah-price-box strong {
    display: inline-block;
    margin-top: 2px;
}
