/* Reset y configuración base */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3e5d8;
  color: #111;
}

/* Sistema de pantallas */
.pantalla {
  display: none;
  min-height: 100vh;
  position: relative;
  padding-bottom: 40px;
}

.pantalla.activa {
  display: block;
}

/* Pantalla de portada */
.portada-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.logo-portada {
  width: 320px;
  border-radius: 50%;
  border: 6px solid #8b0000;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

/* Contenido de la pantalla de login */
.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 74px);
  padding: 40px 20px;
  background: linear-gradient(135deg, #f3e5d8 0%, #f8f4f0 100%);
  position: relative;
  overflow: hidden;
  gap: 25px;
}

/* Contenedor de imagen principal */
.main-image-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: center;
}


/* Imagen principal */
.main-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  overflow: hidden;
}


/* Contenedor de imagen de pie */
.footer-image-container {
  position: relative;
  transition: transform 0.3s ease;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
}

.footer-image-container:hover {
  transform: scale(1.02);
}

/* Imagen de pie */
.footer-image {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  object-fit: none;
  display: block;
  margin: 0 auto;
  overflow: hidden;
}

.footer-image:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
  transform: translateY(-5px);
}

/* Animaciones de brillos */
.sparkle {
  position: absolute;
  font-size: 1.5rem;
  animation: sparkle 2s infinite;
  pointer-events: none;
}

.sparkle-1 {
  top: 20px;
  right: 20px;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 60px;
  left: 20px;
  animation-delay: 0.7s;
}

.sparkle-3 {
  bottom: 40px;
  right: 40px;
  animation-delay: 1.4s;
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 0; 
    transform: scale(0.5) rotate(0deg);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.2) rotate(180deg);
  }
}

/* Iconos que rebotan */
.bounce-icon {
  position: absolute;
  font-size: 2rem;
  animation: bounce 1.5s infinite;
  pointer-events: none;
}

.bounce-1 {
  top: 30px;
  right: 30px;
  animation-delay: 0s;
}

.bounce-2 {
  top: 80px;
  left: 30px;
  animation-delay: 0.5s;
}

.bounce-3 {
  bottom: 50px;
  right: 50px;
  animation-delay: 1s;
}

@keyframes bounce {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
  }
  50% { 
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Recuadro con descripción de características */
.feature-description {
  background: #f5f5dc;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid #000;
}

.description-text {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #333;
  margin-bottom: 20px;
}

.description-text p {
  margin: 8px 0;
}

/* Iconos de cócteles de fondo */
.cocktail-icons {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.3;
}

.cocktail-icon {
  font-size: 2rem;
  margin: 5px;
  transform: rotate(-15deg);
}


/* Animaciones para partículas */
@keyframes particleExplosion {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--endX), var(--endY)) scale(0.3) rotate(360deg);
    opacity: 0;
  }
}

@keyframes heartExplosion {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translate(calc(var(--endX) * 0.5), calc(var(--endY) * 0.5)) scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--endX), var(--endY)) scale(0.5) rotate(360deg);
    opacity: 0;
  }
}

/* Estilos para imágenes */
.main-image-container,
.footer-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fondos de pantalla */
.pantalla-fondo2 {
  background: url("imagenes/pantalla2.png") center/cover no-repeat;
}

.pantalla-fondo3 {
  background: url("imagenes/pantalla3.png") center/cover no-repeat;
}

/* Header fijo */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #8b0000;
  color: #fff;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mini {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.titulo-header {
  font-family: Montserrat, Arial, sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.titulo-header .subtitulo {
  display: block;
  font-size: 0.6rem;
  opacity: 0.95;
}

/* Navegación derecha */
.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Barra de búsqueda en el header */
.nav-search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 16px;
}

.nav-search input,
.nav-search select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Contenido principal con offset para header fijo */
#main {
  padding-top: 74px;
}

.main-content {
  padding: 18px;
}

/* Controles */
.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.controls input,
.controls select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Grid de tragos */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
  gap: 14px;
  padding: 10px;
  justify-content: center;
}

