/* =========================================
   1. VARIABLES Y CONFIGURACIÓN (Sykax System)
========================================= */
:root {
    /* Paleta de Colores */
    --bg: #050505;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-heavy: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 183, 197, 0.15); 
    --sakura: #ffb7c5;
    --sakura-hot: #ff4d94;
    --white: #ffffff;
    --text: #f5f5f5;
    --gray: #a0a0a0;
    
    /* Animaciones y Espaciado */
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --container-width: 1200px;
    --section-spacing: clamp(60px, 10vw, 120px);
}

/* =========================================
   2. RESETEO Y BASES RESPONSIVAS
========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px; /* Base para rem */
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    line-height: 1.6; 
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, .nav-logo { font-family: 'Cinzel', serif; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   3. ELEMENTOS DE FONDO (Optimización de Rendimiento)
========================================= */
.japanese-pattern {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Ctext x='10' y='50' fill='%23ffb7c5' fill-opacity='0.02' font-family='serif' font-size='20'%3E技%3C/text%3E%3Ctext x='60' y='80' fill='%23ffb7c5' fill-opacity='0.02' font-family='serif' font-size='20'%3E心%3C/text%3E%3C/svg%3E");
    z-index: -5; pointer-events: none;
}

.glow-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); z-index: -4; opacity: 0.3;
    pointer-events: none;
    will-change: transform;
}
.orb-pink { width: 60vw; height: 60vw; background: #2a1b2e; top: -10%; left: -10%; }
.orb-white { width: 50vw; height: 50vw; background: rgba(255, 255, 255, 0.05); bottom: -10%; right: -10%; }

/* =========================================
   4. NAVEGACIÓN (Glassmorphism Adaptable)
========================================= */
.glass-nav {
    position: fixed;
    top: 0; width: 100%; height: 80px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto; height: 100%; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-logo { font-size: 1.5rem; font-weight: 700; color: var(--white); text-decoration: none; letter-spacing: 1px; }
.nav-logo span { color: var(--sakura); text-shadow: 0 0 15px var(--sakura); }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { 
    text-decoration: none; color: var(--text); font-size: 0.85rem; 
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:not(.nav-btn):hover { color: var(--sakura); }

.nav-btn {
    padding: 12px 24px;
    border: 1px solid var(--sakura);
    border-radius: 50px;
    background: rgba(255, 183, 197, 0.05);
    color: var(--white) !important;
}

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* =========================================
   5. HERO SECTION (Layout Fluido)
========================================= */
.hero { 
    min-height: 100vh; 
    display: flex; align-items: center; justify-content: center; 
    text-align: center; position: relative; 
    padding: 100px 5% 60px;
    overflow: hidden;
}

.hero-kanji { 
    font-size: clamp(8rem, 20vw, 20rem); position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); color: var(--sakura); opacity: 0.03; 
    z-index: -1; pointer-events: none; 
}

.hero-content { max-width: 900px; width: 100%; }

.hero-tag {
    display: inline-block; padding: 6px 16px; background: var(--glass);
    border: 1px solid var(--border); border-radius: 50px;
    font-size: 0.75rem; color: var(--sakura); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 25px;
}

.hero-title {
    font-family: 'Unbounded', sans-serif; font-weight: 900;
    font-size: clamp(2rem, 8vw, 4.2rem); 
    line-height: 1.1; margin-bottom: 25px;
}

.hero-title span {
    background: linear-gradient(to right, #fff, var(--sakura), var(--sakura-hot));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-subtitle { 
    font-size: clamp(0.95rem, 2vw, 1.1rem); 
    color: var(--gray); max-width: 600px; margin: 0 auto 40px; 
}

.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
    padding: 16px 32px; border-radius: 12px; text-decoration: none; 
    font-weight: 700; text-transform: uppercase; font-size: 0.85rem; 
    transition: var(--transition); flex: 0 1 auto;
}
.btn-primary { background: var(--white); color: #000; }
.btn-secondary { background: var(--glass); color: var(--white); border: 1px solid var(--border); }

/* =========================================
   6. GRID DE SERVICIOS (Responsive Core)
========================================= */
.section-padding { padding: var(--section-spacing) 5%; max-width: var(--container-width); margin: 0 auto; }

.section-header { text-align: center; margin-bottom: clamp(40px, 8vw, 70px); }
.section-header h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 10px 0; }
.divider { height: 2px; width: 60px; background: var(--sakura-hot); margin: 20px auto; }

.services-grid {
    display: grid;
    /* Ajuste automático: mínimo 300px, máximo 1fr */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.service-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.card-image {
    position: relative; height: 200px; overflow: hidden;
}

.card-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: 0.6s ease; }

.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 0%, #0d0d0d 100%);
}

.card-icon {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    font-size: 3rem; color: var(--white); z-index: 2;
    filter: drop-shadow(0 0 10px var(--sakura-hot));
}

.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--white); }
.card-content p { font-size: 0.9rem; color: var(--gray); margin-bottom: 20px; }

