/* ============================================================
   RECORRIDO DEL PAPA EN PERÚ - ESTILOS PRINCIPALES
   Piura & Chiclayo 2026
   ============================================================ */

:root {
    /* === Identidad Municipalidad Provincial de Chiclayo · Ruta del Papa León XIV === */
    --primary: #8E1B34;        /* Guinda institucional MPCH */
    --primary-dark: #6C1327;   /* Guinda oscuro (hover / degradados) */
    --primary-light: #B5324C;  /* Guinda claro */
    --secondary: #1E3050;      /* Azul marino */
    --secondary-light: #33507E;/* Azul marino claro */
    --accent: #24557E;         /* Azul (enlaces) */
    --accent-light: #2E6FA0;
    --gold: #C8A951;           /* Dorado brillante · filos y realces */
    --gold-light: #F5E6B8;
    --dark: #17233D;           /* Fondo oscuro (azul noche) */
    --dark-2: #0F1A30;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --white: #ffffff;
    --black: #000000;
    --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Ubuntu', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 81, 0.4);
    color: var(--white);
}
.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}
.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    color: var(--white);
}
.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--dark);
}
.btn-white {
    background: var(--white);
    color: var(--dark);
}
.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ============ SECTION STYLES ============ */
.section {
    padding: 100px 0;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 650px;
    margin: 0 auto 50px;
}
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold-light));
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* ============ HEADER / NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(142, 27, 52, 0.98);
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    padding: 0 28px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
}
.navbar-brand:hover { color: var(--gold); }
.navbar-brand img { height: 50px; }
.navbar-brand span { font-weight: 700; }
.navbar-brand small {
    display: block;
    font-size: 0.7rem;
    font-family: var(--font-sans);
    font-weight: 400;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 4px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #0f3460 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200,169,81,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(142,27,52,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(30,48,80,0.28) 0%, transparent 50%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0.15;
}
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: float 6s infinite;
    opacity: 0.3;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}
.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(200,169,81,0.2);
    border: 1px solid rgba(200,169,81,0.4);
    border-radius: 50px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ COUNTDOWN ============ */
.countdown-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--gold));
}
.countdown {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.countdown-item {
    text-align: center;
}
.countdown-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-serif);
    line-height: 1;
}
.countdown-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* ============ ROUTES ============ */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.route-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.route-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.route-card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.route-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.route-card-body {
    padding: 28px;
}
.route-card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.route-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gray-600);
}
.route-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.route-card-desc {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ============ EVENTS ============ */
.events-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.events-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--secondary), var(--accent));
    transform: translateX(-50%);
}
.event-card {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}
.event-card:nth-child(odd) { flex-direction: row-reverse; }
.event-card-date {
    flex: 0 0 120px;
    text-align: center;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
.event-card-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-serif);
}
.event-card-date .month {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--gray-600);
    letter-spacing: 1px;
}
.event-card-body {
    flex: 1;
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.event-card-body:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
}
.event-card-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

/* ============ REGISTER ============ */
.register-section {
    background:
        radial-gradient(ellipse at 12% 0%, rgba(142,27,52,0.40) 0%, transparent 55%),
        radial-gradient(ellipse at 88% 100%, rgba(200,169,81,0.13) 0%, transparent 55%),
        linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: var(--white);
}
.register-section .section-subtitle { color: rgba(255,255,255,0.7); }
.register-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--gold-light);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(200,169,81,0.22);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 15px;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
    font-family: var(--font-sans);
}
.form-control:hover {
    border-color: rgba(200,169,81,0.5);
    background: rgba(255,255,255,0.07);
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,169,81,0.22);
    background: rgba(255,255,255,0.10);
    transform: translateY(-1px);
}
.form-control::placeholder { color: rgba(255,255,255,0.45); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--dark-2); color: var(--white); }
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--gold);
    flex-shrink: 0;
}
.form-check label { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ============ GALLERY ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============ TESTIMONIALS ============ */
.testimonials-section {
    background: var(--gray-100);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 5rem;
    color: var(--gold-light);
    font-family: var(--font-serif);
    line-height: 1;
    opacity: 0.5;
}
.testimonial-text {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 20px;
    padding-top: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}
.testimonial-location {
    font-size: 12px;
    color: var(--gray-500);
    margin: 2px 0 3px;
}
.testimonial-location i { color: var(--gold); font-size: 11px; }
.testimonial-name { font-weight: 600; font-size: 15px; }
.testimonial-stars { color: var(--gold); font-size: 14px; }

/* ============ CONTACT ============ */
.contact-section {
    background: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.contact-info p {
    color: var(--gray-600);
    margin-bottom: 30px;
}
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer p { font-size: 14px; line-height: 1.8; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 18px;
}
.social-link:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
}

/* ============ NEWSLETTER ============ */
.newsletter {
    background: linear-gradient(135deg, var(--accent), var(--dark-2));
    padding: 60px 0;
    text-align: center;
}
.newsletter h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}
.newsletter p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 15px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

/* ============ MAP SECTION ============ */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 450px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============ LOADING / ALERTS ============ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .events-timeline::before { left: 20px; }
    .event-card, .event-card:nth-child(odd) { flex-direction: column; padding-left: 50px; }
    .event-card-date { flex: none; display: flex; gap: 8px; align-items: center; padding: 8px 16px; }
    .event-card-date .day { font-size: 1.3rem; }
    .event-card-dot { left: 20px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; z-index: 1000; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .countdown-number { font-size: 2.5rem; }
    .countdown { gap: 30px; }
    .routes-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .register-form { padding: 24px; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.7rem; }
    .section-title { font-size: 1.6rem; }
    .btn-lg { padding: 14px 24px; font-size: 15px; }
}

/* ============================================================
   GUÍA TURÍSTICA - NEGOCIOS
   ============================================================ */
.guide-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.guide-section .section-title { color: var(--gray-900); }
.guide-section .section-subtitle { color: var(--gray-700); }
.guide-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}
.guide-tab {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.guide-tab:hover, .guide-tab.active {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}
.guide-tab i { font-size: 16px; }

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.business-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}
.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
}
.business-card-verified {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #28a745;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
}
.business-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--white);
    z-index: 2;
}
.business-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.3);
    position: relative;
}
.business-card-image img { width: 100%; height: 100%; object-fit: cover; }
.business-card-body { padding: 20px; }
.business-card-category {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.business-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}
.business-card-title a { color: inherit; }
.business-card-title a:hover { color: var(--gold); }
.business-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 12px;
}
.business-card-meta span { display: flex; align-items: center; gap: 4px; }
.business-card-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
}
.business-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}
.business-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}
.business-card-rating .stars { color: var(--gold); font-size: 12px; }
.business-card-rating .count { color: var(--gray-500); }