.trago {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.trago:hover {
  transform: translateY(-2px);
}

.trago .thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid #8b0000;
}

.trago .content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.trago h3 {
  margin: 0;
  font-size: 1.05rem;
}

.trago .actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* Botones */
.btn {
  background: #8b0000;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn:hover {
  background: #a00000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn.small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

/* Botones de favoritos */
.btn-fav {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.btn-fav:hover {
  background: #f0f0f0;
  border-color: #ff6b6b;
  color: #ff6b6b;
  transform: scale(1.1);
}

.btn-fav:active {
  transform: scale(0.95);
}

/* Botón de eliminar */
.btn-fav[style*="background: #dc3545"] {
  background: #dc3545 !important;
  color: white !important;
  border-color: #dc3545 !important;
}

.btn-fav[style*="background: #dc3545"]:hover {
  background: #c82333 !important;
  border-color: #c82333 !important;
  color: white !important;
  transform: scale(1.1);
}

/* Búsqueda de usuarios */
.search-users-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.search-input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #8b0000;
}

.usuarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.usuario-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.usuario-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.usuario-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.usuario-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.usuario-info h3 {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
}

.usuario-info p {
  margin: 5px 0 0 0;
  color: #666;
  font-size: 0.9rem;
}

.usuario-bio {
  color: #555;
  font-style: italic;
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.usuario-stats {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.9rem;
}

.usuario-tragos {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.usuario-tragos h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1rem;
}

.tragos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trago-tag {
  background: #8b0000;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.trago-tag:hover {
  background: #a30000;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal[open],
.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: flex;
  gap: 20px;
}

.modal-left {
  flex: 1;
  max-width: 40%;
}

.modal-right {
  flex: 2;
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  float: right;
  color: #666;
}

.close:hover {
  color: #000;
}

/* Estrellas de puntaje */
.estrellas {
  display: flex;
  gap: 6px;
  align-items: center;
}

.estrella {
  font-size: 28px;
  cursor: pointer;
  color: #ccc;
  padding: 2px;
  transition: color 0.2s ease;
}

.estrella:hover,
.estrella.activa {
  color: gold;
}

/* Formularios de login/registro */
.form-card {
  max-width: 320px;
  margin: 40px auto;
  padding: 20px;
  background: #fffaf5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

/* Estilos para "Recordarme" */
.remember-me-container {
  margin: 15px 0;
  text-align: left;
}

.remember-me-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
  user-select: none;
  transition: color 0.3s ease;
}

.remember-me-label:hover {
  color: #8b0000;
}

.remember-me-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s ease;
  background: white;
}

.remember-me-label input[type="checkbox"]:checked + .checkmark {
  background: #8b0000;
  border-color: #8b0000;
}

.remember-me-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.remember-me-label:hover .checkmark {
  border-color: #8b0000;
  box-shadow: 0 2px 4px rgba(139, 0, 0, 0.2);
}

/* Botón de cerrar formularios */
.close-form-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #8b0000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.close-form-btn:hover {
  background: #a00000;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.form-card h3 {
  margin-bottom: 15px;
  color: #8b0000;
}

.form-card input {
  width: 100%;
  padding: 8px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-card .btn {
  width: 100%;
  background: #8b0000;
  color: white;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
}

/* Formulario para agregar trago */
#formAgregarTrago {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto;
}

#formAgregarTrago input,
#formAgregarTrago select,
#formAgregarTrago textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#formAgregarTrago button {
  background: #8b0000;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#formAgregarTrago button:hover {
  background: #a30000;
}

/* Perfil de usuario */
.perfil-top {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.perfil-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #8b0000;
}

.perfil-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Tarjetas de información */
.info-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card h3 {
  color: #8b0000;
  margin-top: 0;
}

.info-card ul {
  margin: 0;
  padding-left: 20px;
}

/* Utilidades */
.oculto {
  display: none !important;
}

/* Header oculto al inicio */
#topbar {
  display: none;
}

