* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

/* --- HEADER / BANNER --- */
.banner-container {
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: flex-end;
    padding: 30px 10%;
}

.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.profile-section {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.profile-logo {
    width: 130px;
    height: 130px;
    border: 4px solid #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-right: 20px;
    background-size: cover !important;
    background-position: center !important;
}

.profile-info h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.badges {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.banner-buttons {
    position: absolute;
    right: 0;
    bottom: 10px;
    display: flex;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.btn-social:hover { 
    transform: translateY(-2px); 
}

.btn-whatsapp { 
    background-color: #25D366; 
    color: white; 
}

.btn-instagram { 
    background-color: white; 
    color: #333; 
}

/* --- CUERPO PRINCIPAL (Layout de Dos Columnas) --- */
.main-layout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.left-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.section-title {
    color: #9c27b0;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 5px;
}

.section-subtitle {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Catálogo de Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 15px;
    border: 1px solid #eef0f2;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: linear-gradient(90deg, #9c27b0, #7b1fa2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 5;
    line-height: 1.2;
}

.price-tag .precio-usd {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.price-tag .precio-bs {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 3px;
}

.product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #fafafa;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #222;
}

.product-info p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-consultar {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    background-color: #e9ecef;
    color: #495057;
    border: none;
    padding: 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-consultar:hover { 
    background-color: #dee2e6; 
}

/* ==================== GALERÍA DINÁMICA ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Estilos para imágenes */
.gallery-image-item {
    background-color: #f5f5f5;
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image-item:hover img {
    transform: scale(1.05);
}

/* Estilos para videos */
.gallery-video-placeholder {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #1a1a2e;
    overflow: hidden;
    display: block;
}

.gallery-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.gallery-video-placeholder:hover .gallery-video-thumb {
    opacity: 0.5;
}

.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 2.5rem;
    color: white;
}

.video-thumb-placeholder span {
    font-size: 0.7rem;
    font-weight: 600;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 5;
}

.gallery-video-placeholder:hover .video-overlay {
    transform: translateY(0);
}

.video-title {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-reproducir {
    background: linear-gradient(90deg, #9c27b0, #7b1fa2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-reproducir:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
}

/* ==================== FIX PARA REPRODUCCIÓN DE VIDEOS ==================== */
/* Video en reproducción */
.gallery-video-placeholder.video-playing {
    background-color: #000;
    min-height: 200px;
    height: 200px;
}

.gallery-video-placeholder.video-playing iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    z-index: 10;
}

/* Botón de cerrar video */
.video-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.2s ease;
}

.video-close-btn:hover {
    background: rgba(156, 39, 176, 0.9);
    transform: scale(1.1);
}

/* Placeholder para imágenes sin imagen */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #9c27b0;
}

.image-placeholder i {
    font-size: 2.5rem;
}

.image-placeholder span {
    font-size: 0.7rem;
    text-align: center;
    padding: 0 10px;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
    grid-column: 1 / -1;
}

/* ==================== MODAL PARA IMÁGENES ==================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.image-modal-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.image-modal-title {
    color: white;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.image-modal-close:hover {
    color: #9c27b0;
}

/* --- COLUMNA DERECHA --- */
.sidebar-wrapper {
    position: relative;
}

.info-sidebar {
    top: 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid #eef0f2;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.sidebar-title {
    color: #9c27b0;
    font-size: 1.3rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 10px;
}

.sidebar-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.info-icon {
    width: 38px;
    height: 38px;
    background-color: #f3e5f5;
    color: #9c27b0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-sidebar a {
    text-decoration: none;
}

.info-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.info-value.link {
    color: #9c27b0;
}

.info-value.link:hover {
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .main-layout { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    .info-sidebar { 
        position: static; 
    }
    
    .banner-container {
        height: auto;
        padding: 100px 20px 40px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-section { 
        flex-direction: column; 
        align-items: center;
    }
    
    .profile-logo { 
        margin-right: 0; 
        margin-bottom: 15px; 
    }
    
    .banner-buttons {
        position: static;
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .badges { 
        justify-content: center; 
    }
    
    .btn-back {
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .profile-info h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .gallery-item,
    .gallery-video-placeholder {
        height: 150px;
    }
    
    .video-title {
        font-size: 0.6rem;
    }
    
    .btn-reproducir {
        font-size: 0.55rem;
        padding: 4px 8px;
    }
    
    .video-overlay {
        padding: 8px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-social {
        justify-content: center;
    }
}
/* ==================== BOTÓN COMPARTIR Y MENÚ DESPLEGABLE ==================== */
.dropdown-share {
    position: relative;
    display: inline-block;
}

/* Botón compartir con MISMO estilo que WhatsApp e Instagram */
.btn-share {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    cursor: pointer;
}

.btn-share i {
    color: white;
}

/* Menú desplegable */
.dropdown-share-menu {
    display: none;
    position: absolute;
    bottom: 110%;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    margin-bottom: 10px;
}

.dropdown-share-menu.show {
    display: block;
    animation: fadeInUp 0.2s ease;
}

/* Opciones del menú */
.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    text-align: left;
    font-family: inherit;
}

.share-option:hover {
    background: #f8f9fa;
}

.share-option i {
    width: 20px;
    font-size: 16px;
}

/* Colores de iconos */
.share-option i.fa-copy { 
    color: #4a5568; 
}

.share-option i.fa-whatsapp { 
    color: #25D366; 
}

.share-option i.fa-instagram { 
    color: #E4405F; 
}

/* Animación */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast de notificación */
.toast-share {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: fadeInUp 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .dropdown-share-menu {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 280px;
        margin-bottom: 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    
    .dropdown-share-menu.show {
        animation: fadeInUp 0.2s ease;
    }
    
    .share-option {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .toast-share {
        bottom: 20px;
        white-space: normal;
        text-align: center;
        max-width: 90%;
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* Ajuste para pantallas muy pequeñas */
@media (max-width: 480px) {
    .dropdown-share-menu {
        min-width: 260px;
    }
    
    .share-option {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ==================== BOTÓN CÓMO LLEGAR ==================== */
.btn-como-llegar {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    justify-content: center;
}

.btn-como-llegar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* ==================== MODAL UBICACIÓN ==================== */
.modal-ubicacion {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-ubicacion-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    animation: slideInUp 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-ubicacion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb4d);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-ubicacion-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-ubicacion-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}

.modal-ubicacion-close:hover {
    transform: scale(1.2);
}

.modal-ubicacion-body {
    padding: 20px;
}

.ubicacion-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ubicacion-info p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.ubicacion-info strong {
    color: #1a2a6c;
}

.btn-ubicacion-principal {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-ubicacion-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.cargando-ubicacion {
    text-align: center;
    padding: 20px;
    color: #4285F4;
}

/* Responsive */
@media (max-width: 480px) {
    .modal-ubicacion-content {
        width: 95%;
        margin: 10px;
    }
}

/* ==================== LEAFLET MAP ==================== */
#mapContainer {
    margin-top: 30px;
}

#map {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    background-color: #f0f0f0;
    z-index: 1;  /* Asegura que el mapa esté por encima */
}

/* ✅ Fix para iconos de Leaflet en móviles */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}

/* Asegurar que los marcadores sean visibles */
.leaflet-marker-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Ajuste para responsividad */
@media (max-width: 900px) {
    #map {
        height: 250px;
    }
}

@media (max-width: 480px) {
    #map {
        height: 200px;
    }
}