html, body {
    width: 100%;
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

body {
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
    color: #2d3436;
}

.prop-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 10000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

body.dark-mode .prop-header {
    background: rgba(30, 41, 59, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.prop-header .logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.prop-header .mobile-logo-img {
    height: 28px;
    width: auto;
    display: block;
    transition: filter 0.3s ease;
}

body.dark-mode .prop-header .mobile-logo-img {
    filter: brightness(0) invert(1);
}

.back-btn, .share-btn {
    background: transparent;
    border: none;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s ease;
}

body.dark-mode .back-btn, 
body.dark-mode .share-btn {
    color: #cbd5e1;
}

.back-btn:hover, .share-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .back-btn:hover, 
body.dark-mode .share-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.back-btn svg, .share-btn svg { width: 24px; height: 24px; }

/* Gallery Mosaico */
.prop-gallery {
    padding-top: 60px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 5px;
    background: #000;
}

.prop-gallery::-webkit-scrollbar {
    height: 6px;
}
.prop-gallery::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
}

.gallery-item-wrapper {
    flex: 0 0 100%;
    height: 60vh;
    scroll-snap-align: center;
}

@media(min-width: 768px) {
    .gallery-item-wrapper {
        flex: 0 0 60%;
    }
}

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

/* Content */
.prop-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background: #0984e3;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 6px;
    margin-bottom: 12px;
}

#prop-title {
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    color: #2d3436;
}

.prop-price {
    font-size: 2.2rem;
    color: #6c5ce7;
    margin: 12px 0 24px 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

/* Specs */
.prop-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.spec-card {
    background: #f8f9fa;
    border: 1px solid #e0e5ec;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.spec-label {
    color: #636e72;
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.spec-value {
    color: #2d3436;
    font-weight: 700;
    font-size: 1.15rem;
}

.divider {
    border: none;
    border-top: 1px solid #e0e5ec;
    margin: 30px 0;
}

/* Agent / Publisher Card */
.prop-agent-section h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.agent-card {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e0e5ec;
    border-radius: 16px;
    padding: 16px;
    gap: 16px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s, border-color 0.2s;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #6c5ce7;
    background: #ffffff;
}

.agent-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #0984e3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.agent-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #2d3436;
}

.agent-info p {
    margin: 0;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.agent-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: #f1c40f;
    font-size: 0.9rem;
    font-weight: 700;
}

.rate-advertiser {
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e5ec;
    border-radius: 12px;
    text-align: center;
}

.rate-advertiser h5 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: #2d3436;
}

.star-rating-input {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 1.8rem;
    cursor: pointer;
}

.star-rating-input .star {
    color: #dfe6e9;
    transition: color 0.2s, transform 0.2s;
}

.star-rating-input .star:hover,
.star-rating-input .star.active {
    color: #f1c40f;
    transform: scale(1.2);
}

/* Desc */
.prop-desc-section h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 800;
    color: #2d3436;
}

.prop-desc-section p {
    color: #636e72;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Amenities */
.prop-amenities-section h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: 800;
}
.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amenity-badge {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Sticky Footer */
.sticky-contact-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    padding: 16px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.btn-wa-large {
    background: #25D366;
    color: white;
    width: 100%;
    max-width: 500px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
}

.btn-wa-large svg { width: 28px; height: 28px; }
.btn-wa-large:hover { transform: translateY(-2px) scale(1.02); }

/* Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transition: opacity 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 20px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-close svg { width: 24px; height: 24px; }

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
    transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Contact Form */
.prop-contact-form-section h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8f9fa;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e0e5ec;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #636e72;
}

.form-group input, .form-group textarea {
    padding: 12px 16px;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.btn-submit-form {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    margin-top: 10px;
}

.btn-submit-form:hover {
    background: #5b4cc4;
    transform: translateY(-2px);
}

.form-success-msg {
    margin-top: 16px;
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Similar Properties - Horizontal Scroll Design */
.prop-similar-section h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.similar-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.similar-grid::-webkit-scrollbar {
    height: 6px;
}
.similar-grid::-webkit-scrollbar-thumb {
    background: #dfe6e9;
    border-radius: 10px;
}

.similar-card {
    flex: 0 0 240px; /* Tamaño compacto fijo */
    background: white;
    border: 1px solid #e0e5ec;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.similar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.similar-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.similar-card-info {
    padding: 12px;
}

.similar-card-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #636e72;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.similar-card-price {
    font-size: 1.15rem;
    color: #2d3436;
    font-weight: 800;
    margin-bottom: 4px;
}

.similar-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #636e72;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    overflow: hidden;
}

