:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-soft: #e0f2fe;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --secondary: #0f172a;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-muted: #f1f5f9;
    --text-main: #1e293b;
    --text-soft: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 18px 30px -8px rgba(15, 23, 42, 0.12);
}

/* Paleta Coral */
[data-palette="coral"] {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --primary-soft: #ffe4e6;
    --accent: #0284c7;
    --accent-hover: #0369a1;
}

/* Paleta Esmeralda */
[data-palette="esmeralda"] {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-soft: #d1fae5;
    --accent: #f59e0b;
    --accent-hover: #d97706;
}

/* Modo Oscuro */
[data-theme="dark"] {
    --bg-body: #0b1120;
    --bg-card: #1e293b;
    --bg-muted: #334155;
    --text-main: #f1f5f9;
    --text-soft: #94a3b8;
    --border: #334155;
    --secondary: #f8fafc;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 35px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.25s ease, color 0.25s ease;
}

main { flex: 1; }

/* Barra de navegacion */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 1rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.logo span { color: var(--primary); }

nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover { color: var(--primary); }

/* Controles de tema y color */
.theme-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-muted);
    padding: 0.3rem 0.5rem;
    border-radius: 9999px;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: transform 0.15s;
}

.color-dot:hover { transform: scale(1.2); }
.dot-caribe { background: #0284c7; }
.dot-coral { background: #e11d48; }
.dot-esmeralda { background: #059669; }

.dark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.25rem;
    color: var(--text-main);
}

nav a.btn-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    padding: 0.55rem 1.2rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

nav a.btn-cta:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Portada principal */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.88)),
                url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #ffffff;
    padding: 5.5rem 1.5rem 4.5rem 1.5rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #f8fafc;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    max-width: 820px;
    margin: 0 auto 1rem auto;
    line-height: 1.15;
}

.hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 640px;
    margin: 0 auto 2rem auto;
}

.search-box {
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 0.85rem;
    display: flex;
    gap: 0.5rem;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35);
}

.search-box input {
    flex: 1.4;
    padding: 0.85rem 1rem;
    border: none;
    border-right: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-main);
    background: transparent;
    outline: none;
}

.search-box select {
    flex: 1;
    padding: 0.85rem 1rem;
    border: none;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-card);
    outline: none;
    cursor: pointer;
}

.search-box button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-box button:hover { background-color: var(--primary-dark); }

/* Franja de metricas rapidas */
.trust-strip {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.trust-strip strong {
    color: #ffffff;
    font-size: 1.05rem;
}

/* Contenedores generales */
.container {
    max-width: 1200px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
}

.section-subtitle {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* Tarjetas de destinos */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.dest-card {
    position: relative;
    height: 180px;
    border-radius: 0.9rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dest-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dest-card:hover img { transform: scale(1.08); }

.dest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 12%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: white;
}

.dest-overlay h3 { font-size: 1.2rem; font-weight: 700; }
.dest-overlay span { font-size: 0.8rem; color: #cbd5e1; }

/* Banner horizontal */
.ad-banner-slot {
    background: linear-gradient(90deg, #0f172a 0%, var(--primary-dark) 55%, var(--primary) 100%);
    border-radius: 0.9rem;
    padding: 1.35rem 2rem;
    margin: 2.5rem 0 3.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    flex-wrap: wrap;
}

.ad-tag {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.45);
    padding: 0.12rem 0.5rem;
    border-radius: 0.25rem;
}

.ad-banner-content h4 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.2rem; }
.ad-banner-content p { font-size: 0.88rem; color: #f1f5f9; }

.btn-banner {
    background: #ffffff;
    color: #0f172a;
    padding: 0.65rem 1.35rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s;
}

.btn-banner:hover { transform: scale(1.04); }

/* Barra de filtros rapidos */
.filter-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.quick-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.48rem 1.05rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-btn:hover { border-color: var(--primary); color: var(--primary); }

.pill-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.results-counter {
    font-size: 0.88rem;
    color: var(--text-soft);
    font-weight: 600;
}

/* Cuadricula de agencias */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.75rem;
}

.agency-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.agency-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.agency-card.featured {
    border: 2px solid var(--primary);
}

.badge-featured {
    position: absolute;
    top: -13px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.85rem;
    border-radius: 9999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fav-btn {
    background: var(--bg-muted);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    transition: transform 0.15s, color 0.15s;
    margin-left: auto;
}

.fav-btn:hover { transform: scale(1.1); }
.fav-btn.saved { color: #e11d48; background: #ffe4e6; }

.agency-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.agency-logo {
    width: 58px;
    height: 58px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.agency-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--secondary);
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.2rem;
}

.agency-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.agency-desc {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 1.15rem;
}

.tags {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-muted);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.28rem 0.6rem;
    border-radius: 0.375rem;
    color: var(--text-main);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    flex: 1;
    text-align: center;
    padding: 0.68rem 0.75rem;
    border-radius: 0.55rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-action:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-primary { background-color: var(--primary); color: white; }
.btn-whatsapp { background-color: #16a34a; color: white; }
.btn-outline { background-color: var(--bg-muted); color: var(--secondary); flex: 0 0 auto; padding: 0.68rem 0.85rem; }

/* Seccion de opiniones de viajeros */
.reviews-section {
    margin-top: 5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.65rem;
    box-shadow: var(--shadow-sm);
}

.review-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.review-text {
    font-size: 0.92rem;
    color: var(--text-main);
    margin-bottom: 1.15rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--secondary);
}

.author-info span {
    font-size: 0.78rem;
    color: var(--text-soft);
}

/* Ventana modal de ficha */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop.open { display: flex; }

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    max-width: 540px;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: var(--bg-muted);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-main);
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    background: var(--bg-muted);
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 1.25rem 0;
    font-size: 0.88rem;
}

.modal-details-grid span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-soft);
    font-weight: 600;
}