/* ============ MAPA INTERACTIVO ============ */
.map-section {
    position: relative;
}
.map-section .form-control {
    background: var(--white);
    border-color: var(--gray-300);
    color: var(--gray-900);
}
.map-section .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,169,81,0.2);
    background: var(--white);
}
.map-section .form-control::placeholder { color: var(--gray-500); }
.map-section select.form-control option { background: var(--white); color: var(--gray-900); }
.map-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    min-height: 500px;
}
.map-container-custom {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 500px;
    background: var(--gray-200);
    position: relative;
}
.map-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    max-height: 500px;
    overflow-y: auto;
}
.map-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
}
.map-sidebar-list { padding: 8px; }
.map-sidebar-item {
    padding: 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid transparent;
}
.map-sidebar-item:hover {
    background: var(--gray-100);
    border-color: var(--gray-200);
}
.map-sidebar-item.active {
    background: rgba(200,169,81,0.1);
    border-color: var(--gold-light);
}
.map-sidebar-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    color: var(--primary-dark);
}
.map-sidebar-info { flex: 1; min-width: 0; }
.map-sidebar-info strong { display: block; font-size: 14px; }
.map-sidebar-info small { display: block; font-size: 12px; color: var(--gray-500); }
.map-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.map-filter-bar select, .map-filter-bar input {
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-sans);
    background: var(--white);
}

/* ============ SEGURIDAD TURÍSTICA ============ */
.safety-section {
    background: linear-gradient(135deg, #0c2340 0%, #1a3a5c 100%);
    color: var(--white);
}
.safety-section .section-title { color: var(--white); }
.safety-section .section-subtitle { color: rgba(255,255,255,0.7); }
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.safety-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.safety-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.safety-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.safety-card-icon.emergencia { background: rgba(220,53,69,0.2); color: #dc3545; }
.safety-card-icon.alerta { background: rgba(255,193,7,0.2); color: #ffc107; }
.safety-card-icon.precaucion { background: rgba(23,162,184,0.2); color: #17a2b8; }
.safety-card-icon.informativo { background: rgba(40,167,69,0.2); color: #28a745; }

.safety-card h4 {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 16px;
    margin-bottom: 8px;
}
.safety-card p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
}
.safety-card .safety-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 13px;
    color: var(--gold);
    text-decoration: none;
}
.safety-card .safety-contact:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}
.safety-emergency-numbers {
    margin-top: 30px;
}
.safety-emergency-numbers h3 {
    color: var(--white);
    text-align: center;
    margin-bottom: 20px;
}
.safety-emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.safety-emergency-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 20px; background: rgba(255,255,255,0.06);
    border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none; transition: var(--transition);
    color: var(--white);
}
.safety-emergency-item:hover {
    background: rgba(255,255,255,0.12); transform: translateY(-2px);
    color: var(--white);
}
.safety-emergency-item i { font-size: 28px; color: var(--gold); }
.safety-emergency-item strong { font-size: 16px; color: var(--white); }
.safety-emergency-item span { font-size: 24px; font-weight: 800; color: #dc3545; font-family: var(--font-serif); }
.safety-number {
    text-align: center;
    padding: 20px;
    background: rgba(220,53,69,0.15);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(220,53,69,0.3);
}
.safety-number .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #dc3545;
    font-family: var(--font-serif);
}
.safety-number .label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

/* ============ FAQ ============ */
.faq-section { background: var(--white); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--gold-light); }
.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    background: var(--gray-100);
    transition: var(--transition);
    user-select: none;
}
.faq-question:hover { background: var(--gray-200); }
.faq-question i { transition: transform 0.3s; color: var(--gold); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 18px 24px;
}

/* ============ BUSINESS DETAIL PAGE ============ */
.business-detail-top {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    padding: 140px 0 60px;
    color: var(--white);
}
.business-detail-top h1 { color: var(--white); font-size: 2.5rem; }
.business-detail-top .meta { color: rgba(255,255,255,0.7); margin-top: 12px; }
.business-detail-content { padding: 60px 0; }
.business-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
.business-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
.business-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-700);
}
.business-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}
.business-info-item:last-child { border-bottom: none; }
.business-info-item i {
    width: 20px;
    text-align: center;
    color: var(--gold);
    font-size: 16px;
    margin-top: 2px;
}
.business-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.business-service-tag {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    background: var(--gold-light);
    color: var(--primary-dark);
}
.review-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
}
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.review-card-name { font-weight: 600; font-size: 14px; }
.review-card-date { font-size: 12px; color: var(--gray-500); }
.review-card-stars { color: var(--gold); font-size: 13px; margin-bottom: 8px; }
.review-card-text { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.review-form { margin-top: 24px; }

/* ============ REGISTRO NEGOCIO ============ */
.register-business-section {
    background: linear-gradient(135deg, var(--dark-2), var(--accent));
}
.register-business-section .section-title { color: var(--white); }
.register-business-section .section-subtitle { color: rgba(255,255,255,0.7); }

/* ============ RESPONSIVE ============ */

/* Fix: body.no-scroll para menú mobile */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

@media (max-width: 968px) {
    .map-wrapper { grid-template-columns: 1fr; }
    .map-sidebar { max-height: 300px; }
    .business-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Nav overlay: fuente más grande para touch */
    .nav-links a {
        font-size: 18px;
        padding: 14px 0;
    }
    /* btn-sm altura táctil */
    .btn-sm {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    /* route-card imagen más pequeña */
    .route-card-image {
        height: 180px;
    }
    /* Mapa contacto responsive */
    .contact-map { height: 280px !important; }
    /* Mapa interactivo altura reducida */
    .map-container-custom {
        height: 350px;
    }
    #businessMap { min-height: 300px !important; }
    /* Mapa seguridad altura reducida */
    .safety-map { height: 280px !important; }
    /* Business detail title */
    .business-detail-top h1 { font-size: 1.8rem; }
    /* Social links táctiles */
    .social-link { width: 44px; height: 44px; }
    /* FAQ padding responsive */
    .faq-question { padding: 14px 16px; font-size: 14px; }
    /* Section padding general */
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    /* Hero */
    .hero-content { padding: 100px 16px 40px; }
    .hero-title { font-size: 1.8rem; }
    /* Brand texto más pequeño */
    .navbar-brand span { font-size: 1.1rem; }
    .navbar-brand small { font-size: 0.6rem; }
    /* Business detail */
    .business-detail-top { padding: 120px 0 40px; }
    .business-detail-top h1 { font-size: 1.4rem; }
    /* Referidos cards */
    .referral-card { padding: 16px; }
}

/* Referral cards */
.referral-grid {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.referral-card {
    text-align: center;
    padding: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}
.referral-icon { font-size: 48px; margin-bottom: 12px; }
.referral-card h4 { color: var(--gold); margin-bottom: 8px; }
.referral-card p { font-size: 14px; color: rgba(255,255,255,0.7); }

/* Business grid: evitar overflow en pantallas ≤320px */
@media (max-width: 340px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .routes-grid {
        grid-template-columns: 1fr;
    }
    .map-container-custom { height: 250px; }
    #businessMap { min-height: 220px !important; }
    .contact-map { height: 220px !important; }
    .safety-map { height: 220px !important; }
    .hero-content { padding: 80px 12px 30px; }
    .hero-title { font-size: 1.4rem; }
    .chatbot-panel { width: calc(100vw - 24px); right: 12px; left: 12px; }
    .navbar-brand span { font-size: 0.95rem; }
    .navbar-brand small { font-size: 0.5rem; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
}

/* ============================================================
   CHATBOT - MATEO ASISTENTE VIRTUAL
   ============================================================ */
#chatbot-container {
    position: fixed;
    bottom: 90px;
    left: 24px;
    z-index: 9999;
    font-family: var(--font-sans);
}
.chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8A951, #A78B3E);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(200, 169, 81, 0.4);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(200, 169, 81, 0.6);
}
.chatbot-notification {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.chatbot-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 380px;
    height: 560px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom left;
}
.chatbot-closed .chatbot-panel {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    pointer-events: none;
}
.chatbot-open .chatbot-panel {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8A951, #A78B3E);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.chatbot-header-info { flex: 1; line-height: 1.25; }
.chatbot-header-info strong { display: block; font-size: 16px; }
.chatbot-eyebrow {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px;
    color: #6ee7a0; text-transform: uppercase; margin-bottom: 1px;
}
.chatbot-eyebrow .status-dot { width: 6px; height: 6px; }
.chatbot-status { font-size: 12px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 4px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #28a745; display: inline-block; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Etiqueta invitadora junto al botón (no abre el chat sola) */
.chatbot-launcher-label {
    position: absolute;
    left: 72px;
    bottom: 10px;
    white-space: nowrap;          /* clave: el texto NO se parte */
    background: #fff;
    color: var(--dark);
    padding: 12px 14px 12px 18px;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-12px) scale(0.94);
    transform-origin: left center;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34,1.56,0.64,1), visibility 0.4s;
    z-index: 1;
}
.chatbot-launcher-label.show { opacity: 1; visibility: visible; transform: translateX(0) scale(1); animation: labelBob 2.6s ease-in-out 0.6s infinite; }
@keyframes labelBob { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.chatbot-launcher-label::before {
    content: '';
    position: absolute;
    left: -5px; bottom: 18px;
    width: 12px; height: 12px;
    background: #fff;
    transform: rotate(45deg);
}
.chatbot-label-close {
    background: none; border: none; color: var(--gray-400);
    font-size: 20px; cursor: pointer; line-height: 1; padding: 0 2px; flex-shrink: 0;
}
.chatbot-label-close:hover { color: var(--secondary); }
@media (max-width: 400px) {
    .chatbot-launcher-label { font-size: 12.5px; left: 68px; padding: 10px 12px 10px 14px; }
}
.chatbot-header-actions { display: flex; gap: 4px; }
.chatbot-header-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-header-btn:hover { background: rgba(255,255,255,0.2); }

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
}
.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 3px; }

.chatbot-message {
    display: flex;
    max-width: 85%;
    animation: messageIn 0.3s ease;
}
@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chatbot-message.user { align-self: flex-end; }
.chatbot-message.bot { align-self: flex-start; }

.message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.chatbot-message.user .message-content {
    background: linear-gradient(135deg, #C8A951, #A78B3E);
    color: white;
    border-bottom-right-radius: 4px;
}
.chatbot-message.bot .message-content {
    background: white;
    color: #212529;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.message-content strong { font-weight: 700; }
.message-content a { color: #C8A951; text-decoration: underline; }

.typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.typing-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #adb5bd;
    animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.chatbot-quick-replies {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}
.quick-reply-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #C8A951;
    background: white;
    color: #A78B3E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.quick-reply-btn:hover {
    background: #C8A951;
    color: white;
    border-color: #C8A951;
}

.chatbot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
    align-self: flex-start;
}
.chatbot-action-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #C8A951;
    background: white;
    color: #A78B3E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.chatbot-action-btn:hover {
    background: #C8A951;
    color: white;
}

.chatbot-input-area {
    border-top: 1px solid #e9ecef;
    background: white;
}
.chatbot-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
}
.chatbot-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #dee2e6;
    border-radius: 24px;
    font-size: 14px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}
