/* css/style.css - Estilos principales del sitio (versión limpia y corregida) */ /* Reset y tipografía global */ * { box-sizing: border-box; } body { font-family: 'Roboto', sans-serif; background: #f9f9f9; margin: 0; padding: 0; color: #333; line-height: 1.6; } /* Contenedores principales */ .container { max-width: 80%; margin: 0 auto; padding: 20px; } .main-container { display: flex; gap: 30px; position: relative; /* para position: absolute del botón Anúnciate */ } .content { flex: 1; } /* Títulos */ h1 { text-align: center; margin-bottom: 20px; font-weight: 500; color: #222; } /* Filtro por ciudad */ .filter { text-align: center; margin-bottom: 30px; } .filter select { padding: 12px 20px; font-size: 16px; width: 350px; max-width: 100%; border-radius: 8px; border: 1px solid #ddd; background: white; appearance: none; cursor: pointer; } /* Grid de tarjetas */ .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; } .card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05); text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, transform 0.2s ease; } .card:hover { box-shadow: 0 6px 25px rgba(0,0,0,0.1); transform: translateY(-4px); } .card img { width: 100%; height: 320px; object-fit: contain; background: #fff; } .card-body { padding: 20px; font-size: 0.95em; color: #444; } .card-body h3 { font-weight: 500; font-size: 1.4em; margin-bottom: 10px; color: #222; } .card-body p { margin: 5px 0; color: #666; font-size: 0.9em; } /* Elementos específicos */ .whatsapp { color: #25D366; font-weight: 500; margin-left: 5px; } .location { font-size: 0.9em; color: #777; margin-top: 10px; } .no-results { text-align: center; color: #888; font-size: 1.2em; margin: 60px 0; } /* Sidebar (menú lateral) */ .sidebar { width: 250px; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); } .sidebar h3 { font-weight: 500; font-size: 1.2em; margin-bottom: 15px; color: #333; } .sidebar a { display: block; padding: 10px 0; color: #007bff; text-decoration: none; border-bottom: 1px solid #eee; font-size: 0.95em; transition: color 0.2s; } .sidebar a:hover { color: #0056b3; } /* Enlace "Anúnciate gratis" en sidebar */ .ad-link { background: #007bff; color: white; text-align: center; padding: 15px; border-radius: 8px; margin-top: 30px; font-weight: 500; font-size: 1em; display: block; text-decoration: none; transition: background 0.2s; } .ad-link:hover { background: #0056b3; } /* === Nuevas funcionalidades === */ /* Botón "Anúnciate" arriba derecha */ .announce-btn { position: absolute; top: 15px; right: 15px; background: #28a745; color: white; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 500; transition: background 0.2s; box-shadow: 0 2px 10px rgba(0,0,0,0.2); z-index: 10; } .announce-btn:hover { background: #218838; } /* Banner para convertir en premium */ .premium-banner { background: #fff3cd; color: #856404; padding: 20px; border-radius: 10px; margin-bottom: 30px; text-align: center; border: 1px solid #ffeeba; } .premium-banner h2 { margin: 0 0 10px; font-size: 1.6em; } .premium-banner p { margin: 0 0 15px; font-size: 1em; } .premium-btn { background: #dc3545; color: white; padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: 500; transition: background 0.2s; } .premium-btn:hover { background: #c82333; } /* Texto SEO debajo del listado */ .seo-text { background: white; padding: 25px; border-radius: 10px; margin-top: 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); font-size: 0.95em; color: #555; line-height: 1.8; } .seo-text h2 { font-weight: 500; color: #222; margin-bottom: 15px; } .seo-text p { margin-bottom: 15px; } /* Footer con menú de páginas legales */ .footer { background: #f4f4f4; padding: 40px 0 20px; text-align: center; border-top: 1px solid #ddd; margin-top: 60px; font-size: 0.9em; color: #777; } .footer nav { margin-bottom: 15px; } .footer nav a { color: #007bff; margin: 0 15px; text-decoration: none; transition: color 0.2s; } .footer nav a:hover { color: #0056b3; } .footer p { margin: 0; } /* Botón menú hamburguesa (rojo, rectangular, solo icono) - SIEMPRE visible */ .menu-toggle { position: fixed; top: 15px; left: 15px; z-index: 1000; background: #dc3545; color: white; border: none; padding: 10px 16px; border-radius: 5px; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); transition: background 0.2s; } .menu-toggle:hover { background: #c82333; } /* Overlay para cerrar al clicar fuera */ .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; transition: opacity 0.3s ease; } .overlay.active { display: block; opacity: 1; } /* Menú lateral SIEMPRE oculto por defecto (móvil y escritorio) */ .sidebar { position: fixed; top: 0; left: 0; height: 100%; width: 280px; z-index: 999; background: white; box-shadow: 2px 0 15px rgba(0,0,0,0.15); overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; } .sidebar.active { transform: translateX(0); } /* En escritorio: contenido se desplaza cuando menú está abierto */ @media (min-width: 993px) { .content { margin-left: 0; transition: margin-left 0.3s ease; } .sidebar.active ~ .content { margin-left: 280px; } .menu-toggle { display: block; /* siempre visible */ } } /* === DETALLE DE PERFIL === */ .detail-container { max-width: 1000px; margin: 40px auto; background: white; padding: 40px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); } .detail-back { display: inline-block; margin-bottom: 30px; color: #007bff; font-weight: 500; text-decoration: none; transition: color 0.2s; } .detail-back:hover { color: #0056b3; } .detail-title { font-size: 2.4em; font-weight: 500; color: #222; margin: 0 0 20px; text-align: center; } .detail-info { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; } .detail-info p { font-size: 1.1em; margin: 8px 0; color: #444; } .detail-info strong { color: #222; } .detail-whatsapp { color: #25D366; font-weight: 600; text-decoration: none; } .detail-section h3 { font-size: 1.6em; font-weight: 500; color: #222; margin: 40px 0 15px; border-bottom: 2px solid #eee; padding-bottom: 10px; } .detail-description p { font-size: 1.05em; line-height: 1.8; color: #555; } .portada { width: 100%; max-height: 500px; object-fit: cover; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; } .galeria img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .galeria img:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(0,0,0,0.15); } /* Responsive para móvil */ @media (max-width: 768px) { .detail-container { padding: 20px; margin: 20px; } .detail-info { flex-direction: column; gap: 15px; } .portada { max-height: 400px; } .galeria img { height: 180px; } } /* Lightbox para galería */ .lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 2000; justify-content: center; align-items: center; } .lightbox-content { max-width: 90%; max-height: 90vh; border-radius: 12px; box-shadow: 0 0 30px rgba(0,0,0,0.8); object-fit: contain; } .lightbox-close { position: absolute; top: 30px; right: 40px; color: white; font-size: 50px; font-weight: bold; cursor: pointer; transition: color 0.2s; } .lightbox-close:hover { color: #ccc; } /* Efecto hover en miniaturas de galería */ .galeria-img { cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; } .galeria-img:hover { transform: scale(1.08); box-shadow: 0 8px 25px rgba(0,0,0,0.2); } /* Flechas en lightbox */ .lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; font-size: 50px; width: 60px; height: 60px; border-radius: 50%; cursor: pointer; transition: background 0.2s; } .left { left: 20px; } .right { right: 20px; } .lightbox-arrow:hover { background: rgba(0,0,0,0.8); } /* Sección "Otras chicas similares" */ .similar-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid #eee; } .similar-section h3 { text-align: center; font-size: 1.8em; margin-bottom: 30px; color: #222; } .similar-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }.hero { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1920x600?text=Hero+Banner+Chicas+Toledo') center/cover no-repeat; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; color: white; position: relative; margin-bottom: 40px; } .hero-content { max-width: 800px; padding: 30px; } .hero h1 { font-size: 3.5em; margin: 0 0 15px; font-weight: 500; text-shadow: 2px 2px 10px rgba(0,0,0,0.6); } .hero-subtitle { font-size: 1.8em; margin: 0 0 20px; font-weight: 300; } .hero-text { font-size: 1.3em; margin-bottom: 30px; opacity: 0.9; } .hero-cta { background: #dc3545; color: white; padding: 16px 40px; border-radius: 50px; text-decoration: none; font-size: 1.3em; font-weight: 500; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.3); } .hero-cta:hover { background: #c82333; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }.destacados { margin: 60px 0; text-align: center; } .destacados h2 { font-size: 2.2em; margin-bottom: 30px; color: #222; } .premium-card { position: relative; } .premium-badge { position: absolute; top: 10px; right: 10px; background: #ffc107; color: #333; padding: 6px 12px; border-radius: 20px; font-size: 0.8em; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.2); } .floating-cta { position: fixed; bottom: 30px; right: 30px; background: #28a745; color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 500; font-size: 1.1em; box-shadow: 0 6px 20px rgba(0,0,0,0.3); z-index: 100; transition: all 0.3s; } .floating-cta:hover { background: #218838; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); } @media (max-width: 768px) { .floating-cta { bottom: 20px; right: 20px; padding: 12px 25px; font-size: 1em; } } /* === PÁGINA DE PUBLICAR === */ .publish-container { max-width: 700px; margin: 40px auto; background: white; padding: 40px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); } .publish-container h1 { text-align: center; color: #222; margin-bottom: 10px; } .publish-subtitle { text-align: center; color: #555; margin-bottom: 40px; font-size: 1.1em; } .form-group { margin-bottom: 25px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; } .form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="number"], .form-group input[type="url"], .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 1em; transition: border-color 0.2s; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #007bff; outline: none; box-shadow: 0 0 0 3px rgba(0,123,255,0.1); } .required { color: #dc3545; } .checkbox-group { margin: 20px 0; } .checkbox-group label { display: flex; align-items: center; font-weight: normal; } .checkbox-group input[type="checkbox"] { margin-right: 10px; width: 20px; height: 20px; } .note { display: block; margin-top: 5px; color: #777; font-size: 0.9em; } .submit-btn { background: #28a745; color: white; border: none; padding: 16px; border-radius: 8px; font-size: 1.2em; font-weight: 500; cursor: pointer; transition: background 0.2s, transform 0.2s; width: 100%; } .submit-btn:hover { background: #218838; transform: translateY(-2px); } .success-message, .error-message { padding: 20px; border-radius: 10px; margin-bottom: 30px; text-align: center; } .success-message { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .error-message { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .back-btn { display: inline-block; margin-top: 20px; background: #007bff; color: white; padding: 12px 30px; border-radius: 8px; text-decoration: none; transition: background 0.2s; } .back-btn:hover { background: #0056b3; } /* === PÁGINA DE CONTACTO === */ .contact-form { background: white; padding: 40px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); } .contact-form .form-group { margin-bottom: 25px; } .contact-form label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; } .contact-form input, .contact-form textarea { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 1em; transition: border-color 0.2s; } .contact-form input:focus, .contact-form textarea:focus { border-color: #007bff; outline: none; box-shadow: 0 0 0 3px rgba(0,123,255,0.1); } .contact-form .submit-btn { background: #007bff; color: white; border: none; padding: 16px; border-radius: 8px; font-size: 1.2em; font-weight: 500; cursor: pointer; transition: background 0.2s, transform 0.2s; width: 100%; } .contact-form .submit-btn:hover { background: #0056b3; transform: translateY(-2px); } .contact-info { margin-top: 50px; text-align: center; padding: 30px; background: #f8f9fa; border-radius: 12px; } .contact-info h3 { font-size: 1.6em; margin-bottom: 20px; color: #222; } .whatsapp-link { color: #25D366; font-weight: 600; text-decoration: none; font-size: 1.2em; } .whatsapp-link:hover { text-decoration: underline; } /* === PANEL ADMIN === */ .admin-body { background: #f0f2f5; } .admin-container { max-width: 1400px; margin: 40px auto; padding: 0 20px; } .admin-login { max-width: 400px; margin: 100px auto; background: white; padding: 40px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); text-align: center; } .admin-login h2 { margin-bottom: 20px; color: #333; } .admin-login input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ddd; border-radius: 8px; font-size: 1em; } .admin-login button { background: #007bff; color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; width: 100%; font-size: 1.1em; transition: background 0.2s; } .admin-login button:hover { background: #0056b3; } .admin-filters { margin-bottom: 30px; display: flex; gap: 15px; flex-wrap: wrap; } .search-form { display: flex; gap: 10px; flex: 1; } .search-form input[type="text"] { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; } .search-form select { padding: 12px; border: 1px solid #ddd; border-radius: 8px; } .search-form button { background: #007bff; color: white; border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer; } .admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05); } .admin-table th, .admin-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; } .admin-table th { background: #007bff; color: white; font-weight: 500; } .admin-table tr:hover { background: #f8f9fa; } .admin-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; } .status-approved { color: #28a745; font-weight: 600; } .status-pending { color: #fd7e14; font-weight: 600; } .actions a { margin-right: 12px; padding: 6px 12px; border-radius: 6px; text-decoration: none; font-size: 0.9em; } .btn.approve { background: #28a745; color: white; } .btn.reject { background: #fd7e14; color: white; } .btn.delete { background: #dc3545; color: white; } .admin-msg { padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; } .admin-msg.success { background: #d4edda; color: #155724; } /* === PANEL ADMIN MEJORADO === */ .admin-body { background: #f0f2f5; min-height: 100vh; } .admin-container { max-width: 1400px; margin: 40px auto; padding: 20px; } .admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; } .admin-header h1 { margin: 0; font-size: 2em; } .logout-btn { background: #dc3545; color: white; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 500; transition: background 0.2s; } .logout-btn:hover { background: #c82333; } .admin-filters { margin-bottom: 30px; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); } .filter-form { display: flex; gap: 15px; flex-wrap: wrap; } .search-group { flex: 1; display: flex; gap: 10px; } .search-group input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; } .admin-table-container { overflow-x: auto; } .admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05); } .admin-table th, .admin-table td { padding: 15px; text-align: left; } .admin-table th { background: #007bff; color: white; font-weight: 500; } .admin-table tr:hover { background: #f8f9fa; } .admin-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; } .status-approved { color: #28a745; font-weight: 600; } .status-pending { color: #fd7e14; font-weight: 600; } .actions .btn { padding: 8px 12px; border-radius: 6px; text-decoration: none; margin-right: 8px; display: inline-block; transition: all 0.2s; } .btn-approve { background: #28a745; color: white; } .btn-reject { background: #fd7e14; color: white; } .btn-delete { background: #dc3545; color: white; } .btn:hover { opacity: 0.9; transform: translateY(-2px); } .admin-msg { padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; animation: fadeIn 0.5s; } .admin-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .fade-out { animation: fadeOut 1s forwards 4s; } @keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } } .admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; } .stat-card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); text-align: center; } .stat-card i { font-size: 2em; color: #007bff; margin-bottom: 10px; } .stat-card h4 { margin: 0 0 5px; font-size: 1em; color: #555; } .stat-card p { font-size: 1.8em; font-weight: 500; margin: 0; color: #222; } .export-btn { background: #17a2b8; color: white; padding: 12px 25px; border-radius: 8px; text-decoration: none; display: inline-block; margin-bottom: 20px; transition: background 0.2s; } .export-btn:hover { background: #138496; } /* === MODAL EDITAR === */ .modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; justify-content: center; align-items: center; } .modal-content { background: white; padding: 30px; border-radius: 16px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.3); position: relative; } .close-btn { position: absolute; top: 15px; right: 20px; font-size: 40px; cursor: pointer; color: #aaa; } .close-btn:hover { color: #333; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; } .form-group textarea { resize: vertical; min-height: 120px; } /* === BOTÓN EDITAR VERDE === */ .actions .btn-edit { background: #28a745 !important; /* Verde vivo */ color: white !important; } .actions .btn-edit:hover { background: #218838 !important; /* Verde oscuro al hover */ transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(40,167,69,0.4) !important; } /* Botón eliminar foto con AJAX */ .photo-item { position: relative; display: inline-block; margin: 10px; } .photo-item img { max-width: 120px; border-radius: 8px; display: block; } .delete-photo-btn { position: absolute; top: -8px; right: -8px; background: #dc3545; color: white; width: 28px; height: 28px; border-radius: 50%; border: none; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.3); transition: background 0.2s; } .delete-photo-btn:hover { background: #c82333; }.user-menu { position: relative; } .user-btn { background: #007bff; color: white; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 1rem; } .dropdown-menu { display: none; position: absolute; right: 0; top: 100%; background: white; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); min-width: 180px; z-index: 1000; } .dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #333; text-decoration: none; } .dropdown-menu a:hover { background: #f0f0f0; } .user-menu:hover .dropdown-menu { display: block; } .login-btn { background: #28a745; color: white; padding: 10px 16px; border-radius: 8px; text-decoration: none; display: flex; align-items: center; gap: 8px; }


/* =========================
   FIX: Estilos para tu index.php actual
   (clases: header/filtros/anuncios-grid/anuncio-card/paginacion)
   ========================= */

/* Header */
.header{
  background:#111;
  color:#fff;
  padding:16px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.header .logo h1{
  margin:0;
  font-size:1.4rem;
  text-align:left;
  color:#fff;
}
.header nav a{
  color:#fff;
  text-decoration:none;
  margin-left:12px;
  opacity:.9;
}
.header nav a:hover{ opacity:1; }

/* Filtros */
.filtros{
  padding:18px 20px;
  background:#fff;
  border-bottom:1px solid #e7e7e7;
}
.filtro-form{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
  align-items:end;
}
.filtro-group label{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  color:#444;
}
.filtro-group input{
  width:100%;
  padding:10px 12px;
  border:1px solid #ddd;
  border-radius:10px;
  outline:none;
}
.filtro-form button{
  padding:10px 12px;
  border:0;
  border-radius:10px;
  background:#111;
  color:#fff;
  cursor:pointer;
}

/* Grid anuncios */
.anuncios-grid{
  padding:20px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}
.anuncio-card{
  display:block;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  box-shadow:0 4px 20px rgba(0,0,0,0.05);
  transition:box-shadow .2s ease, transform .2s ease;
}
.anuncio-card:hover{
  box-shadow:0 6px 25px rgba(0,0,0,0.1);
  transform:translateY(-4px);
}
.anuncio-card img{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
  background:#fff;
}
.anuncio-info{
  padding:14px;
}
.anuncio-info h3{
  margin:0 0 6px;
  font-size:1.1rem;
  color:#222;
}
.edad-ubicacion{
  margin:0 0 8px;
  color:#666;
  font-size:.9rem;
}
.estado{
  margin:0;
  font-weight:700;
  color:#28a745;
}

/* Paginación */
.paginacion{
  padding:10px 20px 30px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.paginacion a{
  padding:8px 12px;
  border:1px solid #ddd;
  border-radius:10px;
  text-decoration:none;
  color:#111;
  background:#fff;
}
.paginacion a.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* Responsive */
@media (max-width: 1000px){
  .filtro-form{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .anuncios-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .filtro-form{ grid-template-columns:1fr; }
  .anuncios-grid{ grid-template-columns:1fr; }
  .header{ flex-direction:column; align-items:flex-start; }
  .header nav a{ margin-left:0; margin-right:12px; display:inline-block; }
}
/* =====================================================
   COMPATIBILIDAD: Index nuevo + páginas antiguas
   (no elimina estilos existentes, solo añade “alias”)
   ===================================================== */

/* 1) Header del index nuevo */
.header{
  background:#111;
  color:#fff;
  padding:16px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.header .logo h1{
  margin:0;
  font-size:1.4rem;
  text-align:left;
  color:#fff;
}
.header nav a{
  color:#fff;
  text-decoration:none;
  margin-left:12px;
  opacity:.9;
}
.header nav a:hover{ opacity:1; }

/* 2) “Alias” de filtros:
   Tu CSS antiguo usa .filter
   Tu index usa .filtros + .filtro-form + .filtro-group
*/
.filtros{ /* como tu .filter, pero adaptado */
  background:#fff;
  padding:18px 20px;
  border-bottom:1px solid #e7e7e7;
}
.filtro-form{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
  align-items:end;
}
.filtro-group label{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  color:#444;
}
.filtro-group input{
  width:100%;
  padding:10px 12px;
  border:1px solid #ddd;
  border-radius:10px;
  outline:none;
}
.filtro-form button{
  padding:10px 12px;
  border:0;
  border-radius:10px;
  background:#111;
  color:#fff;
  cursor:pointer;
}

/* 3) “Alias” de grid y cards:
   Antiguo: .grid .card .card-body
   Nuevo:   .anuncios-grid .anuncio-card .anuncio-info
   -> hacemos que compartan estilos
*/
.anuncios-grid{ /* copia el layout de .grid */
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:25px;
  padding:20px;
}

/* Hacemos que .anuncio-card se comporte como .card */
.anuncio-card{
  background:white;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 20px rgba(0,0,0,0.05);
  text-decoration:none;
  color:inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display:block;
}
.anuncio-card:hover{
  box-shadow:0 6px 25px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.anuncio-card img{
  width:100%;
  height:320px;
  object-fit: cover; /* en el index suele quedar mejor que contain */
  background:#fff;
  display:block;
}

/* Hacemos que .anuncio-info se comporte como .card-body */
.anuncio-info{
  padding:20px;
  font-size:0.95em;
  color:#444;
}
.anuncio-info h3{
  font-weight:500;
  font-size:1.4em;
  margin-bottom:10px;
  color:#222;
}
.anuncio-info p{
  margin:5px 0;
  color:#666;
  font-size:0.9em;
}
.estado{
  font-weight:600;
}

/* 4) Paginación del index nuevo */
.paginacion{
  padding:10px 20px 30px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.paginacion a{
  padding:8px 12px;
  border:1px solid #ddd;
  border-radius:10px;
  text-decoration:none;
  color:#111;
  background:#fff;
}
.paginacion a.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* 5) Responsive */
@media (max-width: 1000px){
  .filtro-form{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .anuncios-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .filtro-form{ grid-template-columns:1fr; }
  .anuncios-grid{ grid-template-columns:1fr; }
  .header{ flex-direction:column; align-items:flex-start; }
  .header nav a{ margin-left:0; margin-right:12px; display:inline-block; }
}
.login-btn, .logout-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.login-btn {
    background: #28a745; /* verde */
    color: white;
}

.login-btn:hover {
    background: #218838;
}

.logout-btn {
    background: #dc3545; /* rojo */
    color: white;
}

.logout-btn:hover {
    background: #c82333;
}
.admin-topbar {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-logo {
    font-size: 1.4rem;
    font-weight: bold;
}

.admin-hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.admin-nav {
    display: flex;
    gap: 25px;
}

.admin-nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav a:hover {
    background: #34495e;
}

.admin-nav a.active {
    background: #3498db;
    color: white;
}

.admin-logout {
    background: #e74c3c !important;
    margin-left: auto;
}

.admin-logout:hover {
    background: #c0392b !important;
}

/* Responsive - móvil */
@media (max-width: 992px) {
    .admin-hamburger {
        display: block;
    }

    .admin-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .admin-nav.active {
        display: flex;
    }

    .admin-nav a {
        justify-content: center;
        margin: 5px 0;
    }

    .admin-logo {
        flex: 1;
        text-align: center;
    }
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* más pequeño */
    gap: 15px; /* menos espacio entre tarjetas */
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 15px; /* padding reducido */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    min-height: 100px; /* altura mínima para que queden uniformes */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card i {
    font-size: 1.8rem; /* icono más pequeño */
    margin-bottom: 8px;
}

.stat-card h4 {
    font-size: 0.95rem; /* título más pequeño */
    margin: 0 0 6px 0;
    color: #555;
}

.stat-card p {
    font-size: 1.6rem; /* número grande pero proporcional */
    font-weight: bold;
    margin: 0;
    color: #333;
}

/* Mantener los bordes de color pero más finos si quieres */
.stat-card.pending {
    border-left: 4px solid #fd7e14; /* más delgado */
}
.stat-card.approved {
    border-left: 4px solid #28a745;
}
.stat-card.premium { /* si ya tienes la de premium */
    border-left: 4px solid #ffc107;
}
.anuncio {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.anuncio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 2rem 1rem;
}

.anuncio-card {
    position: relative;
    display: block;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.anuncio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.anuncio-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.anuncio-info {
    padding: 15px;
    text-align: center;
}

.anuncio-info h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    color: #222;
}

.edad-ubicacion {
    margin: 0 0 8px;
    color: #555;
    font-size: 1rem;
}

.estado {
    margin: 0;
    color: #28a745;
    font-weight: 600;
    font-size: 1rem;
}

/* Destacado premium */
.anuncio-card.premium {
    border: 2px solid #ffc107;
    box-shadow: 0 6px 20px rgba(255,193,7,0.3);
    background: linear-gradient(135deg, #fff8e1 0%, white 100%);
}

.premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffc107;
    color: #212529;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.premium-badge i {
    font-size: 1.1rem;
}
.mis-anuncios-table td {
    vertical-align: middle;
}
.mis-anuncios-table .btn {
    padding: 6px 12px;
    margin: 0 5px;
    font-size: 0.9rem;
}
.mis-anuncios-table .btn-edit {
    background: #28a745;
}
.mis-anuncios-table .btn-delete {
    background: #dc3545;
}
.reseñas {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #555;
    text-align: center;
}
.reseñas span {
    vertical-align: middle;
}
.reseñas .fa-star, .reseñas .fa-star-half-alt {
    color: #ffd700;
}
.reseñas .fa-star-o {
    color: #ddd;
}
.msg {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.msg-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.msg-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.verificado-badge {
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
}
/* =========================
   MENÚ SECUNDARIO ZONAS
========================= */

/* Desktop: barra horizontal */
.zones-bar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.zones-bar .zones-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.zones-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  color: #2c3e50;
  font-weight: 500;
  background: #f8fafc;
  transition: all .2s ease;
  font-size: 0.95rem;
}

.zones-bar a:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  background: #ffffff;
}

/* Botón de zonas en móvil */
.zones-btn-mobile {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: 10px;
}

/* Sidebar móvil */
.zones-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
}

.zones-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 290px;
  max-width: 85vw;
  background: #0b1220;
  color: #fff;
  z-index: 2100;
  transform: translateX(-105%);
  transition: transform .25s ease;
  padding: 18px 16px;
  box-shadow: 8px 0 30px rgba(0,0,0,0.35);
  overflow-y: auto;
}

.zones-sidebar.active {
  transform: translateX(0);
}

.zones-overlay.active {
  display: block;
}

.zones-sidebar .zones-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.zones-sidebar h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: .2px;
}

.zones-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.zones-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  margin-bottom: 10px;
}

.zones-links a:hover {
  background: rgba(255,255,255,0.12);
}

/* En móvil ocultamos la barra horizontal de zonas */
@media (max-width: 768px) {
  .zones-bar { display: none; }
  .zones-btn-mobile { display: inline-flex; }
  .header { gap: 10px; }
}
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.zones-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    position: relative;
    z-index: 900;
}

.zones-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.zones-inner a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 500;
    transition: all .2s ease;
}

.zones-inner a:hover {
    background: #e5e7eb;
    color: #111827;
}

.zones-inner a.active {
    background: #2563eb;
    color: #fff;
}

.zones-inner a.active i {
    color: #fff;
}

@media (max-width: 768px) {
    .zones-bar {
        display: none;
    }
}