/* Llamado a agencias */
.b2b-cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: 1.25rem;
    padding: 3.5rem 2rem;
    text-align: center;
    margin-top: 5rem;
    box-shadow: var(--shadow-lg);
}

.b2b-cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.b2b-cta-section p { color: #cbd5e1; max-width: 600px; margin: 0 auto 2rem auto; font-size: 1.05rem; }

.btn-b2b {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: transform 0.2s;
}

.btn-b2b:hover { transform: translateY(-2px); }

/* Paginas internas y formulario */
.page-banner {
    background: #0f172a;
    color: white;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.page-banner h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-banner p { color: #cbd5e1; max-width: 600px; margin: 0 auto; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.plan-price { font-size: 2rem; font-weight: 800; color: var(--secondary); margin: 1rem 0; }
.plan-price span { font-size: 0.9rem; font-weight: 500; color: var(--text-soft); }
.plan-features { list-style: none; margin: 1.25rem 0 2rem 0; }
.plan-features li { margin-bottom: 0.65rem; font-size: 0.92rem; color: var(--text-main); }

.registration-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2rem;
    align-items: start;
}

.form-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.preview-sticky { position: sticky; top: 95px; }

.preview-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--secondary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.72rem 0.95rem;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-main);
    border-radius: 0.5rem;
    font-size: 0.92rem;
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }

.legal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 850px;
    margin: 0 auto;
}
.legal-box h2 { font-size: 1.25rem; color: var(--secondary); margin: 1.5rem 0 0.5rem 0; }
.legal-box p { color: var(--text-soft); margin-bottom: 1rem; font-size: 0.95rem; }

/* Pie de pagina */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 3rem 1.5rem;
    text-align: center;
    font-size: 0.88rem;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.footer-links { margin: 1rem 0; }
footer a { color: #cbd5e1; text-decoration: none; margin: 0 0.75rem; }
footer a:hover { text-decoration: underline; }
.disclaimer-text { max-width: 820px; margin: 1.5rem auto 0 auto; font-size: 0.78rem; color: #64748b; line-height: 1.5; }

@media (max-width: 860px) {
    .registration-layout { grid-template-columns: 1fr; }
    .preview-sticky { position: static; }
}

@media (max-width: 760px) {
    nav a:not(.btn-cta) { display: none; }
    .search-box { flex-direction: column; }
    .search-box input { border-right: none; border-bottom: 1px solid var(--border); }
}

/* Insignia RNT oficial */
.rnt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.2rem;
    margin-left: 0.25rem;
}

/* Seccion de Ofertas de Temporada */
.deals-section {
    margin: 3.5rem 0 4rem 0;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.deal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.deal-img-wrap {
    position: relative;
    height: 165px;
    overflow: hidden;
}

.deal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-price-tag {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
}

.deal-promo-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--accent);
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.deal-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.deal-agency-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.deal-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.45rem;
}

.deal-info {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 1.15rem;
}

/* Barra de navegacion por sectores */
.sector-tabs-wrap {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 5%;
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.sector-tab {
    background: var(--bg-muted);
    border: 1px solid transparent;
    color: var(--text-main);
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sector-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sector-tab.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.category-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-dark);
    background: var(--primary-soft);
    padding: 0.15rem 0.55rem;
    border-radius: 0.3rem;
    margin-bottom: 0.35rem;
}

/* Portada con transicion de 5 fondos animados */
.hero {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease-in-out, transform 7s ease-out;
    z-index: 0;
}

.hero-bg-layer.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.88));
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    width: 28px;
    background: #ffffff;
}