.chatbot-input:focus { border-color: #C8A951; }
.chatbot-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8A951, #A78B3E);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chatbot-send-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(200,169,81,0.4); }

@media (max-width: 480px) {
    #chatbot-container { left: 12px; bottom: 80px; }
    .chatbot-panel { width: calc(100vw - 24px); height: 60vh; bottom: 65px; }
}

/* Language Switcher */
.nav-lang-item { position: relative; margin-left: 8px; }
.lang-toggle {
    display: flex; align-items: center; gap: 4px; padding: 6px 12px;
    border-radius: 6px; background: rgba(255,255,255,0.1);
    font-size: 13px; font-weight: 600; cursor: pointer; color: white;
    transition: background 0.2s; text-decoration: none;
}
.lang-toggle:hover { background: rgba(255,255,255,0.2); }
.lang-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 4px;
    background: white; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 4px; min-width: 140px; display: none; z-index: 1000;
    list-style: none;
}
.nav-lang-item:hover .lang-dropdown { display: block; }
.lang-dropdown li { margin: 0; }
.lang-dropdown a {
    display: block; padding: 8px 16px; border-radius: 6px;
    font-size: 13px; color: var(--gray-700); text-decoration: none;
    transition: background 0.15s;
}
.lang-dropdown a:hover { background: var(--gray-100); }
.lang-dropdown a.active { background: var(--gold-light); color: var(--dark); font-weight: 600; }

/* ============================================================
   CAPA DE ANIMACIONES PROFESIONALES
   Scroll reveal · entradas · micro-interacciones · efectos
   ============================================================ */

/* ---------- SCROLL REVEAL (activado por JS con .js-anim) ---------- */
.js-anim [data-animate] {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
.js-anim [data-animate="fade-up"]    { transform: translateY(40px); }
.js-anim [data-animate="fade-down"]  { transform: translateY(-40px); }
.js-anim [data-animate="fade-left"]  { transform: translateX(40px); }
.js-anim [data-animate="fade-right"] { transform: translateX(-40px); }
.js-anim [data-animate="zoom-in"]    { transform: scale(0.9); }
.js-anim [data-animate="zoom-out"]   { transform: scale(1.06); }
.js-anim [data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ---------- ENTRADA DEL HERO (escalonada al cargar) ---------- */
@keyframes heroIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.js-anim .hero-badge,
.js-anim .hero-title,
.js-anim .hero-subtitle,
.js-anim .hero-actions {
    opacity: 0;
    animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.js-anim .hero-badge    { animation-delay: 0.15s; }
.js-anim .hero-title    { animation-delay: 0.35s; }
.js-anim .hero-subtitle { animation-delay: 0.55s; }
.js-anim .hero-actions  { animation-delay: 0.75s; }

/* Gradiente vivo del hero */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 45%, #0f3460 100%);
    background-size: 200% 200%;
    animation: heroGradient 18s ease infinite;
}
@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Halo de luz suave que respira sobre el hero */
.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(200,169,81,0.12) 0%, transparent 60%);
    pointer-events: none;
    animation: heroHalo 8s ease-in-out infinite;
    z-index: 1;
}
@keyframes heroHalo {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

/* ---------- COLLAGE VERTICAL ANIMADO DEL HERO ---------- */
.hero-collage {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    gap: 16px;
    padding: 16px;
    justify-content: center;
    overflow: hidden;
    opacity: 0.85;
}
.hero-collage-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    will-change: transform;
    animation: heroScrollUp 46s linear infinite;
}
.hero-collage-col--down { animation-name: heroScrollDown; }
.hero-collage-col--slow { animation-duration: 62s; }
.hero-collage-col--fast { animation-duration: 34s; }
/* La 2.ª y 4.ª columna arrancan desplazadas para un mosaico irregular */
.hero-collage-col:nth-child(2) { margin-top: -60px; }
.hero-collage-col:nth-child(4) { margin-top: -30px; }
@keyframes heroScrollUp   { from { transform: translateY(0); }      to { transform: translateY(-50%); } }
@keyframes heroScrollDown { from { transform: translateY(-50%); }   to { transform: translateY(0); } }

