:root {
    --bg-primary: #0d0d1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent: #FF9500;
    --accent-amber: #E07800;
    --accent-soft: rgba(255, 149, 0, 0.15);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* -- NAV -- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(13, 13, 26, 0.8);
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: block;
}

/* "Nezl" + la "y" acentuada van envueltos en .logo-word (un único flex item)
   para que el `gap` del contenedor no se cuele entre el texto y el <span> de
   color — si no, flexbox los trata como dos items separados y se ven partidos. */
.logo-word span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.lang-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* -- HERO -- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 149, 0, 0.2);
    border-radius: 100px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-amber));
    color: #ffffff;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.app-store-badge svg {
    width: 22px;
    height: 22px;
}

/* -- FEATURES -- */
.features {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    max-width: 500px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2rem;
    transition: background 0.2s, border-color 0.2s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 149, 0, 0.2);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* -- ABOUT -- */
.about {
    padding: 6rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.about p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* -- PERFUMERIA CTA -- */
.perfumeria-cta {
    padding: 6rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.perfumeria-cta .section-title {
    max-width: none;
}

.perfumeria-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.perfumeria-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-amber));
    color: #ffffff;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.perfumeria-btn:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* -- FOOTER -- */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-subtle);
    max-width: 1100px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Fila icono + wordmark, separada del <p> de tagline para que este último
   siga apilándose DEBAJO (como en el diseño original) en vez de al lado —
   .footer-brand ya no es flex, solo esta fila interna lo es. */
.footer-brand-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand-name img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: block;
}

/* Mismo motivo que .logo-word: envolver "Nezl" + <span>y</span> evita que el
   `gap` del flex los separe visualmente. */
.footer-brand-word span { color: var(--accent); }

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* -- LEGAL PAGES -- */
.legal {
    display: none;
    padding: 8rem 2rem 4rem;
    max-width: 750px;
    margin: 0 auto;
}

.legal.active { display: block; }

.legal h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal .last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.legal h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal p, .legal li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.legal table th, .legal table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.legal table th {
    color: var(--text-primary);
    font-weight: 600;
}

.legal a {
    color: var(--accent);
    text-decoration: none;
}

.legal a:hover { text-decoration: underline; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.back-link:hover { text-decoration: underline; }

/* -- Toggle de idioma dentro de una página legal (bloques data-lang) -- */
.legal-content { display: none; }
.legal-content.active { display: block; }

/* -- RESPONSIVE -- */
@media (max-width: 640px) {
    nav { padding: 1rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.8rem; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { flex-direction: column; gap: 1rem; align-items: center; }
}
