/* styles.css (v8) */

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fuente y fondo general */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #333;
}

/* Ajuste para el modo debug */
body.debug-mode {
  padding-bottom: 90px !important;
}

/* Top Bar estilo móvil */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #131921;
  color: white;
  padding: 10px 15px;
}

.hamburger {
  font-size: 26px;
  cursor: pointer;
}

.logo img {
  height: 40px;
}

.icons a {
  color: white;
  margin-left: 10px;
  text-decoration: none;
}

/* Side menu desplegable */
.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: #232f3e;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
}

.side-menu a {
  padding: 12px 20px;
  text-decoration: none;
  color: white;
  display: block;
  transition: 0.2s;
  white-space: nowrap;
}

.side-menu a:hover {
  background-color: #37475a;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 36px;
}

.side-menu .close-btn {
  opacity: 0;
  transition: opacity 0.7s ease 0s;
  pointer-events: none;
}

.side-menu[style*="width: 250px"] .close-btn {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease 0s;
}

/* Barra de búsqueda */
.search-bar {
  display: flex;
  padding: 10px;
  background-color: #232f3e;
}

.search-bar form {
  display: flex;
  flex: 1;
}

.search-bar input[type="text"] {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.search-bar button {
  background-color: #FDC049;
  border: none;
  padding: 0 10px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar button img {
  width: 18px;
  height: 18px;
}

/* Fichas de comercio */
.fichas {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px;
}

.ficha {
  border: 4px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.ficha:hover {
  background-color: #eef3f7;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.ficha img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 5px;
}

.ficha h3 {
  margin: 0;
  font-size: 1.2em;
  cursor: pointer;
}

.ficha h3:hover {
  color: #007bff;
}

.ficha p {
  margin: 5px 0;
  color: #555;
}

.resultado-busqueda {
  text-align: center;
  font-size: 16px;
  margin-top: 20px;
  color: #333;
}

.highlight {
  background-color: yellow;
}

/* === Fichas de Clasificados (estilo diario) === */
.ficha.clasificado {
  margin: 20px auto;
  max-width: 700px;
  border: 1px solid #ccc;
  padding: 10px;
  background: #fffefa;
  font-family: 'Courier New', monospace;
  box-shadow: inset 0 0 1px #aaa;
}

/* Niveles de aviso */
.ficha.clasificado.normal {
  display: flex;
  background: #ffffff;
  border: 1px solid #999;
}

.ficha.clasificado.premium {
  border: 2px solid gold;
  background: #fffbe8;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
  position: relative;
}

.ficha.clasificado.premium::before {
  content: "⭐ PREMIUM";
  position: absolute;
  top: -10px;
  right: -10px;
  background: gold;
  color: black;
  padding: 3px 8px;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 5px;
}

/* Contenido de ficha */
.ficha.clasificado .imagen {
  flex: 0 0 100px;
  border-right: 1px dashed #ccc;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ficha.clasificado .imagen img {
  max-width: 80px;
  max-height: 80px;
  object-fit: cover;
}

.ficha.clasificado .contenido {
  padding: 10px;
  flex: 1;
}

.ficha.clasificado h3 {
  margin: 0 0 5px;
  font-size: 1.1em;
  border-bottom: 1px dashed #aaa;
}

.ficha.clasificado .categoria {
  font-weight: bold;
  font-size: 0.9em;
  color: #555;
}

.ficha.clasificado .descripcion {
  font-size: 0.95em;
  margin-top: 5px;
}

/* Botones de reacción */
.ficha.clasificado .social {
  margin-top: 10px;
  font-size: 0.9em;
}

.ficha.clasificado .social .btn-react {
  cursor: pointer;
  margin-right: 10px;
  transition: transform 0.15s ease;
}

.ficha.clasificado .social .btn-react:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

@media (max-width: 600px) {
  .ficha.clasificado.normal {
    flex-direction: column;
  }

  .ficha.clasificado .imagen {
    border-right: none;
    border-bottom: 1px dashed #ccc;
  }
}

.seccion-clasificados-wrapper {
  background: #fffde8;
  padding-bottom: 40px;
}
body.modo-clasificados {
  background-color: #fffde8 !important;
}

.formulario-aviso {
  padding: 20px;
  background: transparent;
}



/* === LOGIN BOX REPLICA EXACTA - REEMPLAZAR EN styles.css === */
/* === LOGIN BOX REPLICA EXACTA IMAGEN 2 - REEMPLAZAR EN styles.css === */
/* === LOGIN BOX REPLICA EXACTA IMAGEN 2 - REEMPLAZAR EN styles.css === */
/* === LOGIN BOX REPLICA EXACTA IMAGEN 2 - REEMPLAZAR EN styles.css === */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

#login-box {
  position: fixed;
  top: 60px;
  left: 15px;
  right: 15px;
  z-index: 1000;
  background: #132130;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 0;
  overflow: hidden;
  max-width: 340px;
  margin: 0 auto;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

#login-box .login-header {
  background: #132130;
  padding: 30px 25px 25px;
  text-align: center;
  color: #f4efdf;
  position: relative;
}

#login-box .login-header .brand {
  display: none; /* No mostrar "G GUÍA DE ORO" */
}

#login-box .login-header h2 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 700; /* Bold para título */
  color: #f4efdf;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0px;
}