.hero-tile {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.hero-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}
.hero-tile-icon { font-size: 46px; color: rgba(255, 255, 255, 0.32); }
.hero-tile-label {
    font-family: var(--font-serif);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-align: center;
    padding: 0 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Velo oscuro + viñeta para mantener el texto legible sobre el collage */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 62% 55% at 50% 42%, rgba(10,15,35,0.62) 0%, rgba(10,15,35,0.82) 68%, rgba(10,15,35,0.94) 100%),
        linear-gradient(180deg, rgba(15,20,45,0.5) 0%, rgba(15,20,45,0.55) 45%, rgba(15,20,45,0.92) 100%);
}

/* Reproductor de video del hero (video de la Ruta) */
.hero-video {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 34px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 26px 64px rgba(0,0,0,0.55);
    border: 1px solid rgba(200,169,81,0.45);
}
.hero-video-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;   /* los clics van al overlay para abrir el lightbox */
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(10,15,35,0.18) 0%, rgba(10,15,35,0.5) 100%);
    transition: background 0.3s ease;
}
.hero-video-overlay:hover { background: linear-gradient(180deg, rgba(10,15,35,0.28) 0%, rgba(10,15,35,0.62) 100%); }
.hero-video-play {
    width: 66px; height: 66px;
    border-radius: 50%;
    background: rgba(200,169,81,0.96);
    color: #fff;
    font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 26px rgba(0,0,0,0.45);
    transition: transform 0.3s ease;
}
.hero-video-play i { margin-left: 4px; }
.hero-video-overlay:hover .hero-video-play { transform: scale(1.12); }
.hero-video-label {
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    background: rgba(0,0,0,0.4);
    padding: 5px 14px;
    border-radius: 50px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
@media (max-width: 600px) {
    .hero-video { max-width: 100%; margin-top: 26px; }
    .hero-video-play { width: 56px; height: 56px; font-size: 20px; }
}
.hero-particles { z-index: 2; }
.hero-content { z-index: 3; }

/* Indicador de scroll bajo el hero */
.hero-scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    font-size: 22px;
    animation: scrollCue 2s ease-in-out infinite;
    text-decoration: none;
}
@keyframes scrollCue {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50%      { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* ---------- BOTONES: brillo deslizante + ripple ---------- */
.btn { position: relative; overflow: hidden; }
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn:hover::before { left: 140%; }
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transform: scale(0);
    animation: rippleFx 0.6s linear;
    pointer-events: none;
}
@keyframes rippleFx {
    to { transform: scale(3.2); opacity: 0; }
}

/* ---------- DIVISOR DE SECCIÓN: crece al aparecer ---------- */
.section-divider { transition: width 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s; }
.js-anim [data-animate] > .section-divider { width: 0; }
.js-anim [data-animate].is-visible > .section-divider { width: 80px; }

/* ---------- TARJETAS: elevación + realce de borde ---------- */
.route-card, .event-card-body, .testimonial-card, .business-card,
.safety-card, .gallery-item, .contact-detail {
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.4s ease, border-color 0.3s ease;
}
.route-card { position: relative; }
.route-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 2px transparent;
    transition: box-shadow 0.4s ease;
    pointer-events: none;
}
.route-card:hover::after { box-shadow: inset 0 0 0 2px var(--gold); }
.route-card-image { transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.route-card:hover .route-card-image { transform: scale(1.06); }
.route-card { overflow: hidden; }

/* Iconos de contacto: latido al pasar */
.contact-detail:hover .contact-icon,
.safety-card:hover .safety-card-icon { animation: iconPop 0.5s ease; }
@keyframes iconPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.2) rotate(-6deg); }
    100% { transform: scale(1) rotate(0); }
}

/* ---------- COUNTDOWN: pulso + flip al cambiar ---------- */
.countdown-section { position: relative; overflow: hidden; }
.countdown-number { display: inline-block; transition: transform 0.3s ease; }
.countdown-number.flip { animation: digitFlip 0.5s cubic-bezier(0.22,1,0.36,1); }
@keyframes digitFlip {
    0%   { transform: translateY(0) scale(1); }
    40%  { transform: translateY(-8px) scale(1.12); color: var(--white); }
    100% { transform: translateY(0) scale(1); }
}
.countdown-item {
    padding: 8px 4px;
    transition: transform 0.3s ease;
}
.countdown-item:hover { transform: translateY(-4px); }

/* ---------- BARRA DE PROGRESO DE SCROLL ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    z-index: 1100;
    background: linear-gradient(90deg, var(--gold), var(--secondary-light), var(--accent-light));
    box-shadow: 0 0 10px rgba(200,169,81,0.6);
    transition: width 0.1s linear;
}

/* ---------- BOTÓN VOLVER ARRIBA ---------- */
.back-to-top {
    position: fixed;
    bottom: 94px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(26,26,46,0.85);
    color: var(--gold);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
    z-index: 998;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-lg);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover { background: var(--gold); color: var(--dark); transform: translateY(-4px) scale(1.05); }

/* ---------- FLOTANTES: anillo pulsante ---------- */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
    animation: ringPulse 2.2s infinite;
}
@keyframes ringPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- NAV: subrayado activo por scroll-spy ya soportado ---------- */
.navbar-brand i { transition: transform 0.5s ease; }
.navbar-brand:hover i { transform: rotate(-10deg) scale(1.1); }

/* ---------- ENLACES SOCIALES / TAGS: micro ---------- */
.business-service-tag { transition: transform 0.25s ease, background 0.25s ease; }
.business-service-tag:hover { transform: translateY(-2px); background: var(--gold); color: var(--white); }

/* ---------- GALERÍA: zoom con overlay + icono ---------- */
.gallery-overlay { flex-direction: column; gap: 10px; }
.gallery-overlay i { transform: scale(0.6); transition: transform 0.4s ease; color: var(--white); font-size: 26px; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }
.gallery-caption {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    padding: 0 14px;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.4s ease 0.05s, opacity 0.4s ease 0.05s;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }
.gallery-credit {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 5px 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.85);
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.gallery-item:hover .gallery-credit { opacity: 1; }
.gallery-credit i { font-size: 9px; margin-right: 3px; }