/* Seccion Google Maps interactivo */
.maps-section {
    margin-top: 4.5rem;
}

.maps-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.maps-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 360px;
    overflow-y: auto;
}

.map-place-btn {
    text-align: left;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
}

.map-place-btn:hover, .map-place-btn.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.map-place-btn strong {
    display: block;
    font-size: 0.95rem;
    color: var(--secondary);
}

.map-place-btn span {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.maps-frame-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 340px;
    border: 1px solid var(--border);
}

.maps-frame-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
}

.modal-map-box {
    margin-top: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.modal-map-box iframe {
    width: 100%;
    height: 190px;
    border: 0;
    display: block;
}

/* Barra flotante de Modo Edicion Visual en vivo */
.live-edit-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45);
    z-index: 300;
    border: 1px solid #334155;
    flex-wrap: wrap;
}

.live-edit-btn {
    border: none;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.editing-active [data-editable="true"] {
    outline: 2px dashed #38bdf8;
    outline-offset: 4px;
    border-radius: 0.35rem;
    cursor: text;
}

.section-move-controls {
    display: none;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.editing-active .section-move-controls {
    display: flex;
}

@media (max-width: 820px) {
    .maps-layout { grid-template-columns: 1fr; }
}

/* Barra flotante de comparacion */
.compare-dock {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: 1rem;
    display: none;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
    z-index: 250;
    border: 1px solid #334155;
}

.compare-dock.visible {
    display: flex;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.88rem;
}

.compare-table th, .compare-table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.compare-table th {
    background: var(--bg-muted);
    color: var(--secondary);
    font-weight: 700;
    width: 22%;
}

/* Cotizador inteligente dentro del modal */
.quick-quote-box {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.quick-quote-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.65rem;
}

.quick-quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.quick-quote-grid input, .quick-quote-grid select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 0.45rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.82rem;
}

.card-tools-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border);
    font-size: 0.78rem;
}

.tool-chip-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-soft);
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.76rem;
    transition: all 0.2s;
}

.tool-chip-btn:hover, .tool-chip-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

/* Galeria y Amenidades en Modal */
.modal-gallery {
    margin: 1rem 0;
}

.modal-main-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.modal-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.modal-thumb-btn {
    width: 68px;
    height: 48px;
    padding: 0;
    border-radius: 0.45rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.75;
    transition: all 0.2s;
}

.modal-thumb-btn.active, .modal-thumb-btn:hover {
    border-color: var(--primary);
    opacity: 1;
}

.modal-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.85rem 0;
}

.amenity-badge {
    background: var(--bg-muted);
    color: var(--text-main);
    border: 1px solid var(--border);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

/* Boton Asistente en Portada */
.wizard-trigger-btn {
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 0.6rem 1.35rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.wizard-trigger-btn:hover {
    background: #ffffff;
    color: #0f172a;
}

.wizard-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.wizard-opt-btn {
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-opt-btn:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* Acordeon FAQ */
.faq-section {
    margin-top: 4.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.1rem 1.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-answer {
    display: none;
    padding: 0 1.35rem 1.15rem 1.35rem;
    font-size: 0.9rem;
    color: var(--text-soft);
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

.faq-item.open .faq-answer {
    display: block;
}

@media (max-width: 600px) {
    .wizard-options-grid { grid-template-columns: 1fr; }
}

/* Seccion Guias y Blog SEO */
.guides-section {
    margin-top: 4.5rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.guide-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
}

.guide-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.45rem;
}

.guide-title {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.guide-excerpt {
    font-size: 0.86rem;
    color: var(--text-soft);
    margin-bottom: 1.1rem;
}

/* Barra superior promocional (Top Bar) */
.promo-top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    text-align: center;
}

.promo-top-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.promo-top-btn:hover {
    background: #ffffff;
    color: var(--primary-dark);
}

/* Caja de Cupon Exclusivo */
.coupon-box {
    background: #fefce8;
    border: 2px dashed #eab308;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    margin: 0.95rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

[data-theme="dark"] .coupon-box {
    background: rgba(234, 179, 8, 0.12);
    border-color: #ca8a04;
}

.coupon-code-pill {
    background: #fef08a;
    color: #854d0e;
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.3rem 0.75rem;
    border-radius: 0.45rem;
    border: 1px solid #eab308;
    cursor: pointer;
}

.coupon-tag-card {
    display: inline-block;
    background: #fef9c3;
    color: #854d0e;
    border: 1px dashed #eab308;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 0.4rem;
    margin-bottom: 0.55rem;
}

/* Boton flotante de Concierge */
.concierge-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.38);
    z-index: 240;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: transform 0.2s ease;
}

.concierge-float-btn:hover {
    transform: translateY(-2px);
}

/* Calculadora de presupuesto */
.calc-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.calc-tab-btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
}

.calc-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.calc-result-card {
    background: var(--primary-soft);
    border: 1px solid var(--primary);
    border-radius: 0.85rem;
    padding: 1.15rem;
    text-align: center;
    margin-top: 1rem;
}

/* Modulo visual de Pagos con Tarjeta (Mercado Pago) y SPEI */
.payment-box-b2b {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.card-brands-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.brand-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.22rem 0.6rem;
    border-radius: 0.35rem;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--text-main);
    letter-spacing: 0.03em;
}

.mp-brand-badge {
    background: #009ee3;
    color: #ffffff;
    border-color: #009ee3;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.15rem;
}

.pay-method-card {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
}

.btn-mercadopago {
    background: #009ee3;
    color: #ffffff;
    border: none;
    padding: 0.72rem 1.1rem;
    border-radius: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-mercadopago:hover {
    background: #0082bd;
    transform: translateY(-1px);
}

.spei-clabe-box {
    background: var(--bg-card);
    border: 1px dashed var(--primary);
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.crm-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 9999px;
}


/* === REVISTA PUBLICITARIA V2 === */
.mag-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 60%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 2.75rem 1.25rem 2.25rem;
    position: relative;
    overflow: hidden;
}

.mag-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.mag-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f8fafc;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    margin-bottom: 0.9rem;
}