.card-list { list-style: none; margin-bottom: 25px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); }
.card-list li { font-size: 0.8rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card-list i { color: var(--sakura-hot); }

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 10px; }
.price { font-size: 0.8rem; font-weight: 700; color: var(--sakura); background: rgba(255, 183, 197, 0.1); padding: 6px 12px; border-radius: 50px; }

.btn-card {
    background: var(--sakura-hot); color: #fff; text-decoration: none;
    padding: 10px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
}

/* =========================================
   7. FOOTER (Adaptable)
========================================= */
.main-footer { background: #000; border-top: 1px solid var(--border); padding-top: 60px; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px; margin-bottom: 40px;
}

.footer-logo { font-size: 1.8rem; margin-bottom: 15px; display: block; text-decoration: none; color: #fff; }
.footer-logo span { color: var(--sakura); }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; background: var(--glass);
    border: 1px solid var(--border); display: grid; place-items: center;
    color: #fff; text-decoration: none; transition: var(--transition);
}

.footer-links h3, .footer-contact h3 { font-size: 1rem; color: #fff; margin-bottom: 20px; text-transform: uppercase; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--sakura); }

.footer-contact p { font-size: 0.9rem; color: var(--gray); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--sakura); width: 16px; }

.footer-bottom { text-align: center; padding: 25px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--gray); font-size: 0.75rem; }

/* =========================================
   8. MEDIA QUERIES (La Magia del Responsive)
========================================= */

/* Tablets y Laptops Pequeñas */
@media (max-width: 1024px) {
    :root { --section-spacing: 80px; }
    .hero-title { font-size: 3.5rem; }
}

/* Tablets (Menú Hamburguesa) */
@media (max-width: 991px) {
    .nav-toggle { display: block; z-index: 1001; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center;
        transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        border-left: 1px solid var(--border);
    }

    .nav-links.active { right: 0; }
    
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { font-size: 1.2rem; display: block; padding: 15px; }
    
    .nav-btn { display: inline-block; width: auto; margin-top: 20px; }
}

/* Smartphones (Pantallas pequeñas) */
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; padding: 0 5%; }
    .hero-actions { flex-direction: column; align-items: stretch; padding: 0 10%; }
    
    .services-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
        padding: 0 10px;
    }

    .section-header h2 { font-size: 1.8rem; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-contact p { justify-content: center; }
}

/* Optimización para dispositivos muy pequeños (iPhone SE, etc) */
@media (max-width: 380px) {
    .hero-title { font-size: 2rem; }
    .nav-logo { font-size: 1.2rem; }
    .btn-primary, .btn-secondary { padding: 14px 20px; font-size: 0.75rem; }
}

/* Efectos de Hover (Solo para dispositivos con puntero/mouse) */
@media (hover: hover) {
    .service-card:hover { transform: translateY(-10px); border-color: var(--sakura); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
    .service-card:hover .card-image img { transform: scale(1.1); opacity: 0.9; }
    .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,255,255,0.1); }
    .btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
    .nav-links a:not(.nav-btn):hover { text-shadow: 0 0 10px var(--sakura); }
}

/* Soporte para animaciones Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }