/* ============================================
   VARIABLES - PALETA RESTAURANTE CHINO
   ============================================ */
:root {
  --rojo-chino: #c41e3a;
  --rojo-oscuro: #8b0000;
  --dorado: #d4a017;
  --dorado-claro: #f0c75e;
  --negro: #1a1a1a;
  --blanco-arroz: #fffaf0;
  --gris-seda: #f5f0e8;
  --verde-jade: #2e8b57;
  --gris: #6b7280;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 8px 30px rgba(196, 30, 58, 0.2);
  --radius: 0.75rem;
  --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--blanco-arroz);
  color: var(--negro);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   HEADER & NAVEGACIÓN
   ============================================ */
.site-header {
  background: linear-gradient(135deg, var(--rojo-chino), var(--rojo-oscuro));
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--dorado);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: "Noto Serif JP", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dorado);
  text-decoration: none;
  transition: var(--transition);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.logo:hover {
  color: var(--dorado-claro);
  transform: scale(1.05);
}
.logo .dragon-badge {
  font-size: 2rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--blanco-arroz);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dorado);
  border-bottom: 2px solid var(--dorado);
}

.btn-logout,
.btn-register {
  background: var(--dorado) !important;
  color: var(--rojo-oscuro) !important;
  padding: 0.6rem 2rem; /* ✅ Más espacio horizontal: 32px a cada lado */
  border-radius: 9999px;
  transition: var(--transition);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: none !important;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 1px; /* ✅ Espaciado entre letras para que respiren */
  text-decoration: none;
  line-height: 1.5; /* ✅ Altura de línea cómoda */
  min-width: 140px; /* ✅ Ancho mínimo para que no se aplaste */
}

.btn-logout:hover,
.btn-register:hover {
  background: var(--dorado-claro) !important;
  transform: translateY(-2px);
  border-bottom: none !important;
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}
/* Versión responsive para móviles */
@media (max-width: 768px) {
  .btn-logout,
  .btn-register {
    padding: 0.5rem 1.8rem;
    font-size: 0.9rem;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .btn-logout,
  .btn-register {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    min-width: 110px;
  }
}
/* Para móviles: reducir el tamaño del logo */
@media (max-width: 768px) {
  .logo {
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-align: center;
    gap: 0.2rem;
  }

  .logo .dragon-badge {
    font-size: 1.5rem;
  }

  .logo .chinese-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
  }

  .logo .dragon-badge {
    font-size: 1.3rem;
  }

  .logo .chinese-text {
    font-size: 0.8rem;
  }
}

/* ============================================
   MENSAJES FLASH (ALERTAS)
   ============================================ */
.alert {
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  animation: slideDown 0.4s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.alert-success i {
  color: #28a745;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.alert-error i {
  color: #dc3545;
}

/* Animación para que desaparezca después de unos segundos */
.alert-auto-hide {
  animation:
    slideDown 0.4s ease-out,
    fadeOut 0.5s ease-out 4s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
/* ============================================
   MAIN
   ============================================ */
.site-main {
  flex: 1;
  padding: 2rem 0;
  background: linear-gradient(
    180deg,
    var(--blanco-arroz) 0%,
    var(--gris-seda) 100%
  );
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background:
    linear-gradient(rgba(139, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1552566626-52f8b828add9?w=1920&h=600&fit=crop")
      center/cover no-repeat;
  border-radius: var(--radius);
  padding: 6rem 2rem;
  text-align: center;
  color: var(--blanco-arroz);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--dorado);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ctext x='50' y='50' text-anchor='middle' font-size='60' opacity='0.05'%3E🐉%3C/text%3E%3C/svg%3E")
    repeat;
  pointer-events: none;
}

.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  color: var(--dorado);
}

.hero p {
  font-size: 1.4rem;
  max-width: 700px;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, var(--dorado), var(--dorado-claro));
  color: var(--rojo-oscuro);
  padding: 1rem 3rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
  letter-spacing: 1px;
}

.btn-hero:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(212, 160, 23, 0.6);
}

/* ============================================
   DRAGON DECORATIVO
   ============================================ */
.dragon-badge {
  display: inline-block;
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ============================================
   REDES SOCIALES
   ============================================ */
.social-section {
  text-align: center;
  padding: 3rem 0;
  background: var(--gris-seda);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.social-section h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--rojo-chino);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-icons a {
  font-size: 2.5rem;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  background: var(--blanco-arroz);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* Colores originales de cada red social */
.social-icons a .fa-facebook {
  color: #1877f2; /* Azul Facebook */
}

.social-icons a .fa-instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-icons a .fa-tiktok {
  color: #000000; /* Negro TikTok */
}

/* Hover: solo animación sutil, sin cambio de color */
.social-icons a:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

/* En móviles: iconos más pequeños */
@media (max-width: 768px) {
  .social-section h2 {
    font-size: 1.5rem;
  }

  .social-icons {
    gap: 1.5rem;
  }

  .social-icons a {
    width: 55px;
    height: 55px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .social-icons {
    gap: 1.2rem;
  }

  .social-icons a {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }
}
/* ============================================
   ESPECIALIDADES
   ============================================ */
.especialidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.especialidad-card {
  background: var(--blanco-arroz);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}

.especialidad-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--dorado);
}

.especialidad-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--rojo-chino);
}

.especialidad-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.4rem;
  margin: 1.2rem 0 0.5rem 0;
  padding: 0 1rem;
  color: var(--rojo-chino);
}

.especialidad-card p {
  color: var(--gris);
  font-size: 0.95rem;
  padding: 0 1rem 1.5rem 1rem;
  line-height: 1.5;
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--blanco-arroz);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--dorado);
}

.form-container h1 {
  font-family: "Noto Serif JP", serif;
  text-align: center;
  color: var(--rojo-chino);
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--negro);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--gris-seda);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dorado);
  background: var(--blanco-arroz);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.1);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--rojo-chino), var(--rojo-oscuro));
  color: var(--blanco-arroz);
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--rojo-oscuro), var(--rojo-chino));
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.form-footer a {
  color: var(--rojo-chino);
  font-weight: 700;
  text-decoration: none;
}

.form-footer a:hover {
  color: var(--dorado);
  text-decoration: underline;
}

/* ============================================
   PASSWORD WRAPPER
   ============================================ */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 45px !important;
}

.password-wrapper button {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gris);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px 12px;
  z-index: 2;
}

.password-wrapper button:hover {
  color: var(--rojo-chino);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: var(--blanco-arroz);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
  animation: pulse 2s infinite;
  border: 2px solid var(--blanco-arroz);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* En móviles: WhatsApp más pequeño */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 45px;
    height: 45px;
    font-size: 22px;
    bottom: 15px;
    right: 15px;
  }
}
/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, var(--rojo-chino), var(--rojo-oscuro));
  border-top: 3px solid var(--dorado);
  padding: 2rem 0;
  margin-top: 4rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer p {
  color: var(--blanco-arroz);
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.95;
  margin: 0;
  max-width: 600px;
}

.site-footer .footer-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.site-footer .footer-divider {
  color: var(--dorado);
  font-weight: bold;
  margin: 0 0.3rem;
}

.site-footer .footer-chinese {
  font-family: "Noto Serif JP", serif;
  color: var(--dorado);
  cursor: help;
  transition: var(--transition);
  white-space: nowrap;
}

.site-footer .footer-chinese:hover {
  color: var(--dorado-claro);
  text-shadow: 0 0 8px rgba(212, 160, 23, 0.4);
}

.site-footer .footer-copyright {
  font-size: 0.85rem;
  opacity: 0.8;
  color: var(--dorado-claro);
}

.site-footer .footer-love {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .site-footer {
    padding: 1.5rem 0;
    margin-top: 3rem;
  }

  .site-footer p {
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 0 1rem;
  }

  .site-footer .footer-chinese {
    font-size: 0.85rem;
  }

  .site-footer .footer-copyright {
    font-size: 0.8rem;
  }

  .site-footer .footer-love {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 1.2rem 0;
    margin-top: 2rem;
  }

  .site-footer p {
    font-size: 0.82rem;
    line-height: 1.6;
    padding: 0 0.8rem;
  }

  .site-footer .footer-chinese {
    font-size: 0.8rem;
  }

  .site-footer .footer-copyright,
  .site-footer .footer-love {
    font-size: 0.75rem;
  }

  .site-footer .container {
    gap: 0.8rem;
  }
}

/* ============================================
   PERFIL
   ============================================ */
.perfil-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--blanco-arroz);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--dorado);
}

.perfil-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--rojo-chino), var(--rojo-oscuro));
  color: var(--dorado);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid var(--dorado);
}

.perfil-info {
  border-top: 2px solid var(--gris-seda);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gris-seda);
}

.label {
  font-weight: 600;
  color: var(--gris);
}

.value {
  font-weight: 700;
  color: var(--rojo-chino);
}

.perfil-actions {
  display: flex;
  gap: 1rem;
}

