/* =============================================
   ENTRARGRUPO.COM - Estilos principales
   Tema oscuro, mobile-first
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:#0a0a0a; --surface:#111; --surface2:#1a1a1a;
  --border:#222; --border2:#333; --text:#f0f0f0;
  --muted:#888; --muted2:#555; --accent:#25d366;
  --red:#ff4444; --pink:#ff6b9d; --blue:#4da6ff;
  --orange:#ff9500; --purple:#b47aff;
  --radius:10px; --radius-lg:14px;
}

html { scroll-behavior:smooth; }
body { font-family:'DM Sans',sans-serif; background:var(--bg); color:var(--text); font-size:15px; line-height:1.6; min-height:100vh; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
img { display:block; }
button { cursor:pointer; font-family:inherit; }

/* NAVBAR */
.navbar { display:flex; align-items:center; justify-content:space-between; padding:0 2rem; height:62px; border-bottom:1px solid var(--border); background:var(--bg); position:sticky; top:0; z-index:100; gap:1rem; }
.logo { font-family:'Syne',sans-serif; font-weight:800; font-size:1.25rem; color:var(--text); white-space:nowrap; }
.logo span { color:var(--accent); }
.nav-links { display:flex; gap:1.5rem; list-style:none; align-items:center; }
.nav-links a { color:var(--muted); font-size:14px; transition:color .2s; }
.nav-links a:hover { color:var(--text); }
.nav-adulto { color:var(--red) !important; }
.btn-publish { background:var(--accent); color:#000; padding:8px 18px; border-radius:var(--radius); font-weight:600; font-size:13px; white-space:nowrap; transition:opacity .2s; }
.btn-publish:hover { opacity:.85; }

/* HERO */
.hero { padding:4rem 2rem 3rem; text-align:center; border-bottom:1px solid var(--border); }
.hero h1 { font-family:'Syne',sans-serif; font-size:clamp(2rem,5vw,3.5rem); font-weight:800; line-height:1.1; margin-bottom:1rem; }
.accent { color:var(--accent); }
.hero p { color:var(--muted); font-size:1rem; max-width:480px; margin:0 auto 2rem; }
.search-bar { display:flex; max-width:500px; margin:0 auto; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:border-color .2s; }
.search-bar:focus-within { border-color:var(--accent); }
.search-bar input { flex:1; background:none; border:none; outline:none; padding:14px 18px; color:var(--text); font-size:15px; font-family:'DM Sans',sans-serif; }
.search-bar input::placeholder { color:var(--muted); }
.search-bar button { background:var(--accent); border:none; padding:12px 22px; color:#000; font-weight:600; font-family:'DM Sans',sans-serif; font-size:14px; transition:opacity .2s; }
.search-bar button:hover { opacity:.85; }
.hero-stats { display:flex; gap:2.5rem; justify-content:center; margin-top:2rem; flex-wrap:wrap; }
.stat { text-align:center; }
.stat strong { display:block; font-family:'Syne',sans-serif; font-size:1.5rem; font-weight:700; color:var(--accent); }
.stat span { font-size:12px; color:var(--muted); }

/* SECCIONES */
.section { padding:2.5rem 2rem; }
.section-title { font-family:'Syne',sans-serif; font-weight:700; margin-bottom:1.5rem; display:flex; align-items:center; gap:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-size:12px; }
.section-title::after { content:''; flex:1; height:1px; background:var(--border); }
.page-header { padding:2.5rem 2rem 1.5rem; border-bottom:1px solid var(--border); }
.page-header h1 { font-family:'Syne',sans-serif; font-size:clamp(1.6rem,3vw,2.5rem); font-weight:800; margin-bottom:.5rem; }
.page-header p { color:var(--muted); }
.page-h1 { font-family:'Syne',sans-serif; font-size:2rem; font-weight:800; margin-bottom:2rem; }

/* BREADCRUMB */
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); margin-bottom:1rem; flex-wrap:wrap; }
.breadcrumb a { color:var(--muted); transition:color .2s; }
.breadcrumb a:hover { color:var(--accent); }
.breadcrumb span { color:var(--muted2); }