/* ---------- FAQ: revelado más suave del contenido ---------- */
.faq-item { transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.faq-item.active { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---------- ALERTAS TOAST animadas (usadas por JS) ---------- */
@keyframes toastIn  { from { transform: translateX(-50%) translateY(-24px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(-50%) translateY(0); opacity: 1; } to { transform: translateX(-50%) translateY(-24px); opacity: 0; } }

/* ============================================================
   SECCIÓN DE VIDEOS (YouTube)
   ============================================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}
.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-premium); }
.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--dark);
}
.video-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45));
    transition: background 0.3s ease;
}
.video-card:hover .video-thumb::after { background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.55)); }
.video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 66px; height: 66px;
    border-radius: 50%;
    border: none;
    background: rgba(200,169,81,0.95);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 26px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}
.video-play i { margin-left: 4px; }
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.12); background: var(--secondary); }
.video-info { padding: 18px 20px; }
.video-title {
    font-size: 1.1rem; font-weight: 700; color: var(--dark);
    margin-bottom: 6px; line-height: 1.35;
}
.video-source { font-size: 12px; color: var(--gray-500); display: inline-flex; align-items: center; gap: 5px; }
.video-source i { color: var(--secondary); }

/* Lightbox / reproductor de video profesional (responsive 16:9) */
.video-lightbox {
    position: fixed; inset: 0; z-index: 10001;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(4px);
    padding: 24px;
    animation: toastIn 0.25s ease;
}
.video-lightbox.show { display: flex; }
.video-lightbox-inner {
    position: relative;
    width: min(1120px, 94vw);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.video-lightbox-title {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    padding: 0 44px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;      /* rectángulo perfecto en cualquier pantalla */
    max-height: 82vh;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.08);
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: none; color: #fff;
    font-size: 26px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 3;
}
.video-lightbox-close:hover { background: var(--secondary); transform: rotate(90deg); }
@media (max-width: 600px) {
    .video-lightbox { padding: 12px; }
    .video-lightbox-title { font-size: 0.98rem; padding: 0 40px; }
    .video-lightbox-close { top: 10px; right: 12px; width: 40px; height: 40px; font-size: 22px; }
}

/* ============================================================
   MÁQUINA DE MARKETING: popup + barra pegajosa
   ============================================================ */
.mktg-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 20, 45, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mktg-popup.show { opacity: 1; visibility: visible; }
.mktg-popup-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 34px 34px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-top: 5px solid var(--gold);
}
.mktg-popup.show .mktg-popup-box { transform: translateY(0) scale(1); }
.mktg-popup-icon {
    width: 68px; height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--white);
    background: var(--grad-gold);
    box-shadow: var(--shadow-glow-gold);
}
.mktg-popup-box h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--dark); }
.mktg-popup-box p { color: var(--gray-600); font-size: 15px; margin-bottom: 22px; line-height: 1.6; }
.mktg-popup-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 28px; line-height: 1;
    color: var(--gray-400); cursor: pointer; transition: color 0.2s;
}
.mktg-popup-close:hover { color: var(--secondary); }
.mktg-lead-form { display: flex; flex-direction: column; gap: 10px; }
.mktg-lead-form input[type="email"] {
    padding: 13px 16px; border: 1px solid var(--gray-300);
    border-radius: var(--radius); font-size: 15px; font-family: var(--font-sans);
    transition: var(--transition);
}
.mktg-lead-form input[type="email"]:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--ring-gold);
}
.mktg-lead-form .btn { justify-content: center; }
.mktg-form-msg { font-size: 13px; min-height: 16px; font-weight: 600; }

.mktg-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9990;
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    border-top: 2px solid var(--gold);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mktg-bar.show { transform: translateY(0); }
.mktg-bar-inner {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 20px;
}
.mktg-bar-text { color: var(--white); font-size: 14px; font-weight: 500; flex: 1; }
.mktg-bar-form { flex-direction: row; gap: 8px; }
.mktg-bar-form input[type="email"] {
    min-width: 220px; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
    color: var(--white); padding: 9px 14px;
}
.mktg-bar-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.mktg-bar-close {
    background: none; border: none; color: rgba(255,255,255,0.6);
    font-size: 24px; cursor: pointer; line-height: 1; padding: 0 4px;
}
.mktg-bar-close:hover { color: var(--white); }
@media (max-width: 768px) {
    .mktg-bar-inner { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
    .mktg-bar-text { flex: 1 1 100%; font-size: 13px; }
    .mktg-bar-form { flex: 1; }
    .mktg-bar-form input[type="email"] { min-width: 0; flex: 1; }
}

/* ============================================================
   ACCESIBILIDAD: respeta reduce motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .js-anim [data-animate] { opacity: 1 !important; transform: none !important; }
    .hero { animation: none; }
    .particle, .hero::after, .hero-scroll-cue, .whatsapp-float::before { animation: none; }
    .hero-collage-col { animation: none !important; }
}

/* Collage del hero: responsive */
@media (max-width: 768px) {
    .hero-collage { gap: 12px; padding: 12px; opacity: 0.5; }
    .hero-collage-col:nth-child(4) { display: none; }
    .hero-tile-icon { font-size: 34px; }
    .hero-tile-label { font-size: 12px; }
}
@media (max-width: 480px) {
    .hero-collage-col:nth-child(3) { display: none; }
}

/* ============================================================
   CAPA PREMIUM — realce visual de cada sección
   (aditiva: no elimina nada, sólo eleva el diseño)
   ============================================================ */
:root {
    --shadow-premium: 0 20px 60px -15px rgba(20, 20, 45, 0.35);
    --shadow-glow-gold: 0 10px 40px -8px rgba(200, 169, 81, 0.45);
    --grad-gold: linear-gradient(135deg, #E8D48B 0%, #C8A951 45%, #A78B3E 100%);
    --grad-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    --ring-gold: rgba(200, 169, 81, 0.35);
}

/* ---------- TÍTULOS DE SECCIÓN premium ---------- */
.section-divider {
    position: relative;
    height: 4px;
    background: var(--grad-gold);
    box-shadow: 0 2px 10px rgba(200,169,81,0.4);
}
.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(200,169,81,0.6);
}
.section-divider::before { left: -14px; }
.section-divider::after  { right: -14px; }
.section-title {
    position: relative;
    letter-spacing: -0.02em;
}
.section-subtitle { font-size: 1.14rem; }

/* ---------- HERO premium ---------- */
.hero-badge {
    position: relative;
    backdrop-filter: blur(8px);
    background: rgba(200,169,81,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 24px rgba(0,0,0,0.2);
    overflow: hidden;
}
.hero-badge::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: badgeShine 5s ease-in-out infinite;
}
@keyframes badgeShine { 0%,60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero-title span {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}
.hero-title { text-shadow: 0 4px 30px rgba(0,0,0,0.35); letter-spacing: -0.02em; }
.hero-subtitle { line-height: 1.75; }
.hero-actions .btn-primary { box-shadow: var(--shadow-glow-gold); }
.hero-actions .btn-outline {
    border-color: rgba(200,169,81,0.6);
    color: var(--gold-light);
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.03);
}
.hero-actions .btn-outline:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* ---------- COUNTDOWN premium: tarjetas glass ---------- */
.countdown-section {
    background: var(--grad-dark);
    border-top: 1px solid rgba(200,169,81,0.25);
    border-bottom: 1px solid rgba(200,169,81,0.25);
}
.countdown-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(200,169,81,0.18), transparent 60%);
    pointer-events: none;
}
.countdown-item {
    min-width: 104px;
    padding: 20px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.2);
}
.countdown-number {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(200,169,81,0.35));
}
.countdown-label { color: rgba(255,255,255,0.7); }