/* Avatar en botón de perfil */
#btnPerfil img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 5px;
  border: 1px solid rgba(255,255,255,0.3);
  object-fit: cover;
  transition: transform 0.2s ease;
}

#btnPerfil:hover img {
  transform: scale(1.1);
}

/* Indicador de carga para avatar */
.avatar-loading {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(45deg, #8b0000, #a30000);
  margin-right: 5px;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Botón de volver al menú */
#btnVolverMenu {
  background: #666 !important;
  margin-bottom: 8px;
}

#btnVolverMenu:hover {
  background: #555 !important;
}

/* Sección de favoritos en el perfil */
#perfilFavoritos {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 2px solid #e0e0e0;
  min-height: 200px;
}

/* Grid específico para favoritos en perfil */
#perfilFavoritos.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
  gap: 14px;
  padding: 10px;
  justify-content: center;
  background: transparent;
  border: none;
  margin: 0;
  min-height: auto;
}


/* Estilos para las secciones del perfil */
.perfil section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.perfil section h3 {
  color: #8b0000;
  margin-bottom: 15px;
  font-size: 1.3rem;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 8px;
}

/* Estilos mejorados para la sección de información */
.info-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 2px solid #e9ecef;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b0000, #dc143c, #8b0000);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-color: #8b0000;
}

.info-card h3 {
  color: #8b0000;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-card h4 {
  color: #2c3e50;
  margin: 20px 0 15px 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-left: 4px solid #8b0000;
  padding-left: 15px;
  background: rgba(139, 0, 0, 0.05);
  padding: 10px 15px;
  border-radius: 0 8px 8px 0;
}

.info-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.info-card li {
  background: #fff;
  margin: 12px 0;
  padding: 18px 25px;
  border-radius: 12px;
  border-left: 5px solid #8b0000;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  line-height: 1.6;
}

/* Iconos eliminados - diseño más limpio */

.info-card li:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  border-left-color: #dc143c;
}