.btn-secondary,
.btn-danger {
  flex: 1;
  text-align: center;
  padding: 0.9rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary {
  background: var(--gris-seda);
  color: var(--negro);
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-danger {
  background: linear-gradient(135deg, var(--rojo-chino), var(--rojo-oscuro));
  color: var(--blanco-arroz);
}

.btn-danger:hover {
  box-shadow: var(--shadow-hover);
}

/* ============================================
   PÁGINA DE HISTORIA
   ============================================ */
.historia-container {
  max-width: 1200px;
  margin: 0 auto;
}

.historia-hero {
  background:
    linear-gradient(rgba(196, 30, 58, 0.85), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1552566626-52f8b828add9?w=1200&h=400&fit=crop")
      center/cover no-repeat;
  border-radius: var(--radius);
  padding: 5rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--blanco-arroz);
  border: 2px solid var(--dorado);
}

.historia-hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  color: var(--dorado);
}

.historia-hero p {
  font-size: 1.3rem;
  opacity: 0.95;
  font-style: italic;
}

.historia-contenido {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.historia-imagen {
  flex: 1;
}

.historia-imagen img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--rojo-chino);
  border-bottom: 5px solid var(--dorado);
}

.historia-texto {
  flex: 1.5;
}

.historia-texto h2 {
  font-family: "Noto Serif JP", serif;
  color: var(--rojo-chino);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.historia-texto p {
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.historia-texto .firma {
  font-family: "Noto Serif JP", serif;
  font-style: italic;
  color: var(--rojo-chino);
  font-size: 1.3rem;
  margin-top: 2.5rem;
  text-align: right;
}

/* ============================================
   GLOSARIO DE CARACTERES CHINOS
   ============================================ */
.glosario-container {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--blanco-arroz);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--dorado);
}

.glosario-container h2 {
  font-family: "Noto Serif JP", serif;
  color: var(--rojo-chino);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.glosario-intro {
  text-align: center;
  color: var(--gris);
  font-style: italic;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

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

.glosario-card {
  background: var(--gris-seda);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--rojo-chino);
  transition: var(--transition);
}

.glosario-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-left: 4px solid var(--dorado);
}

.glosario-char {
  font-family: "Noto Serif JP", serif;
  font-size: 2.5rem;
  color: var(--rojo-chino);
  text-align: center;
  margin-bottom: 0.5rem;
}

.glosario-pinyin {
  text-align: center;
  color: var(--dorado);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.glosario-significado {
  color: var(--negro);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.glosario-detalle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.glosario-detalle span {
  background: var(--rojo-chino);
  color: var(--blanco-arroz);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .glosario-container {
    padding: 2rem 1rem;
  }

  .glosario-char {
    font-size: 2rem;
  }

  .glosario-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   CARACTERES CHINOS
   ============================================ */
.chinese-text {
  cursor: help;
  transition: var(--transition);
  display: inline-block;
}

.chinese-text:hover {
  color: var(--dorado-claro);
  text-shadow: 0 0 10px rgba(212, 160, 23, 0.5);
  transform: scale(1.05);
}

/* Tooltip personalizado - SOLO en desktop (no en móviles) */
@media (hover: hover) and (pointer: fine) {
  [title] {
    position: relative;
  }

  [title]:hover::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--negro);
    color: var(--blanco-arroz);
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    white-space: normal;
    max-width: 250px;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
    margin-top: 10px;
    font-family: "Open Sans", sans-serif;
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  [title]:hover::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--negro) transparent;
    z-index: 1000;
    pointer-events: none;
    margin-top: 4px;
  }
}

/* En móviles, el tooltip se muestra como un subrayado punteado */
@media (hover: none) and (pointer: coarse) {
  [title] {
    border-bottom: 2px dotted var(--dorado);
    cursor: default;
  }
}
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.8rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.9rem;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.3rem 0;
  }

  .hero {
    padding: 3rem 1.5rem;
    min-height: 350px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .form-container,
  .perfil-container {
    padding: 2rem 1.5rem;
    margin: 0 0.5rem;
  }

  .perfil-header {
    flex-direction: column;
    text-align: center;
  }

  .perfil-actions {
    flex-direction: column;
  }

  .historia-contenido {
    flex-direction: column-reverse;
  }

  .historia-hero h1 {
    font-size: 2.2rem;
  }

  .historia-imagen {
    max-width: 350px;
    margin: 0 auto;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn-hero {
    padding: 0.7rem 2rem;
    font-size: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }
}