/* ---------- RUTAS premium ---------- */
.route-card {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}
.route-card:hover { box-shadow: var(--shadow-premium); }
.route-card-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,20,45,0.55) 100%);
}
.route-card-badge {
    background: rgba(26,26,46,0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(200,169,81,0.5);
    color: var(--gold-light);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 1;
}
.route-card-title { letter-spacing: -0.01em; }
.route-card-principal {
    position: absolute;
    top: 16px; right: 16px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px;
    background: var(--grad-gold);
    color: var(--dark);
    border-radius: 50px;
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    z-index: 2;
}
.route-card:has(.route-card-principal) { border: 2px solid var(--gold); }
.route-card:has(.route-card-principal)::after { box-shadow: inset 0 0 0 2px transparent; }
.route-card-meta span i { color: var(--gold); }
.route-card .btn { position: relative; }
.route-card .btn i.fa-map,
.route-card .btn i.fa-bell { transition: transform 0.3s ease; }
.route-card .btn:hover i.fa-map,
.route-card .btn:hover i.fa-bell { transform: translateX(3px); }

/* ---------- EVENTOS premium: línea y puntos con glow ---------- */
.events-timeline::before {
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--secondary), var(--accent));
    box-shadow: 0 0 16px rgba(200,169,81,0.4);
}
.event-card-dot {
    width: 18px; height: 18px;
    background: var(--grad-gold);
    box-shadow: 0 0 0 4px rgba(200,169,81,0.25), 0 0 14px rgba(200,169,81,0.6);
}
.event-card-date {
    background: var(--grad-dark);
    border: 1px solid rgba(200,169,81,0.25);
}
.event-card-date .day { color: var(--gold-light); background: none; -webkit-text-fill-color: currentColor; }
.event-card-date .month { color: rgba(255,255,255,0.65); }
.event-card-body { box-shadow: var(--shadow-md); }
.event-card-body:hover { transform: translateY(-4px); box-shadow: var(--shadow-premium); border-color: var(--gold-light); }

/* ---------- FORMULARIOS premium (registro / negocio) ---------- */
.register-form {
    position: relative;
    background: linear-gradient(160deg, rgba(142,27,52,0.16) 0%, rgba(255,255,255,0.035) 55%);
    box-shadow: var(--shadow-premium), inset 0 1px 0 rgba(255,255,255,0.08);
    border: 1px solid rgba(200,169,81,0.28);
}
.register-form::before {
    content: '';
    position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--grad-gold);
    opacity: 0.8;
}
.form-control:focus {
    box-shadow: 0 0 0 4px var(--ring-gold);
}
.register-form .btn-primary,
.register-business-section .btn-primary { box-shadow: var(--shadow-glow-gold); }

/* ---------- TESTIMONIOS premium ---------- */
.testimonial-card {
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.testimonial-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--grad-gold);
    opacity: 0; transition: opacity 0.35s ease;
}
.testimonial-card:hover::after { opacity: 1; }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-premium); }
.testimonial-card::before { color: var(--gold); opacity: 0.18; font-size: 6rem; }
.testimonial-avatar {
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--gold), 0 6px 16px rgba(0,0,0,0.15);
}
.testimonial-stars i { filter: drop-shadow(0 2px 4px rgba(200,169,81,0.4)); }

/* ---------- GALERÍA premium ---------- */
.gallery-item { box-shadow: var(--shadow-sm); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.gallery-item:hover { box-shadow: var(--shadow-premium); transform: translateY(-4px); }
.gallery-overlay {
    background: linear-gradient(180deg, rgba(15,20,45,0.1), rgba(15,20,45,0.7));
    backdrop-filter: blur(1px);
}
.gallery-overlay i {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(200,169,81,0.9);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ---------- CONTACTO premium ---------- */
.contact-map { border: 1px solid var(--gray-200); transition: box-shadow 0.4s ease; }
.contact-map:hover { box-shadow: var(--shadow-premium) !important; }
.contact-section .contact-grid > div:last-child {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}
.contact-section h3 { position: relative; padding-bottom: 10px; }
.contact-section h3::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; border-radius: 3px; background: var(--grad-gold);
}
.contact-icon { background: var(--grad-gold); color: var(--white); box-shadow: var(--shadow-glow-gold); }

/* ---------- GUÍA / TARJETAS DE NEGOCIO premium (y fix de estructura) ---------- */
.guide-tab {
    box-shadow: var(--shadow-sm);
}
.guide-tab.active, .guide-tab:hover {
    background: var(--grad-gold);
    border-color: transparent;
    box-shadow: var(--shadow-glow-gold);
}
.business-card {
    padding: 0 22px 22px;
    box-shadow: var(--shadow-sm);
}
.business-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-premium); border-color: var(--gold-light); }
.business-card-icon {
    margin: 0 -22px 18px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255,255,255,0.92);
    background: var(--grad-dark);
    position: relative;
    overflow: hidden;
}
.business-card-icon::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(200,169,81,0.35), transparent 60%);
}
.business-card-icon i { position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.business-card-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.business-card-name a { color: inherit; transition: color 0.25s ease; }
.business-card-name a:hover { color: var(--primary-dark); }
.business-card-category {
    display: inline-block;
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--gold-light);
    padding: 3px 10px; border-radius: 50px;
    margin-bottom: 12px;
}
.business-card-address, .business-card-phone {
    font-size: 13px; color: var(--gray-600);
    display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.business-card-address::before { content: '\f3c5'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--gold); }
.business-card-phone i { color: var(--gold); }
.business-card-desc { font-size: 14px; color: var(--gray-600); line-height: 1.55; margin: 10px 0 14px; }
.business-card-verified {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 12px rgba(39,174,96,0.5);
    border: 2px solid var(--white);
}
.business-card-badge {
    background: var(--grad-gold);
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ---------- MAPA: filtros, leyenda y contador ---------- */
.map-filter-bar { align-items: flex-end; gap: 16px; }
.map-filter-field { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.map-filter-field label {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--gray-600); display: inline-flex; align-items: center; gap: 6px;
}
.map-filter-field label i { color: var(--gold); }
.map-legend {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    margin-top: 18px; padding: 14px 18px;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.map-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--gray-700); }
.map-legend-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,0.8); flex-shrink: 0; }
.map-sidebar > h4 { display: flex; align-items: center; justify-content: space-between; }
.map-sidebar-count {
    background: var(--grad-gold); color: var(--dark);
    font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 50px; min-width: 24px; text-align: center;
}

/* ---------- MAPA premium ---------- */
.map-filter-bar select {
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.map-filter-bar select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--ring-gold); }
.map-container-custom { border: 1px solid var(--gray-200); box-shadow: var(--shadow-premium); }
.map-sidebar { box-shadow: var(--shadow-md); }
.map-sidebar > h4 {
    padding: 16px 20px; margin: 0;
    background: var(--grad-dark); color: var(--white);
    font-family: var(--font-sans); font-size: 15px; letter-spacing: 0.5px;
    position: sticky; top: 0; z-index: 3;
}
.map-sidebar-item:hover { transform: translateX(3px); }
.map-sidebar-icon { background: var(--grad-gold); color: var(--white); box-shadow: 0 4px 10px rgba(200,169,81,0.4); }