/* Efectos especiales para cada tipo de tarjeta */
.materials-card li:hover {
  border-left-color: #ff6b6b;
  background: linear-gradient(135deg, #fff 0%, #ffe8e8 100%);
}

.techniques-card li:hover {
  border-left-color: #4dabf7;
  background: linear-gradient(135deg, #fff 0%, #e6f3ff 100%);
}

.tips-card li:hover {
  border-left-color: #51cf66;
  background: linear-gradient(135deg, #fff 0%, #e6ffe6 100%);
}

/* Animación de entrada para las tarjetas */
.info-card {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay escalonado para las tarjetas */
.materials-card {
  animation-delay: 0.1s;
}

.techniques-card {
  animation-delay: 0.2s;
}

.tips-card {
  animation-delay: 0.3s;
}

.info-card li strong {
  color: #8b0000;
  font-weight: 700;
  font-size: 1.05em;
}

/* Estilos específicos para diferentes secciones */
.materials-card {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.materials-card::before {
  background: linear-gradient(90deg, #8b0000, #ff6b6b, #8b0000);
}

.techniques-card {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.techniques-card::before {
  background: linear-gradient(90deg, #0066cc, #4dabf7, #0066cc);
}

.tips-card {
  background: linear-gradient(135deg, #f0fff4 0%, #e6ffe6 100%);
}

.tips-card::before {
  background: linear-gradient(90deg, #28a745, #51cf66, #28a745);
}

/* Header mejorado para la sección de información */
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.info-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.info-title-section h2 {
  color: white;
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.info-subtitle {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.close-info-btn {
  background: rgba(255,255,255,0.2) !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  color: white !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
}

.close-info-btn:hover {
  background: rgba(255,255,255,0.3) !important;
  border-color: rgba(255,255,255,0.5) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
}

.close-info-btn span {
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Fondo especial para la pantalla de información */
.info-pantalla {
  background: linear-gradient(135deg, #f3e5d8 0%, #f8f4f0 50%, #e8f4f8 100%);
  position: relative;
  overflow: hidden;
}

.info-pantalla::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(40, 167, 69, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
  }
  33% { 
    transform: translateY(-20px) rotate(1deg);
  }
  66% { 
    transform: translateY(10px) rotate(-1deg);
  }
}

/* Responsive para info-cards */
@media (max-width: 768px) {
  .info-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }
  
  .info-title-section h2 {
    font-size: 1.6rem;
  }
  
  .info-subtitle {
    font-size: 1rem;
  }
  
  .info-card {
    padding: 20px 15px;
    margin-bottom: 15px;
  }
  
  .info-card h3 {
    font-size: 1.2rem;
  }
  
  .info-card li {
    padding: 15px 18px;
    margin: 10px 0;
  }
}

#perfilFavoritos h3 {
  color: #8b0000;
  margin-bottom: 15px;
  font-size: 1.3rem;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 8px;
}

/* Mejoras para el perfil */
.perfil-top {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  border: 2px solid #8b0000;
  margin-bottom: 25px;
}

.perfil-foto {
  border: 4px solid #8b0000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.perfil-buttons {
  gap: 12px;
  margin-top: 20px;
}

/* Estilos para formularios en pantalla de login */
.formularios {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.formularios:empty {
  display: none;
}

/* Miguel - Mascota interactiva de Pourfect */
.miguel {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: scale(0.8);
}

.miguel.activo {
  opacity: 1;
  transform: scale(1);
}

.miguel-imagen {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
  background: transparent;
}

.miguel:hover .miguel-imagen {
  transform: scale(1.15);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

/* Efectos especiales por posición al hacer hover */
.miguel-izquierda:hover .miguel-imagen {
  transform: rotate(-15deg) scale(1.15);
}

.miguel-derecha:hover .miguel-imagen {
  transform: rotate(15deg) scale(1.15);
}

.miguel-arriba:hover .miguel-imagen {
  transform: rotate(180deg) scale(1.15);
}

.miguel-abajo:hover .miguel-imagen {
  transform: rotate(0deg) scale(1.15);
}

/* Efectos especiales para Miguel con imágenes transparentes */
.miguel-imagen {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  mix-blend-mode: normal;
}

/* Animación de brillo para Miguel */
.miguel.activo .miguel-imagen {
  animation: miguelGlow 2s ease-in-out infinite alternate;
}

@keyframes miguelGlow {
  0% {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) brightness(1);
  }
  100% {
    filter: drop-shadow(0 6px 12px rgba(139, 0, 0, 0.2)) brightness(1.1);
  }
}

/* Animaciones específicas por posición */
.miguel-izquierda.activo {
  animation: miguelAsomaIzquierda 0.8s ease-out;
}

.miguel-derecha.activo {
  animation: miguelAsomaDerecha 0.8s ease-out;
}

.miguel-arriba.activo {
  animation: miguelAsomaArriba 0.8s ease-out;
}

.miguel-abajo.activo {
  animation: miguelAsomaAbajo 0.8s ease-out;
}

@keyframes miguelAsomaIzquierda {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-100px) rotate(-15deg) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(-20px) rotate(-15deg) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) rotate(-15deg) scale(1);
  }
}

@keyframes miguelAsomaDerecha {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(100px) rotate(15deg) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(20px) rotate(15deg) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) rotate(15deg) scale(1);
  }
}

@keyframes miguelAsomaArriba {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-100px) rotate(180deg) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-20px) rotate(180deg) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotate(180deg) scale(1);
  }
}

@keyframes miguelAsomaAbajo {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(100px) rotate(0deg) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(20px) rotate(0deg) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
  }
}

/* Animaciones de Miguel */
@keyframes miguelAparece {
  0% { 
    opacity: 0;
    transform: scale(0.5) translateX(-50px);
  }
  50% { 
    opacity: 1;
    transform: scale(1.1) translateX(0);
  }
  100% { 
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

@keyframes miguelDesaparece {
  0% { 
    opacity: 1;
    transform: scale(1) translateX(0);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.1) translateX(20px);
  }
  100% { 
    opacity: 0;
    transform: scale(0.5) translateX(50px);
  }
}

@keyframes miguelSaluda {
  0%, 100% { 
    transform: rotate(0deg) scale(1);
  }
  25% { 
    transform: rotate(-10deg) scale(1.05);
  }
  75% { 
    transform: rotate(10deg) scale(1.05);
  }
}

@keyframes miguelRebota {
  0%, 100% { 
    transform: translateY(0) scale(1);
  }
  50% { 
    transform: translateY(-15px) scale(1.1);
  }
}

/* Posiciones de Miguel con poses específicas */
.miguel-izquierda {
  left: -50px;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
}

.miguel-izquierda .miguel-imagen {
  transform: rotate(-15deg);
}

.miguel-derecha {
  right: -50px;
  top: 50%;
  transform: translateY(-50%) rotate(15deg);
}

.miguel-derecha .miguel-imagen {
  transform: rotate(15deg);
}

.miguel-arriba {
  top: -50px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.miguel-arriba .miguel-imagen {
  transform: rotate(180deg);
}

.miguel-abajo {
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
}

.miguel-abajo .miguel-imagen {
  transform: rotate(0deg);
}

/* Estados especiales de Miguel */
.miguel.saludando {
  animation: miguelSaluda 1s ease-in-out;
}

.miguel.rebotando {
  animation: miguelRebota 0.6s ease-in-out;
}

.miguel.apareciendo {
  animation: miguelAparece 0.8s ease-out;
}

.miguel.desapareciendo {
  animation: miguelDesaparece 0.6s ease-in;
}

/* Miguel en diferentes pantallas */
.pantalla-fondo2 .miguel,
.pantalla-fondo3 .miguel {
  z-index: 999;
}

/* Responsive para Miguel */
@media (max-width: 768px) {
  .miguel-imagen {
    width: 120px;
    height: 120px;
  }
  
  .miguel-izquierda {
    left: -40px;
  }
  
  .miguel-derecha {
    right: -40px;
  }
  
  .miguel-arriba {
    top: -40px;
  }
  
  .miguel-abajo {
    bottom: -40px;
  }
}

@media (max-width: 480px) {
  .miguel-imagen {
    width: 100px;
    height: 100px;
  }
  
  .miguel-izquierda {
    left: -35px;
  }
  
  .miguel-derecha {
    right: -35px;
  }
  
  .miguel-arriba {
    top: -35px;
  }
  
  .miguel-abajo {
    bottom: -35px;
  }
}

/* Responsive design */
@media (max-width: 700px) {
  .titulo-header {
    font-size: 1.1rem;
  }
  
  .logo-portada {
    width: 220px;
  }
  
  .trago .thumb {
    height: 140px;
  }
  
  .login-content {
    flex-direction: column;
    padding: 15px;
    gap: 25px;
  }
  
  .main-image,
  .footer-image {
    max-width: 100%;
    height: auto;
    width: 100%;
  }
  
  .main-image-container,
  .footer-image-container {
    max-width: 100%;
    width: 100%;
  }
  
  .sparkle,
  .bounce-icon {
    font-size: 1rem;
  }
  
  .modal-content {
    flex-direction: column;
    max-width: 95%;
  }
  
  .modal-left,
  .modal-right {
    max-width: 100%;
  }
  
  .nav-search {
    flex-direction: column;
    gap: 4px;
    margin: 0 8px;
  }
  
  .nav-search input,
  .nav-search select {
    width: 100%;
    min-width: 120px;
  }
  
  .perfil-top {
    flex-direction: column;
    text-align: center;
  }
  
  .perfil-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 8px 12px;
  }
  
  .logo-mini {
    width: 40px;
    height: 40px;
  }
  
  .titulo-header {
    font-size: 1rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 180px));
    gap: 10px;
    padding: 8px;
    justify-content: center;
  }
  
  .trago .thumb {
    height: 120px;
  }
}