:root {
    --gold: #f39c12;
    --gold-glow: rgba(243, 156, 18, 0.4);
    --bg-dark: #12141d;
    --card-bg: #1c1f2b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: white;
    overflow-x: hidden;
}

/* Header y Contador */
.hero-section { 
    position: relative; 
    background: #000;
}

/* Logo INTEGRADO - sin recuadro, más grande */
.logo-container {
    position: absolute;
    top: 20px;
    left: 25px;
    z-index: 1001;
}

.logo-link {
    display: block;
    text-decoration: none;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.08);
}

.logo-img {
    height: 180px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: filter 0.3s ease;
}

.logo-link:hover .logo-img {
    filter: drop-shadow(0 0 15px rgba(243, 156, 18, 0.6));
}

header {
    padding: 40px 20px 30px;
    text-align: center;
    background: radial-gradient(circle at top, #2c3e50 0%, #000 70%);
    position: relative;
}

.main-title { 
    font-size: 1.8rem; 
    margin: 0; 
    letter-spacing: 1px; 
    color: var(--gold); 
    text-shadow: 0 0 20px var(--gold-glow);
}

#countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.time-unit span { 
    font-size: 2rem; 
    font-weight: 700; 
    color: white; 
    text-shadow: 0 0 10px var(--gold-glow);
}
.time-unit p { 
    font-size: 0.7rem; 
    color: var(--gold); 
    margin: 0; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* Buscador - Posicionado sobre el mapa */
.search-wrapper {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
}

.search-bar {
    display: flex;
    background: rgba(0,0,0,0.8);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--gold);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px var(--gold-glow);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 4px 30px rgba(243, 156, 18, 0.6);
    transform: scale(1.02);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding-left: 20px;
    outline: none;
    font-size: 1rem;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-bar button {
    background: var(--gold);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.search-bar button:hover {
    background: #ffaa2b;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* Mapa */
#map { 
    height: 500px; 
    width: 100%; 
    z-index: 1;
    background: #0a0a0f;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
}

/* Aviso corto debajo del mapa */
.map-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin: 10px 0 0;
    font-style: italic;
    padding: 0 20px;
}

/* Estilos Leaflet personalizados */
.leaflet-container {
    background: #0a0a0f !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.leaflet-popup-content-wrapper {
    background: var(--card-bg);
    color: white;
    border: 1px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--gold-glow);
}

.leaflet-popup-tip {
    background: var(--gold);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.leaflet-control-zoom a {
    background: var(--card-bg) !important;
    color: var(--gold) !important;
    border: 1px solid var(--gold) !important;
    transition: all 0.3s ease;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
}

.leaflet-control-zoom a:hover {
    background: var(--gold) !important;
    color: #000 !important;
    transform: scale(1.1);
}

.leaflet-control-attribution {
    background: rgba(28, 31, 43, 0.9) !important;
    color: #888 !important;
    font-size: 10px !important;
    padding: 5px 10px !important;
    border-radius: 5px 0 0 0;
}

.leaflet-control-attribution a {
    color: var(--gold) !important;
}

/* Animación para marcadores personalizados */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7); }
    70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 10px rgba(243, 156, 18, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

.custom-marker div {
    animation: pulse 2s infinite;
}

/* Panel de Información */
#info-panel { 
    padding: 60px 20px 40px; 
    display: flex; 
    justify-content: center;
    position: relative;
    z-index: 10;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--gold);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding: 35px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 0 40px var(--gold-glow), inset 0 0 60px rgba(243, 156, 18, 0.05);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.city-details h2 {
    margin: 0 0 10px 0;
    color: var(--gold);
    font-size: 1.8rem;
    text-shadow: 0 0 10px var(--gold-glow);
}

.city-details p {
    margin: 8px 0;
    color: #ccc;
    font-size: 0.95rem;
}

.highlight-text {
    color: var(--gold);
    font-weight: bold;
    text-shadow: 0 0 5px var(--gold-glow);
}

.sub-text {
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sub-text:hover {
    color: var(--gold);
}

.sun-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 30px var(--gold), inset 0 0 30px rgba(243, 156, 18, 0.4);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    background: radial-gradient(circle at 30% 30%, #f5b041 0%, #f39c12 40%, #d68910 70%, #000 100%);
}

#moon {
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    position: absolute;
    left: 100%;
    border-radius: 50%;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0,0,0,0.8), inset -10px 0 20px rgba(0,0,0,0.5);
}

.simulation-view h3 {
    text-align: center;
    margin-top: 20px;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.safety-tag {
    background: rgba(243, 156, 18, 0.15);
    color: var(--gold);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
    margin-top: 15px;
    border: 1px solid var(--gold);
    font-weight: bold;
    letter-spacing: 0.5px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(243, 156, 18, 0.3); }
    to { box-shadow: 0 0 15px rgba(243, 156, 18, 0.6); }
}

