/* ============================================
   Importadora Natsuki — Estilos Principal
   Paleta: Blanco · Beige · Corinto
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* --- Variables de color --- */
:root {
  --blanco:      #FFFFFF;
  --beige-claro: #F5F0E8;
  --beige-medio: #E8DECE;
  --beige-borde: #D6C9B5;
  --corinto:     #FF544C;
  --corinto-osc: #FF544C;
  --corinto-clr: #9E4560;
  --texto-ppal:  #2C1A22;
  --texto-sec:   #6B5058;
  --sombra:      rgba(123, 45, 66, 0.10);

  --radio-sm: 6px;
  --radio-md: 10px;
  --radio-lg: 16px;
  --transicion: 0.25s ease;
}

/* --- Reset y base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #222222;
  color: #F4EFE6;
  overflow-x: hidden;
}

/* ============================================
   Separador y Scroll
   ============================================ */
.separador {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #F4EFE6;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contenedor-scroll {
  height: 235vh;
  position: relative;
}

.escena-fija {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #222222 0%, #222222 100%);
}

.texto-fondo {
  position: absolute;
  font-size: 15vw;
  font-weight: 900;
  color: #44444E;
  white-space: nowrap;
  user-select: none;
  transform: translateX(50%);
}

.contenido {
  display: flex;
  align-items: center;
  gap: 5rem;
  z-index: 2;
  max-width: 1200px;
  width: 90%;
}

.info-producto {
  flex: 1;
}

.titulo-revelado {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.palabra {
  display: inline-block;
  white-space: pre;
  opacity: 0.1;
  transform: translateY(20px);
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.descripcion {
  font-size: 1.2rem;
  color: #F4EFE6;
  opacity: 0;
  transform: translateY(10px);
}

/* ============================================
   Tarjeta 3D
   ============================================ */
.tarjeta-3d {
  width: 350px;
  height: 450px;
  background: #9E1B32;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: scale(0.5) rotateY(-60deg) rotateX(20deg);
}

/* ============================================
   Barra de Progreso
   ============================================ */
.barra-progreso {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #ff0055, #00ffcc);
  width: 0%;
  z-index: 10;
}

/* ============================================
   Header
   ============================================ */
header {
  background: #222222;
  color: #F4EFE6;
  padding: 2.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   Navegación
   ============================================ */
nav {
  background-color: #9E1B32;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  /* Necesario para posicionar el botón de usuario */
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 60px;
  gap: 0;
}

nav ul li {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

nav ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: rgba(244, 239, 230, 0.75);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 0 1.25rem;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
  border-bottom: 2px solid transparent;
}

/* Línea inferior animada */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #F4EFE6;
  border-radius: 2px 2px 0 0;
  transition: width 0.25s ease;
}

nav ul li a:hover {
  color: #F4EFE6;
  background: rgba(255, 255, 255, 0.07);
}

nav ul li a:hover::after {
  width: 60%;
}

/* Primer link como activo */
nav ul li:first-child a {
  color: #F4EFE6;
  background: rgba(255, 255, 255, 0.07);
}

nav ul li:first-child a::after {
  width: 60%;
}

/* Separadores entre items */
nav ul li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   Dropdown de Usuario
   ============================================ */

/* Contenedor del botón + dropdown, pegado a la derecha */
.nav-usuario {
  position: absolute;
  right: 1.5rem;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Botón "Usuario" */
.usuario-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
  cursor: pointer;
  color: #F4EFE6;
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
  transition: background 0.2s ease;
}

.usuario-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Círculo de avatar */
.usuario-avatar {
  width: 24px;
  height: 24px;
  background: #F4EFE6;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Flecha que rota al abrir */
.usuario-chevron {
  font-size: 16px;
  opacity: 0.7;
  display: inline-block;
  transition: transform 0.2s ease;
  line-height: 1;
}

.nav-usuario.abierto .usuario-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.usuario-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  min-width: 210px;
  overflow: hidden;
  z-index: 999;
}

.nav-usuario.abierto .usuario-dropdown {
  display: block;
  animation: fadeDown 0.18s ease;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Encabezado del dropdown */
.dropdown-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-header p {
  font-size: 12px;
  color: #888888;
  margin: 0;
}

/* Separador */
.dropdown-sep {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

/* Items del dropdown */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: #2C1A22;
  font-size: 13.5px;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}

.dropdown-item:hover {
  background: #f8f2f4;
  color: #9E1B32;
}

/* Botón principal de iniciar sesión */
.dropdown-item--ppal {
  background: #9E1B32;
  color: #F4EFE6;
  font-weight: 600;
  margin: 8px 10px;
  border-radius: 6px;
  width: calc(100% - 20px);
  justify-content: center;
}

.dropdown-item--ppal:hover {
  background: #b52038;
  color: #ffffff;
}

/* ============================================
   Paneles GSAP
   ============================================ */
.paneles-gsap {
  display: flex;
  gap: 2rem;
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.panel {
  flex: 1;
  background: #9E1B32;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  color: #F4EFE6;
}

.panel h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #222222;
}

.panel p {
  color: #F4EFE6;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.panel-btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border: 1px solid #c8a96e;
  border-radius: 8px;
  color: #F4EFE6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}

.panel-btn:hover {
  background: #c8a96e;
  color: #F4EFE6;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background-color: #9E1B32;
  color: #F4EFE6;
  padding: 30px 20px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* ============================================
   Formulario de Contacto (Bulma override)
   ============================================ */
.has-background-warning {
  background-color: #222222;
  padding: 3rem 1.5rem;
  font-family: sans-serif;
}

.has-background-warning .container {
  max-width: 600px;
  margin: 0 auto;
}

.has-background-warning .title.is-3 {
  font-size: 2rem;
  font-weight: 600;
  color: #F4EFE6;
  margin-bottom: 1.5rem;
}

.has-background-warning .field {
  margin-bottom: 0.75rem;
}

.has-background-warning .label {
  color: #F4EFE6;
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.has-background-warning .input,
.has-background-warning .textarea {
  width: 100%;
  padding: calc(0.75em - 1px) calc(1em - 1px);
  font-size: 1rem;
  background-color: #2a2a2a;
  color: #F4EFE6;
  border: 1px solid #9E1B32;
  border-radius: 4px;
  box-sizing: border-box;
}

.has-background-warning .input:focus,
.has-background-warning .textarea:focus {
  outline: none;
  border-color: #F4EFE6;
  box-shadow: 0 0 5px rgba(158, 27, 50, 0.5);
}

.has-background-warning .input.is-success {
  border-color: #9E1B32;
}

.has-background-warning .textarea {
  min-height: 120px;
  resize: vertical;
}

.has-background-warning .button.is-primary {
  background-color: #9E1B32;
  color: #F4EFE6;
  border: none;
  border-radius: 4px;
  padding: calc(0.5em - 1px) 1em;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.has-background-warning .button.is-primary:hover {
  background-color: #bd243f;
}

/* ============================================
   Media Queries
   ============================================ */
@media (max-width: 680px) {
  .paneles-gsap {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }

  nav ul {
    height: auto;
    flex-wrap: wrap;
    padding: 0.5rem 0 0.5rem;
  }

  nav ul li {
    width: auto;
    text-align: center;
    margin: 0;
    height: auto;
    border-left: none;
  }

  nav ul li + li {
    border-left: none;
  }

  nav ul li a {
    padding: 0.6rem 0.9rem;
    height: auto;
    font-size: 13px;
    border-bottom: none;
  }

  nav ul li a::after {
    display: none;
  }

  .nav-usuario {
    position: static;
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .usuario-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: calc(100% + 4px);
  }
}