#login-box .login-header p {
  margin: 0;
  opacity: 1;
  font-size: 16px;
  font-weight: 400; /* Regular para subtítulo */
  color: #f4efdf;
  font-family: 'Montserrat', sans-serif;
}

/* ISLA OSCURA PARA TABS */
#login-box .login-tabs {
  display: flex;
  background: #0e1a24;
  padding: 0;
  margin: 0 25px 25px;
  border-radius: 8px;
}

#login-box .login-tabs button {
  flex: 1;
  background: none;
  border: none;
  color: #f4efdf;
  padding: 14px 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  font-weight: 400; /* Regular para tabs inactivos */
  font-family: 'Montserrat', sans-serif;
  position: relative;
}

#login-box .login-tabs button.active {
  color: #f4efdf;
  border-bottom-color: #e0ae3c;
  font-weight: 600; /* SemiBold para tab activo */
}

#login-box .login-tabs button:hover:not(.active) {
  color: #f4efdf;
  opacity: 0.8;
}

/* Contenido del login */
#login-box .login-content {
  background: #132130;
  padding: 0 25px 30px;
  color: #f4efdf;
}

/* Mensajes de éxito/error */
#login-box .message {
  padding: 10px 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  font-family: 'Montserrat', sans-serif;
}

#login-box .message.success {
  background: rgba(39, 174, 96, 0.2);
  color: #2ECC71;
  border: 1px solid rgba(39, 174, 96, 0.4);
}

#login-box .message.error {
  background: rgba(231, 76, 60, 0.2);
  color: #E74C3C;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

/* Formularios - LABELS DENTRO DEL INPUT */
#login-box .form-group {
  margin-bottom: 12px;
  position: relative;
}

#login-box .form-group label {
  display: none; /* Ocultar labels externos */
}

#login-box .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(244, 239, 223, 0.3);
  border-radius: 6px;
  font-size: 15px;
  background: #f4efdf;
  color: #132130;
  transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}

#login-box .form-group input::placeholder {
  color: #132130;
  opacity: 0.7;
  font-weight: 400; /* Regular para placeholders */
}

#login-box .form-group input:focus {
  outline: none;
  border-color: #e0ae3c;
  background: #ffffff;
}

/* Botón principal - COLOR EXACTO #e0ae3c */
#login-box .btn-primary {
  width: 100%;
  background: #e0ae3c;
  color: #2c3540;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700; /* Bold para botón principal */
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 15px 0;
  font-family: 'Montserrat', sans-serif;
}

#login-box .btn-primary:hover {
  background: #d49a2a;
}

#login-box .btn-primary:active {
  transform: translateY(1px);
}

/* Separador - MÁS COMPACTO */
#login-box .divider {
  text-align: center;
  margin: 12px 0;
  position: relative;
  color: #f4efdf;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
}

#login-box .divider::before {
  display: none; /* Sin línea divisoria */
}

#login-box .divider span {
  background: #132130;
  padding: 0;
}

/* Botones OAuth - MÁS JUNTOS */
#login-box .oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

#login-box .oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(244, 239, 223, 0.3);
  border-radius: 6px;
  background: transparent;
  color: #f4efdf;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400; /* Regular para botones OAuth */
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

#login-box .oauth-btn:hover {
  background: rgba(244, 239, 223, 0.1);
  border-color: rgba(244, 239, 223, 0.5);
}

/* Botón de cerrar - MISMO EFECTO REMOLINO */
#login-box .close-login {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(244, 239, 223, 0.6);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.4s ease;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#login-box .close-login:hover {
  color: #f4efdf;
  background: rgba(244, 239, 223, 0.1);
  transform: rotate(180deg) scale(1.1);
}

/* Responsive */
@media (max-width: 480px) {
  #login-box {
    left: 10px;
    right: 10px;
    top: 60px;
    max-width: none;
  }
  
  #login-box .login-content {
    padding: 0 20px 25px;
  }
  
  #login-box .login-header {
    padding: 25px 20px 20px;
  }
  
  #login-box .login-tabs {
    margin: 0 20px 20px;
  }
}

/* Overlay de fondo */
#login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
}

#login-overlay.active {
  display: block;
}

/* Animaciones de entrada */
@keyframes slideInDown {
  from {
    transform: translateY(-15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#login-box[style*="block"] {
  animation: slideInDown 0.3s ease-out;
}