/* ==========================================
   VARIABLES Y ESTILOS GLOBALES
   ========================================== */
:root {
    --bg-dark: #0a0a0c;
    --bg-card: #141418;
    --accent-red: #e63946;
    --accent-gold: #e5b93d;
    --text-light: #f8f9fa;
    --text-muted: #aaaaaf;
    --whatsapp-color: #25d366;
    --font-primary: 'Montserrat', sans-serif;
    --font-japanese: 'Noto Serif JP', serif;
    --font-calligraphy: 'Yuji Syuku', serif;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 185, 61, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: var(--font-japanese);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanji-accent {
    font-family: var(--font-calligraphy);
    color: var(--accent-red);
    font-size: 1.8rem;
    line-height: 1;
}

.logo span {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* ==========================================
   SECCIÓN HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('http://googleusercontent.com/image_collection/image_retrieval/4300864612658786904_0') center/cover no-repeat;
    padding: 6rem 1.5rem 3rem;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.75) 0%, rgba(10, 10, 12, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.japanese-badge {
    display: inline-block;
    padding: 0.4rem 1.4rem;
    background: rgba(230, 57, 70, 0.15);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.japanese-title {
    font-family: var(--font-japanese);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.japanese-title span {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--accent-gold);
    color: #0a0a0c;
}

.btn-primary:hover {
    background: #f5cb5c;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(229, 185, 61, 0.3);
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1eb855;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================
   SECCIÓN MENÚ CON EFECTO FLIP 180°
   ========================================== */
.menu-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.kanji-sub {
    font-family: var(--font-calligraphy);
    color: var(--accent-red);
    font-size: 2rem;
    display: block;
    margin-bottom: -10px;
}

.section-title {
    font-family: var(--font-japanese);
    font-size: 2.8rem;
}

.section-title span {
    color: var(--accent-gold);
}

.section-hint {
    color: var(--accent-gold);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Grilla de Tarjetas */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* ESTRUCTURA Y EFECTO 3D DE GIRO (FLIP 180°) */
.flip-card {
    background-color: transparent;
    height: 440px;
    perspective: 1000px; /* Perspectiva 3D */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d; /* Mantiene la tridimensionalidad */
    border-radius: 14px;
}

/* Al pasar el cursor, la tarjeta gira 180 grados en Y */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Caras Frontal y Posterior */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden; /* Oculta la cara contraria al girar */
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(229, 185, 61, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* CARA FRONTAL */
.flip-card-front {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Fotografía para cara frontal */
.img-20 { background-image: url('https://images.unsplash.com/photo-1611143669185-af224c5e3252?q=80&w=800&auto=format&fit=crop'); }
.img-30 { background-image: url('https://images.unsplash.com/photo-1579871494447-9811cf80d66c?q=80&w=800&auto=format&fit=crop'); }
.img-40 { background-image: url('https://images.unsplash.com/photo-1617196034796-73dfa7b1fd56?q=80&w=800&auto=format&fit=crop'); }
.img-50 { background-image: url('https://images.unsplash.com/photo-1563245372-f21724e3856d?q=80&w=800&auto=format&fit=crop'); }
.img-60 { background-image: url('https://images.unsplash.com/photo-1534422298391-e4f8c172dddb?q=80&w=800&auto=format&fit=crop'); }
.img-70 { background-image: url('https://images.unsplash.com/photo-1553621042-f6e147245754?q=80&w=800&auto=format&fit=crop'); }
.img-80 { background-image: url('https://images.unsplash.com/photo-1615361200141-f45040f367be?q=80&w=800&auto=format&fit=crop'); }

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.piece-badge {
    align-self: flex-start;
    background: rgba(230, 57, 70, 0.2);
    color: var(--accent-red);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-body h3 {
    font-family: var(--font-japanese);
    font-size: 1.35rem;
    color: var(--text-light);
}

.front-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.flip-hint {
    font-size: 0.8rem;
    color: var(--accent-red);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

/* CARA REVERSO (GIRADA 180 GRADOS) */
.flip-card-back {
    transform: rotateY(180deg); /* Pre-girada para alinearse con la rotación */
    background: url('http://googleusercontent.com/image_collection/image_retrieval/18115807911248245904_0') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.back-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 16, 0.92); /* Fondo oscuro semitransparente para legibilidad */
    backdrop-filter: blur(3px);
}

.back-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.back-content h4 {
    font-family: var(--font-japanese);
    color: var(--accent-gold);
    font-size: 1.15rem;
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 0.5rem;
    text-align: center;
}

.ingredient-group {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent-red);
    padding: 0.4rem 0.8rem;
    border-radius: 0 6px 6px 0;
    margin-top: 0.4rem;
}

.ingredient-group h5 {
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.ingredient-group p {
    color: var(--accent-gold);
    font-size: 0.78rem;
}

.order-btn {
    display: block;
    text-align: center;
    background: var(--whatsapp-color);
    color: #fff;
    text-decoration: none;
    padding: 0.7rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition-smooth);
    margin-top: 0.8rem;
}

.order-btn:hover {
    background: #1eb855;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* ==========================================
   SECCIÓN INFORMACIÓN / HORARIOS
   ========================================== */
.info-section {
    background: #0e0e12;
    padding: 4rem 1.5rem;
    border-top: 1px solid rgba(229, 185, 61, 0.1);
    border-bottom: 1px solid rgba(229, 185, 61, 0.1);
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-box h3 {
    font-family: var(--font-japanese);
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.info-box strong {
    color: var(--text-light);
}

/* ==========================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-btn:hover {
    transform: scale(1.12) rotate(8deg);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* ==========================================
   PIE DE PÁGINA
   ========================================== */
.footer {
    background: #060608;
    padding: 4rem 1.5rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-japanese);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--accent-gold);
}

.motivational-phrase {
    font-family: var(--font-japanese);
    font-style: italic;
    font-size: 1.1rem;
    color: #e2e2e8;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 0 1rem;
    border-left: 2px solid var(--accent-red);
    border-right: 2px solid var(--accent-red);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .japanese-title {
        font-size: 2.8rem;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .flip-card {
        height: 460px;
    }
}
