/* --- Reseteo y Variables Globales --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --primary: #00f2ff;
    --secondary: #39ff14;
    --bg-dark: #05060a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #e0e0e0;
    --gold: #FFD700;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: radial-gradient(circle at top right, #0a1525, #05060a 50%);
}

/* --- Navegación Fija --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 6, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

.logo { font-size: 1.5rem; font-weight: bold; letter-spacing: 1px; }
.logo span { color: var(--primary); }

.lang-switch a { 
    color: var(--text-main); 
    text-decoration: none; 
    margin: 0 5px; 
    font-size: 0.9rem; 
}
.lang-switch a:hover { color: var(--primary); }

/* --- Estructura de Secciones --- */
section {
    padding: 140px 10% 80px;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- HERO: Solución de Orden y Superposición --- */
.hero {
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1.2;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.floating {
    width: 100%;
    max-width: 480px;
    height: auto;
    animation: floatVertical 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.2));
}

@keyframes floatVertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- SISTEMAS Y PRECIOS --- */
.systems-section h2 { 
    text-align: center; 
    margin-bottom: 60px; 
    font-size: 2.8rem; 
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card { 
    transition: transform 0.3s ease; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative; /* Base para el badge */
}

.card:hover { transform: translateY(-10px); }

.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px;
}

.old-price { color: #ff4d4d; font-size: 0.9rem; margin-bottom: 5px; }
.offer { 
    background: #ff4d4d; 
    padding: 2px 12px; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 0.8rem; 
    margin-bottom: 15px;
}

.price { 
    font-size: 2.2rem; 
    font-weight: bold; 
    color: var(--secondary); 
    margin-bottom: 2px;
}

.yen-price {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 35px; /* Espacio para el botón */
    display: block;
}

/* --- BADGE FLOTANTE CON PULSO --- */
.badge-bestseller {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(45deg, var(--gold), #FFC107);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 15px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
    z-index: 100;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    /* Animación de pulso */
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.card.highlight:hover .badge-bestseller {
    animation-play-state: paused; /* Se detiene el pulso al hacer hover para leer mejor */
    transform: scale(1.1);
}

/* --- BOTONES --- */
.btn-primary, .btn-huge {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #000;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover, .btn-huge:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 25px var(--primary); 
}

/* --- CONTACTO FINAL --- */
.contact-final { 
    align-items: center; 
    background: rgba(0,0,0,0.2);
}

.contact-container { 
    width: 100%; 
    max-width: 600px; 
    text-align: center; 
}

.contact-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-container input, 
.contact-container textarea {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.btn-huge { 
    width: 100%; 
    font-size: 1.1rem; 
    margin-top: 10px;
}

/* --- PAGINA DE DETALLES --- */
.details-page {
    background: radial-gradient(circle at bottom left, #0a1a3a, var(--bg-dark));
}

.details-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 160px;
}

.glass-content {
    max-width: 800px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
}

.main-desc {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: var(--primary);
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    margin-bottom: 50px;
}

.feature-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
}

.price-box {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px dashed var(--primary);
    border-radius: 20px;
}

.price-tag { font-size: 3rem; font-weight: bold; color: var(--secondary); display: block; }
.yen-tag { font-size: 1.5rem; color: var(--text-main); opacity: 0.8; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    font-size: 0.9rem;
    opacity: 0.6;
    border-top: 1px solid var(--border-glass);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text {
        align-items: center;
    }
    .hero-text h1 { font-size: 2.5rem; }
}