/* ---------- SEGURIDAD premium ---------- */
.safety-section { position: relative; }
.safety-card { position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.safety-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gold);
    opacity: 0.9;
}
.safety-card:has(.emergencia)::before { background: #dc3545; }
.safety-card:has(.alerta)::before { background: #ffc107; }
.safety-card:has(.precaucion)::before { background: #17a2b8; }
.safety-card:has(.informativo)::before { background: #28a745; }
.safety-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(0,0,0,0.28); }
.safety-card-icon { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.safety-emergency-item {
    background: rgba(255,255,255,0.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.safety-emergency-item:hover { border-color: var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.safety-emergency-item span { filter: drop-shadow(0 2px 8px rgba(220,53,69,0.4)); }

/* ---------- FAQ premium: acordeón con numeración ---------- */
.faq-list { counter-reset: faq; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.faq-question {
    counter-increment: faq;
    background: var(--white);
    gap: 14px;
    padding: 20px 24px;
}
.faq-question::before {
    content: counter(faq, decimal-leading-zero);
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--gold);
    font-size: 15px;
    min-width: 26px;
}
.faq-question span { flex: 1; }
.faq-question i {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--primary-dark);
    font-size: 12px;
}
.faq-item.active .faq-question { background: linear-gradient(135deg, rgba(200,169,81,0.08), rgba(200,169,81,0.02)); }
.faq-item.active .faq-question i { background: var(--grad-gold); color: var(--white); }
.faq-item:hover { border-color: var(--gold-light); box-shadow: var(--shadow-md); }

/* ---------- REFERIDOS premium ---------- */
.referral-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
}
.referral-card:hover { transform: translateY(-6px); border-color: var(--ring-gold); box-shadow: var(--shadow-glow-gold); }
.referral-icon { filter: drop-shadow(0 6px 14px rgba(200,169,81,0.4)); }

/* ---------- NEWSLETTER premium ---------- */
.newsletter { position: relative; overflow: hidden; }
.newsletter::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(200,169,81,0.18), transparent 55%);
    pointer-events: none;
}
.newsletter .container { position: relative; z-index: 1; }
.newsletter-form input {
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.newsletter-form input:focus { box-shadow: 0 0 0 4px var(--ring-gold); }
.newsletter-form .btn-primary { box-shadow: var(--shadow-glow-gold); }

/* ---------- FOOTER premium ---------- */
.footer { position: relative; }
.footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-gold);
    opacity: 0.7;
}
.footer h4 { position: relative; display: inline-block; padding-bottom: 8px; }
.footer h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 28px; height: 2px; background: var(--gold);
}
.footer-links a { position: relative; transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-links a:hover { padding-left: 6px; }
.social-link { box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.social-link:hover { box-shadow: var(--shadow-glow-gold); }

/* ---------- NAVBAR premium ---------- */
.navbar.scrolled { border-bottom: 1px solid rgba(200,169,81,0.2); backdrop-filter: blur(12px); }
.navbar-brand small { color: var(--gold-light); }

/* Ajustes responsive premium */
@media (max-width: 768px) {
    .business-card-icon { height: 80px; font-size: 34px; }
    .countdown-item { min-width: 74px; padding: 14px 10px; }
}

/* ============================================================
   PORTAL DE CUENTAS (usuarios y empresas)
   ============================================================ */
.portal-body { background: var(--gray-100); color: var(--gray-800); }
.portal-navbar { background: var(--dark); padding: 14px 0; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-md); }
.portal-navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.portal-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-serif); }
.portal-brand i { color: var(--gold); font-size: 24px; }
.portal-brand span { display: block; font-weight: 700; font-size: 1.05rem; }
.portal-brand small { font-size: 0.7rem; opacity: 0.7; }
.portal-nav { display: flex; align-items: center; gap: 18px; }
.portal-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-weight: 500; }
.portal-nav a:hover { color: var(--gold); }
.portal-nav .portal-logout { color: #ff8a8a; }
.portal-main { padding: 34px 0 60px; min-height: 70vh; }
.portal-foot { background: var(--dark); color: rgba(255,255,255,0.7); text-align: center; padding: 20px; font-size: 13px; }
.portal-foot a { color: var(--gold); }

.portal-auth { max-width: 860px; margin: 10px auto; }
.portal-auth-narrow { max-width: 440px; }
.portal-auth-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--grad-gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 12px; }
.portal-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.portal-card-title { font-size: 1.2rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: var(--dark); }
.form-control.light { background: var(--white); border: 1px solid var(--gray-300); color: var(--gray-800); }
.form-control.light:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring-gold); background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }

.portal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.portal-tab { padding: 10px 18px; border-radius: 50px; border: 2px solid var(--gray-300); background: #fff; color: var(--gray-700); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: var(--transition); }
.portal-tab.active, .portal-tab:hover { background: var(--grad-gold); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow-gold); }

.plan-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px){ .plan-choices { grid-template-columns: 1fr; } }
.plan-choice { border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 16px; cursor: pointer; display: block; transition: var(--transition); }
.plan-choice input { margin-right: 6px; }
.plan-choice:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring-gold); }
.plan-choice ul { margin: 8px 0 0 18px; font-size: 13px; color: var(--gray-600); }
.plan-badge { font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.plan-badge.plan-basico { background: var(--gray-200); color: var(--gray-700); }
.plan-badge.plan-premium { background: var(--grad-gold); color: var(--dark); }

.portal-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.portal-dash-head h1 { font-size: 1.7rem; }
.portal-dash-head p { color: var(--gray-600); margin-top: 4px; }
.estado-badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 50px; }
.estado-badge.ok { background: rgba(40,167,69,0.15); color: #28a745; }
.estado-badge.pend { background: rgba(211,158,0,0.15); color: #d39e00; }

.portal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; margin-bottom: 20px; }
.portal-mod { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--dark); display: flex; flex-direction: column; gap: 4px; transition: var(--transition); box-shadow: var(--shadow-sm); }
.portal-mod:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.portal-mod i { font-size: 24px; color: var(--gold); margin-bottom: 4px; }
.portal-mod strong { font-size: 15px; }
.portal-mod span { font-size: 12px; color: var(--gray-500); }

.portal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 22px; }
.portal-stat { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.portal-stat i { font-size: 20px; color: var(--gold); }
.portal-stat .num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--dark); font-family: var(--font-serif); margin: 4px 0; }
.portal-stat span:last-child { font-size: 12px; color: var(--gray-500); }