/* CATEGORÍAS */
.categories-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.cat-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.2rem 1rem; cursor:pointer; transition:all .2s; display:block; }
.cat-card:hover { border-color:var(--accent); background:var(--surface2); transform:translateY(-2px); }
.cat-card.cat-adulto:hover { border-color:var(--red); }
.cat-icon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.6rem; margin-bottom:10px; }
.cat-name { font-family:'Syne',sans-serif; font-weight:600; font-size:13px; color:var(--text); display:block; }
.cat-count { font-size:12px; color:var(--muted); margin-top:3px; }

/* Colores categorías */
.cat-card:nth-child(1)  .cat-icon { background:#1a3a2a; }
.cat-card:nth-child(2)  .cat-icon { background:#3a1a2a; }
.cat-card:nth-child(3)  .cat-icon { background:#1a2a3a; }
.cat-card:nth-child(4)  .cat-icon { background:#2a1a3a; }
.cat-card:nth-child(5)  .cat-icon { background:#3a2a1a; }
.cat-card:nth-child(6)  .cat-icon { background:#1a3a3a; }
.cat-card:nth-child(7)  .cat-icon { background:#3a3a1a; }
.cat-card:nth-child(8)  .cat-icon { background:#2a3a1a; }
.cat-card:nth-child(9)  .cat-icon { background:#1a2a3a; }
.cat-card:nth-child(10) .cat-icon { background:#3a1a1a; }
.cat-card:nth-child(11) .cat-icon { background:#2a3a2a; }
.cat-card:nth-child(12) .cat-icon { background:#3a2a3a; }
.cat-card:nth-child(13) .cat-icon { background:#3a1a1a; }
.cat-card:nth-child(14) .cat-icon { background:#3a1a1a; }
.cat-card:nth-child(15) .cat-icon { background:#1a2a3a; }
.cat-card:nth-child(16) .cat-icon { background:#3a1a2a; }
.cat-card:nth-child(17) .cat-icon { background:#2a1a3a; }
.cat-card:nth-child(18) .cat-icon { background:#3a3a1a; }
.cat-card:nth-child(19) .cat-icon { background:#3a1a1a; }

/* PAÍSES */
.countries-row { display:flex; flex-wrap:wrap; gap:8px; }
.country-pill { background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:6px 14px; font-size:13px; color:var(--muted); cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:6px; }
.country-pill:hover, .country-pill.active { background:var(--surface2); color:var(--text); border-color:var(--border2); }

/* FILTRO COLAPSABLE */
.filtro-toggle { background:var(--surface); border:1px solid var(--border); color:var(--muted); padding:10px 18px; border-radius:var(--radius); font-size:14px; cursor:pointer; width:100%; text-align:left; transition:all .2s; margin-bottom:0; }
.filtro-toggle:hover { border-color:var(--border2); color:var(--text); }
.filtro-paises { display:none; flex-wrap:wrap; gap:8px; padding:1rem 0; }
.filtro-paises.open { display:flex; }

/* TABS */
.tabs { display:flex; gap:4px; background:var(--surface); border-radius:var(--radius); padding:4px; width:fit-content; margin-bottom:1.5rem; }
.tab { padding:8px 18px; border-radius:7px; font-size:13px; font-weight:500; color:var(--muted); transition:all .2s; border:none; background:none; font-family:'DM Sans',sans-serif; }
.tab.active, .tab:hover { background:var(--accent); color:#000; font-weight:600; }

/* GRUPOS GRID */
.groups-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }

/* CARD DE GRUPO */
.group-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.2rem; transition:all .2s; display:flex; flex-direction:column; gap:8px; }
.group-card:hover { border-color:var(--border2); background:var(--surface2); }
.group-destacado { border-color:var(--accent) !important; }

.group-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.group-info { flex:1; min-width:0; }
.group-name { font-family:'Syne',sans-serif; font-weight:600; font-size:14px; color:var(--text); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:color .2s; margin-bottom:4px; }
.group-name:hover { color:var(--accent); }
.group-cat { display:flex; align-items:center; flex-wrap:wrap; gap:4px; font-size:12px; color:var(--muted); line-height:1.4; }
.group-cat a { color:var(--muted); transition:color .2s; }
.group-cat a:hover { color:var(--accent); }
.group-cat img { width:14px; height:11px; object-fit:cover; border-radius:2px; vertical-align:middle; display:inline-block; flex-shrink:0; }
.cat-sep { color:var(--muted2); }
.group-badges { display:flex; gap:4px; flex-shrink:0; }

.group-desc { font-size:13px; color:var(--muted); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.group-footer { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:4px; }
.group-meta { display:flex; gap:10px; flex-wrap:wrap; }
.meta-item { font-size:11px; color:var(--muted); display:flex; align-items:center; gap:5px; }
.dot-active { width:6px; height:6px; border-radius:50%; background:var(--accent); display:inline-block; flex-shrink:0; }
.dot-inactive { width:6px; height:6px; border-radius:50%; background:var(--muted2); display:inline-block; flex-shrink:0; }
.btn-join { background:var(--accent); color:#000; border:none; padding:7px 16px; border-radius:8px; font-size:12px; font-weight:600; cursor:pointer; font-family:'DM Sans',sans-serif; display:inline-block; transition:opacity .2s; white-space:nowrap; }
.btn-join:hover { opacity:.85; }
.btn-ver-mas { display:inline-block; border:1px solid var(--border2); color:var(--muted); padding:10px 24px; border-radius:var(--radius); font-size:14px; transition:all .2s; }
.btn-ver-mas:hover { border-color:var(--accent); color:var(--accent); }

/* BADGES */
.badge { display:inline-flex; align-items:center; font-size:10px; padding:2px 8px; border-radius:20px; font-weight:600; white-space:nowrap; }
.badge-adulto { background:rgba(255,68,68,.15); color:var(--red); border:1px solid rgba(255,68,68,.25); }
.badge-new, .badge-verificado { background:rgba(37,211,102,.15); color:var(--accent); border:1px solid rgba(37,211,102,.25); }
.badge-dest { background:rgba(255,149,0,.15); color:var(--orange); border:1px solid rgba(255,149,0,.25); }
.badge-cat, .badge-pais { background:var(--surface2); color:var(--muted); border:1px solid var(--border); }

/* AVISO ADULTO */
.aviso-adulto { background:rgba(255,68,68,.1); border:1px solid rgba(255,68,68,.2); border-radius:var(--radius); padding:12px 16px; font-size:13px; color:#ff8888; margin-top:1rem; }

/* DETALLE GRUPO */
.grupo-detalle { max-width:680px; }
.grupo-detalle-header { display:flex; align-items:flex-start; gap:1.2rem; margin-bottom:1.5rem; }
.grupo-avatar-lg { width:64px; height:64px; border-radius:14px; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:2rem; flex-shrink:0; }
.grupo-detalle-header h1 { font-family:'Syne',sans-serif; font-size:1.6rem; font-weight:800; margin-bottom:.5rem; }
.grupo-meta-row { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.grupo-desc-full { margin-bottom:1.5rem; }
.grupo-desc-full h2 { font-family:'Syne',sans-serif; font-size:1rem; font-weight:700; margin-bottom:.5rem; color:var(--muted); }
.grupo-desc-full p { color:var(--muted); line-height:1.7; }
.grupo-stats { display:flex; gap:1.5rem; margin-bottom:1.5rem; flex-wrap:wrap; }
.grupo-stat { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:.8rem 1.2rem; text-align:center; }
.grupo-stat strong { display:block; font-family:'Syne',sans-serif; font-size:1.1rem; font-weight:700; color:var(--text); }
.grupo-stat span { font-size:12px; color:var(--muted); }
.btn-unirse-grande { display:inline-flex; align-items:center; gap:8px; background:var(--accent); color:#000; padding:14px 28px; border-radius:var(--radius-lg); font-weight:700; font-size:15px; font-family:'Syne',sans-serif; transition:opacity .2s; margin-bottom:1rem; }
.btn-unirse-grande:hover { opacity:.85; }
.grupo-reporte { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--muted); margin-top:.5rem; }
.btn-reportar { background:none; border:1px solid var(--border); color:var(--muted); padding:5px 12px; border-radius:8px; font-size:12px; transition:all .2s; }
.btn-reportar:hover { border-color:var(--red); color:var(--red); }

/* FORMULARIO */
.publish-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:2rem; }
.publish-box h2 { font-family:'Syne',sans-serif; font-weight:700; font-size:1.2rem; margin-bottom:6px; }
.publish-box > p { color:var(--muted); font-size:13px; margin-bottom:1.5rem; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:1.2rem; }
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group.full { grid-column:1 / -1; }
.form-group label { font-size:12px; color:var(--muted); font-weight:500; }
.form-group input, .form-group select, .form-group textarea { background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:10px 14px; color:var(--text); font-size:14px; font-family:'DM Sans',sans-serif; outline:none; transition:border-color .2s; width:100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--accent); }
.form-group select option { background:#111; }
.form-group textarea { resize:vertical; min-height:80px; }
.check-label { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); cursor:pointer; }
.check-label input { accent-color:var(--accent); width:16px; height:16px; }
.btn-submit { background:var(--accent); color:#000; border:none; padding:12px 28px; border-radius:var(--radius); font-weight:700; font-size:14px; font-family:'Syne',sans-serif; transition:opacity .2s; }
.btn-submit:hover { opacity:.85; }

/* ALERTAS */
.alert { border-radius:var(--radius); padding:14px 18px; margin-bottom:1.5rem; font-size:14px; }
.alert p { margin:0; }
.alert-success { background:rgba(37,211,102,.1); border:1px solid rgba(37,211,102,.25); color:var(--accent); }
.alert-error { background:rgba(255,68,68,.1); border:1px solid rgba(255,68,68,.25); color:var(--red); }

/* PAGINACIÓN */
.paginacion { display:flex; gap:6px; justify-content:center; margin-top:2rem; flex-wrap:wrap; }
.pagina { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; background:var(--surface); border:1px solid var(--border); color:var(--muted); font-size:14px; transition:all .2s; }
.pagina:hover, .pagina.activa { background:var(--accent); color:#000; border-color:var(--accent); font-weight:600; }

/* EMPTY STATE */
.empty-state { text-align:center; padding:3rem 1rem; color:var(--muted); }
.empty-state p { margin-bottom:1rem; }

/* SEO TEXT */
.seo-text { border-top:1px solid var(--border); padding-top:2rem; }
.seo-text h2 { font-family:'Syne',sans-serif; font-size:1rem; font-weight:700; color:var(--muted); margin-bottom:.8rem; }
.seo-text p { color:var(--muted2); font-size:13px; line-height:1.7; margin-bottom:.5rem; }
.seo-text a { color:var(--accent); }

/* FOOTER */
.footer { border-top:1px solid var(--border); padding:2rem; text-align:center; color:var(--muted); font-size:13px; }
.footer-links { display:flex; gap:1.2rem; justify-content:center; flex-wrap:wrap; margin-bottom:.8rem; }
.footer-links a { color:var(--muted); transition:color .2s; }
.footer-links a:hover { color:var(--text); }
.footer-disclaimer { margin-top:6px; font-size:11px; color:var(--muted2); }

/* DIVISOR */
.divider { height:1px; background:var(--border); margin:0 2rem; }

/* RESPONSIVE */
@media (max-width:768px) {
  .navbar { padding:0 1rem; }
  .nav-links { display:none; }
  .hero { padding:2.5rem 1rem 2rem; }
  .section { padding:2rem 1rem; }
  .divider { margin:0 1rem; }
  .page-header { padding:2rem 1rem 1rem; }
  .form-grid { grid-template-columns:1fr; }
  .form-group.full { grid-column:1; }
  .groups-grid { grid-template-columns:1fr; }
  .categories-grid { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); }
  .hero-stats { gap:1.5rem; }
  .grupo-detalle-header { flex-direction:column; }
  .grupo-stats { gap:1rem; }
  .publish-box { padding:1.5rem 1rem; }
  .tabs { overflow-x:auto; }
  .footer { padding:1.5rem 1rem; }
  .footer-links { gap:.8rem; font-size:12px; }
}

@media (max-width:480px) {
  .hero h1 { font-size:1.8rem; }
  .categories-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
  .group-card { padding:1rem; border-radius:12px; }
  .group-name { font-size:15px; white-space:normal; }
  .group-cat { font-size:12px; }
  .group-desc { font-size:13px; -webkit-line-clamp:2; }
  .group-footer { gap:8px; }
  .btn-join { padding:9px 20px; font-size:13px; font-weight:700; border-radius:10px; }
  .meta-item { font-size:12px; }
  .groups-grid { gap:10px; }
  .filtro-toggle { font-size:13px; padding:9px 14px; border-radius:10px; }
}
@media (max-width:768px) {
  .section { padding:1rem 0.1rem; }
  .groups-grid { padding:0; margin:0; }
  .groups-grid { gap:8px; padding:0; }
  .group-card { border-radius:14px; padding:1rem 1.1rem; }
  .page-header { padding:1.5rem 1rem 1rem; }
}
@media (max-width:768px) {
  .filtro-toggle { text-align:center; }
}