/* BOTONES DE ACCIÓN - MÁS GRANDES Y LLAMATIVOS */
.action-links {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2) 0%, rgba(243, 156, 18, 0.05) 100%);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover { 
    background: linear-gradient(135deg, var(--gold) 0%, #d68910 100%);
    color: #000;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    border-color: var(--gold);
}

/* Botón de Hotel - Color distintivo */
#btn-hotel {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

#btn-hotel:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    border-color: #3498db;
}

/* Botón de Gafas - Color dorado destacado */
.link-item[href="#shop-section"] {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.3) 0%, rgba(243, 156, 18, 0.1) 100%);
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(243, 156, 18, 0.5); }
}

.link-item[href="#shop-section"]:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #d68910 100%);
    color: #000;
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.5);
    animation: none;
}

.small-text {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* Tienda */
#shop-section { 
    padding: 80px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--gold);
}

/* Aviso ISO */
.iso-notice {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 40px;
    padding: 12px 20px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
}

.product-card { 
    background: white; 
    color: black; 
    border-radius: 20px; 
    padding: 30px; 
    text-align: center; 
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(243, 156, 18, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card img { 
    height: 180px; 
    object-fit: contain;
    width: 100%;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    max-height: 180px;
    width: auto;
    margin: 0 auto 15px;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    margin: 15px 0;
    font-size: 1.2rem;
    color: #222;
    font-weight: 700;
}

.product-desc {
    font-size: 0.85rem;
    color: #555;
    margin: 10px 0 15px;
    line-height: 1.4;
    min-height: 60px;
}

.featured { 
    border: 3px solid var(--gold);
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.2);
}

.featured:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 25px 50px rgba(243, 156, 18, 0.4);
}

.badge { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: var(--gold); 
    font-size: 0.7rem; 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-weight: bold;
    color: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.btn-amazon {
    display: inline-block;
    background: linear-gradient(135deg, #ff9900 0%, #ffac33 100%);
    color: #000;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    border: none;
    cursor: pointer;
}

.btn-amazon:hover {
    background: linear-gradient(135deg, #ffb84d 0%, #ff9900 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.5);
}

.more-products {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(243, 156, 18, 0.05);
    border-radius: 15px;
    border: 1px dashed var(--gold);
}

.more-products p {
    color: #888;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.link-more {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.link-more:hover {
    transform: translateX(5px);
    text-shadow: 0 0 10px var(--gold-glow);
}

/* SECCIÓN DE DIVULGACIÓN DE AFILIADOS - MÁS DISCRETA */
#affiliate-disclosure {
    padding: 30px 20px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclosure-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.disclosure-toggle {
    color: #666;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.disclosure-toggle:hover {
    color: var(--gold);
}

.disclosure-content {
    display: none;
    margin-top: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: left;
}

.disclosure-content.active {
    display: block;
}

.disclosure-content p {
    margin: 0 0 10px;
    color: #888;
    font-size: 0.8rem;
    line-height: 1.5;
}

.disclosure-content p:last-child {
    margin-bottom: 0;
}

.disclosure-content strong {
    color: #aaa;
}

/* Footer - Solo aviso de Amazon (obligatorio por contrato) */
footer {
    text-align: center;
    padding: 25px 20px;
    background: #0a0a0f;
    border-top: 1px solid #222;
}

footer p {
    margin: 0;
    color: #555;
    font-size: 0.7rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-container {
        top: 15px;
        left: 15px;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .main-title {
        font-size: 1.4rem;
    }
    
    .time-unit span {
        font-size: 1.5rem;
    }
    
    #map {
        height: 350px;
    }
    
    .search-wrapper {
        top: 140px;
    }
    
    .map-disclaimer {
        font-size: 0.7rem;
    }
    
    #info-panel {
        padding: 40px 15px;
    }
    
    .info-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
        padding: 25px;
    }
    
    .action-links {
        text-align: center;
    }
    
    .link-item {
        font-size: 1rem;
        padding: 14px 20px;
    }
    
    .sun-ring {
        width: 100px;
        height: 100px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .iso-notice {
        font-size: 0.8rem;
        padding: 10px 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured {
        transform: scale(1);
    }
    
    .featured:hover {
        transform: scale(1) translateY(-10px);
    }
    
    #affiliate-disclosure {
        padding: 20px 15px;
    }
    
    .disclosure-content {
        padding: 15px;
    }
    
    .disclosure-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .search-bar {
        padding: 6px;
    }
    
    .search-bar button {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    
    .city-details h2 {
        font-size: 1.4rem;
    }
    
    .link-item {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
}