.portal-upsell { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: #fff; border-radius: var(--radius-lg); padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; border: 1px solid rgba(200,169,81,0.3); }
.portal-upsell h2 { color: var(--gold); font-size: 1.3rem; }
.portal-upsell p { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 6px; max-width: 520px; }

.portal-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; }
.portal-img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.portal-img img { width: 100%; height: 100%; object-fit: cover; }
.portal-img-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(220,53,69,0.92); color: #fff; border: none; cursor: pointer; }
.portal-img-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Botones de acceso en el navbar ---------- */
.nav-links li.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-links li.nav-auth a { text-transform: none; letter-spacing: 0; padding: 0; }
.nav-links li.nav-auth a::after { display: none !important; }
.nav-auth-link { color: var(--gold-light) !important; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.nav-auth-link:hover { color: #fff !important; }
.nav-auth-btn {
    background: var(--grad-gold); color: var(--dark) !important;
    padding: 8px 16px !important; border-radius: 50px;
    font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 14px rgba(200,169,81,0.35); transition: var(--transition);
}
.nav-auth-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-gold); color: var(--dark) !important; }
.nav-auth-out { background: rgba(255,255,255,0.14); color: #fff !important; }
.nav-auth-out:hover { background: var(--secondary); color: #fff !important; transform: translateY(-2px); }
@media (max-width: 768px) {
    .nav-links li.nav-auth { flex-direction: column; gap: 14px; margin-top: 10px; }
    .nav-auth-btn { padding: 12px 26px !important; font-size: 15px; }
    .nav-auth-link { font-size: 16px; }
}

/* ---------- Registro: selector de 3 tipos ---------- */
.reg-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 720px){ .reg-options { grid-template-columns: 1fr; } }
.reg-option {
    background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 20px 16px; cursor: pointer; text-align: center; transition: var(--transition);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.reg-option:hover { border-color: var(--gold-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.reg-option.active { border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring-gold), var(--shadow-md); }
.reg-option i { font-size: 30px; color: var(--gold); margin-bottom: 4px; }
.reg-option strong { font-size: 15px; color: var(--dark); }
.reg-option small { font-size: 12px; color: var(--gray-500); }
.reg-plan-note {
    background: rgba(200,169,81,0.1); border: 1px solid var(--gold-light);
    border-radius: var(--radius); padding: 10px 14px; font-size: 14px; color: var(--gray-700); margin-top: 8px;
}
.reg-plan-note i { color: var(--gold); }

/* Crédito de desarrollo en el footer */
.footer-credit { font-size: 13px; margin-top: 6px; opacity: 0.85; }
.footer-credit a { color: var(--gold); font-weight: 700; text-decoration: none; }
.footer-credit a:hover { color: var(--gold-light); text-decoration: underline; }

/* Botón de idioma en móvil (junto al menú hamburguesa) */
.nav-mobile-actions { display: flex; align-items: center; gap: 12px; }
.nav-lang-mobile { display: none; }
@media (max-width: 768px) {
    .nav-lang-mobile {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 8px 13px; border-radius: 50px;
        background: rgba(255,255,255,0.12); color: #fff;
        font-size: 13px; font-weight: 700; text-decoration: none;
        border: 1px solid rgba(200,169,81,0.45); line-height: 1;
        transition: background 0.2s, color 0.2s;
    }
    .nav-lang-mobile i { color: var(--gold); font-size: 12px; }
    .nav-lang-mobile:hover, .nav-lang-mobile:active { background: var(--gold); color: var(--dark); }
    .nav-lang-mobile:hover i, .nav-lang-mobile:active i { color: var(--dark); }
}

/* ============================================================
   SÍGUENOS + COMPARTE (botones de marca)
   ============================================================ */
.follow-title { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--gold); margin: 18px 0 10px; text-transform: uppercase; }
.social-follow, .social-share { display: flex; gap: 10px; flex-wrap: wrap; }
.soc {
    width: 46px; height: 46px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; text-decoration: none; border: none; cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.soc:hover { transform: translateY(-4px) scale(1.05); color: #fff; filter: brightness(1.08); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.soc-wa { background: #25D366; }
.soc-fb { background: #1877F2; }
.soc-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.soc-tt { background: #111; }
.soc-tt::after { content: ''; position: absolute; }
.soc-yt { background: #FF0000; }
.soc-x  { background: #000; }
.soc-tg { background: #229ED9; }
.soc-copy { background: var(--gray-700); }
.soc-copy.copied { background: #28a745; }
@media (max-width: 480px){ .soc { width: 44px; height: 44px; font-size: 18px; } }

/* ============================================================
   PÁGINAS INTERNAS — banner superior + "Ver todo"
   ============================================================ */
.page-banner {
    background:
        radial-gradient(ellipse at 12% 0%, rgba(200,169,81,0.16) 0%, transparent 55%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 58%, #6A1024 100%);
    color: #fff;
    padding: 148px 0 52px;
    border-bottom: 3px solid var(--gold);
    position: relative;
}
.page-banner-title {
    color: #fff;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.15;
    margin: 6px 0 12px;
}
.page-banner-subtitle {
    color: rgba(255,255,255,0.86);
    max-width: 700px;
    font-size: 1.06rem;
    line-height: 1.6;
}
.page-breadcrumb { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,0.72); }
.page-breadcrumb a { color: var(--gold-light); font-weight: 600; }
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb span { margin: 0 8px; opacity: 0.55; }
.page-banner .badge-eyebrow {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    background: rgba(200,169,81,0.22);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.ver-todo-wrap { text-align: center; margin-top: 40px; }
.ver-todo-wrap .btn { font-weight: 600; }

/* ============================================================
   REFINAMIENTO PRO — formularios, selects y micro-animaciones
   (aditivo: mejora estilos y animaciones sin quitar secciones)
   ============================================================ */

/* Flecha dorada personalizada en los selects (elimina el gris del navegador) */
.register-section select.form-control,
.register-business-section select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C8A951' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}
.register-section select.form-control option,
.register-business-section select.form-control option {
    background: #241a2b;
    color: #fff;
}

/* Icono de calendario del input date en tono claro (no gris oscuro) */
.register-section input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(78%) sepia(38%) saturate(560%) hue-rotate(2deg) brightness(92%);
    cursor: pointer;
}

/* Checkbox con acento dorado de la marca */
.register-section input[type="checkbox"],
.register-business-section input[type="checkbox"] {
    accent-color: var(--gold);
    width: 17px; height: 17px;
    cursor: pointer;
}

/* Entrada suave del formulario y del encabezado de la sección */
@keyframes riseInSoft {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.register-form { animation: riseInSoft .7s cubic-bezier(.2,.7,.3,1) both; }

/* Aparición escalonada de cada campo */
@keyframes fieldIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.register-form .form-group { animation: fieldIn .5s ease both; }
.register-form .form-row:nth-of-type(1) .form-group { animation-delay: .06s; }
.register-form .form-row:nth-of-type(2) .form-group { animation-delay: .12s; }
.register-form .form-row:nth-of-type(3) .form-group { animation-delay: .18s; }
.register-form .form-row:nth-of-type(4) .form-group { animation-delay: .24s; }

/* Botón de envío del registro: realce dorado al pasar el cursor */
.register-form .btn-primary {
    transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, filter .28s ease;
}
.register-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-gold);
    filter: brightness(1.04);
}

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .register-form,
    .register-form .form-group { animation: none; }
    .form-control:focus { transform: none; }
}