.similar-card-meta {
    font-size: 0.75rem;
    color: #2d3436;
    font-weight: 600;
    display: flex;
    gap: 8px;
    border-top: 1px solid #f1f3f5;
    padding-top: 8px;
}

@media(max-width: 480px) {
    .similar-card {
        flex: 0 0 200px; /* Mas pequeno en movil */
    }
}

/* States */
.loading-state, .error-state {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.error-state .btn-primary-blue {
    margin-top: 20px;
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.spinner {
    width: 44px; height: 44px;
    border: 4px solid #dfe6e9;
    border-top-color: #6c5ce7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Auth Modal Overrides for Property Page */
.auth-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 10500; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.auth-overlay.active { display: flex; opacity: 1; pointer-events: auto; }
.auth-card {
    background: rgba(28, 28, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px; padding: 30px; width: 90%; max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative; transform: translateY(20px); transition: transform 0.3s ease;
    color: white;
}
.auth-overlay.active .auth-card { transform: translateY(0); }
.auth-close-btn {
    position: absolute; top: 15px; right: 15px; background: transparent; border: none;
    color: #a4b0be; font-size: 1.2rem; cursor: pointer; padding: 5px;
}
.auth-header h2 { color: #fff; margin-bottom: 8px; font-size: 1.5rem; }
.auth-header p { color: #a4b0be; font-size: 0.9rem; margin-bottom: 25px; line-height: 1.4; }

/* ==========================================================================
   FLOATING GLASSMORPHIC BACK BUTTON DEFINITION
   ========================================================================== */
.floating-back-btn {
    position: fixed;
    z-index: 11000; /* Superar overlays e headers estándar */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #2d3436;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.floating-back-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.12);
}

/* Soporte de Modo Oscuro Automático */
body.dark-mode .floating-back-btn {
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .floating-back-btn:hover {
    background: rgba(45, 45, 45, 0.9);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
}

/* Ajustes de Posicionamiento Responsivo */
@media (max-width: 900px) {
    /* En dispositivos móviles ocultamos el botón flotante redundante y ajustamos paddings */
    .floating-back-btn {
        display: none !important;
    }
    
    #prop-content {
        padding-top: 60px !important;
    }
    
    .prop-gallery {
        padding-top: 0 !important;
    }

    .landing-footer {
        display: none !important;
    }
}

@media (min-width: 901px) {
    /* En pantallas de escritorio se posiciona debajo del header fijo de 80px */
    .floating-back-btn {
        top: 120px;
        left: 30px;
    }
}

/* ==========================================================================
   PREMIUM DARK MODE OVERRIDES
   ========================================================================== */
body.dark-mode {
    background-color: #0b0f19;
    color: #f1f5f9;
}

body.dark-mode .prop-wrapper {
    background: #111827;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

body.dark-mode #prop-title {
    color: #ffffff;
}

body.dark-mode .prop-price {
    color: #a78bfa;
}

body.dark-mode .spec-card {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .spec-label {
    color: #9ca3af;
}

body.dark-mode .spec-value {
    color: #ffffff;
}

body.dark-mode .divider {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .prop-agent-section h3,
body.dark-mode .prop-desc-section h3,
body.dark-mode .prop-amenities-section h3,
body.dark-mode .prop-similar-section h3,
body.dark-mode .prop-contact-form-section h3 {
    color: #ffffff;
}

body.dark-mode .agent-card {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .agent-card:hover {
    background: #253142;
    border-color: #6c5ce7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .agent-info h4 {
    color: #ffffff;
}

body.dark-mode .agent-info p {
    color: #9ca3af;
}

body.dark-mode .rate-advertiser {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .rate-advertiser h5 {
    color: #ffffff;
}

body.dark-mode .star-rating-input .star {
    color: #374151;
}

body.dark-mode .prop-desc-section p {
    color: #cbd5e1;
}

body.dark-mode .contact-form {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .form-group label {
    color: #9ca3af;
}

body.dark-mode .form-group input, 
body.dark-mode .form-group textarea {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark-mode .form-group input:focus, 
body.dark-mode .form-group textarea:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

body.dark-mode .btn-submit-form {
    background: #8b5cf6;
}

body.dark-mode .btn-submit-form:hover {
    background: #7c3aed;
}

body.dark-mode .sticky-contact-bar {
    background: #111827;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .similar-card {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .similar-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

body.dark-mode .similar-card-price {
    color: #ffffff;
}

body.dark-mode .similar-card-title {
    color: #9ca3af;
}

body.dark-mode .similar-card-meta {
    color: #cbd5e1;
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .similar-grid::-webkit-scrollbar-thumb {
    background: #374151;
}

body.dark-mode .spinner {
    border-color: #1f2937;
    border-top-color: #8b5cf6;
}

body.dark-mode .loading-state, 
body.dark-mode .error-state {
    background: #0b0f19;
    color: #ffffff;
}

/* Header Dark Mode Overrides (Anulando estilos en línea en propiedad.html) */
body.dark-mode #main-header {
    background: rgba(18, 18, 20, 0.75) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode #user-profile-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode #header-user-name {
    color: #ffffff !important;
}

body.dark-mode .prop-header {
    background: rgba(18, 18, 20, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .header-main-nav a {
    color: #ffffff !important;
}

/* ==========================================================================
   SPONSOR CARD STYLES
   ========================================================================== */
.prop-sponsor-section {
    margin: 30px 0;
}

.sponsor-card {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(9, 132, 227, 0.05) 100%);
    border: 1px dashed rgba(108, 92, 231, 0.3);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(108, 92, 231, 0.08);
    border-color: rgba(108, 92, 231, 0.5);
}

body.dark-mode .sponsor-card {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.06) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px dashed rgba(167, 139, 250, 0.25);
}

body.dark-mode .sponsor-card:hover {
    box-shadow: 0 12px 30px rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.45);
}

.sponsor-tag {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    color: #6c5ce7;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(108, 92, 231, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

body.dark-mode .sponsor-tag {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.15);
}

.sponsor-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2d3436;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sponsor-icon {
    color: #6c5ce7;
}

body.dark-mode .sponsor-icon {
    color: #a78bfa;
}

body.dark-mode .sponsor-title {
    color: #ffffff;
}

.sponsor-desc {
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

body.dark-mode .sponsor-desc {
    color: #cbd5e1;
}

.btn-sponsor-cta {
    align-self: flex-start;
    background: linear-gradient(135deg, #6c5ce7 0%, #0984e3 100%);
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .btn-sponsor-cta {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.btn-sponsor-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
    filter: brightness(1.05);
}

body.dark-mode .btn-sponsor-cta:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.btn-sponsor-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-sponsor-cta:hover svg {
    transform: translateX(3px);
}

/* Enlaces de Mapas Externos (Google y Apple Maps) */
.maps-links-container {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    width: 100%;
}

.map-link-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.map-link-btn.google-maps {
    color: #1e293b;
}

.map-link-btn.apple-maps {
    color: #1e293b;
}

.map-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

.map-link-btn.google-maps:hover {
    background: #f8fafc;
}

.map-link-btn.apple-maps:hover {
    background: #f8fafc;
}

body.dark-mode .map-link-btn {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .map-link-btn:hover {
    background: #374151;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.map-link-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.map-link-btn:hover svg {
    transform: scale(1.15);
}

.map-link-btn.google-maps svg {
    color: #34a853; /* Green marker color */
}

.map-link-btn.apple-maps svg {
    color: #007aff; /* Apple blue */
}

@media (max-width: 600px) {
    .maps-links-container {
        flex-direction: column;
        gap: 12px;
    }
}