.mag-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    line-height: 1.15;
    margin-bottom: 0.7rem;
    font-weight: 800;
    color: #ffffff;
}

.mag-hero p {
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 1.4rem;
    line-height: 1.55;
}

.mag-disclaimer-strip {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 1.25rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.mag-disclaimer-strip strong {
    color: var(--secondary);
}

.mag-search-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    max-width: 1020px;
    margin: 0 auto;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr auto;
    gap: 0.65rem;
    align-items: center;
}

@media (max-width: 820px) {
    .mag-search-panel {
        grid-template-columns: 1fr;
    }
}

.mag-search-panel input,
.mag-search-panel select {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 0.65rem;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--text-main);
    font-size: 0.9rem;
}

/* Portada Destacada (Spotlight Editorial) */
.mag-spotlight {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 1.75rem 0 2.25rem;
}

@media (max-width: 860px) {
    .mag-spotlight {
        grid-template-columns: 1fr;
    }
}

.mag-spotlight-media {
    position: relative;
    min-height: 300px;
    background: #0f172a;
}

.mag-spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mag-spotlight-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #f59e0b;
    color: #111827;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.mag-spotlight-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

/* Grid y Tarjeta Tipo Revista de Productos */
.mag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.6rem;
    margin-top: 1.25rem;
}

.mag-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

.mag-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mag-card.featured {
    border: 2px solid var(--primary);
}

.mag-card-cover {
    position: relative;
    height: 215px;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
    cursor: pointer;
}

.mag-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.mag-card:hover .mag-card-cover img {
    transform: scale(1.04);
}

.mag-cat-pill {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
}

.mag-featured-pill {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.mag-price-overlay {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.32rem 0.7rem;
    border-radius: 0.55rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.mag-photo-count {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 0.45rem;
}

.mag-card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.mag-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.mag-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.25;
    margin: 0;
}

.mag-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
}

.mag-spec-item span {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-soft);
    font-weight: 700;
}

.mag-spec-item strong {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.3;
    display: block;
}

.mag-promo-banner {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.12), rgba(16, 185, 129, 0.12));
    border-left: 3px solid var(--primary);
    border-radius: 0.45rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    color: var(--text-main);
    line-height: 1.35;
}

.mag-pay-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.mag-pay-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 0.35rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    color: var(--text-soft);
}

.mag-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

.mag-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--border);
}

.mag-cta-advertiser {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    color: #ffffff;
    border-radius: 1.25rem;
    padding: 2.25rem 1.75rem;
    margin: 3rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* === NAVBAR & BRAND FIX === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar .brand,
.navbar .brand:link,
.navbar .brand:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.navbar .brand:hover {
    opacity: 0.92;
}

.navbar .brand span {
    color: var(--primary);
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.55rem;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a:not(.btn-action) {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.nav-links a:not(.btn-action):hover {
    color: var(--primary);
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    padding: 0.3rem 0.55rem;
    border-radius: 9999px;
}

.theme-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    padding: 0;
    margin: 0;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    cursor: pointer;
    display: inline-block;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    transition: transform 0.15s ease;
}

.theme-dot:hover {
    transform: scale(1.16);
}

.dark-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    margin: 0;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.92rem;
    line-height: 1;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.dark-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.06);
}