/* Explorador de Páramos 2 - Estilos */
:root {
  --ep-primary: #0d9488;
  --ep-primary-dark: #0f766e;
  --ep-accent: #f59e0b;
  --ep-bg: #f8fafc;
  --ep-card: #fff;
  --ep-text: #1e293b;
  --ep-text-muted: #64748b;
  --ep-border: #e2e8f0;
  --ep-sidebar: #134e4a;
  --ep-sidebar-text: rgba(255,255,255,0.9);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Outfit', system-ui, sans-serif; color: var(--ep-text); background: var(--ep-bg); position: relative; overflow-x: hidden; }

.ep-leaves { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.ep-leaf { position: absolute; width: 18px; height: 18px; left: calc(var(--i, 0) * 8% - 5%); top: -20px; opacity: 0.5; animation: ep-leaf-fall 14s linear infinite; color: #0d9488; }
.ep-leaf::before { content: "\f06c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 16px; }
@keyframes ep-leaf-fall {
  0% { top: -20px; transform: translateX(0) rotate(0deg); opacity: 0.5; }
  100% { top: 100vh; transform: translateX(20px) rotate(360deg); opacity: 0.3; }
}

/* Lluvia de huellitas de animalitos */
.ep-paws-rain { position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden; }
.ep-paw {
  position: absolute;
  width: 34px;
  height: 34px;
  top: -40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.82;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.16));
  animation: ep-paw-fall linear infinite;
}
/* Variantes: gato, perro y oso */
.ep-paw-gato-azul   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%232563eb'%3E%3Cellipse cx='32' cy='43' rx='16' ry='11'/%3E%3Cellipse cx='16' cy='24' rx='6' ry='8'/%3E%3Cellipse cx='27' cy='18' rx='6' ry='8'/%3E%3Cellipse cx='37' cy='18' rx='6' ry='8'/%3E%3Cellipse cx='48' cy='24' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E"); }
.ep-paw-gato-verde  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%2316a34a'%3E%3Cellipse cx='32' cy='43' rx='16' ry='11'/%3E%3Cellipse cx='16' cy='24' rx='6' ry='8'/%3E%3Cellipse cx='27' cy='18' rx='6' ry='8'/%3E%3Cellipse cx='37' cy='18' rx='6' ry='8'/%3E%3Cellipse cx='48' cy='24' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E"); }
.ep-paw-perro-naranja { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23ea580c'%3E%3Cellipse cx='32' cy='44' rx='18' ry='12'/%3E%3Cellipse cx='15' cy='23' rx='7' ry='9'/%3E%3Cellipse cx='27' cy='17' rx='7' ry='9'/%3E%3Cellipse cx='37' cy='17' rx='7' ry='9'/%3E%3Cellipse cx='49' cy='23' rx='7' ry='9'/%3E%3C/g%3E%3C/svg%3E"); }
.ep-paw-perro-morado { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%237c3aed'%3E%3Cellipse cx='32' cy='44' rx='18' ry='12'/%3E%3Cellipse cx='15' cy='23' rx='7' ry='9'/%3E%3Cellipse cx='27' cy='17' rx='7' ry='9'/%3E%3Cellipse cx='37' cy='17' rx='7' ry='9'/%3E%3Cellipse cx='49' cy='23' rx='7' ry='9'/%3E%3C/g%3E%3C/svg%3E"); }
.ep-paw-oso-teal   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%230d9488'%3E%3Cpath d='M12 44c0-9 9-16 20-16s20 7 20 16c0 7-5 12-12 12H24c-7 0-12-5-12-12z'/%3E%3Cellipse cx='12' cy='24' rx='6' ry='9'/%3E%3Cellipse cx='26' cy='16' rx='6.5' ry='9.5'/%3E%3Cellipse cx='38' cy='16' rx='6.5' ry='9.5'/%3E%3Cellipse cx='52' cy='24' rx='6' ry='9'/%3E%3C/g%3E%3C/svg%3E"); }
.ep-paw-oso-rosa   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23db2777'%3E%3Cpath d='M12 44c0-9 9-16 20-16s20 7 20 16c0 7-5 12-12 12H24c-7 0-12-5-12-12z'/%3E%3Cellipse cx='12' cy='24' rx='6' ry='9'/%3E%3Cellipse cx='26' cy='16' rx='6.5' ry='9.5'/%3E%3Cellipse cx='38' cy='16' rx='6.5' ry='9.5'/%3E%3Cellipse cx='52' cy='24' rx='6' ry='9'/%3E%3C/g%3E%3C/svg%3E"); }
@keyframes ep-paw-fall {
  0% { top: -40px; transform: translateX(0) rotate(0deg) scale(1); opacity: 0.85; }
  100% { top: 100vh; transform: translateX(12px) rotate(18deg) scale(0.96); opacity: 0.52; }
}
.ep-login .ep-paw { filter: brightness(1.35); opacity: 0.9; }

/* Login */
.ep-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #134e4a 0%, #0f766e 50%, #115e59 100%); padding: 16px; }
.ep-login-container { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.ep-login-box { background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-radius: 24px; padding: 32px; width: 100%; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); }
.ep-login-top { text-align: center; margin-bottom: 16px; }
.ep-login-icon { width: 80px; height: 80px; background: rgba(13,148,136,0.15); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto; font-size: 28px; color: var(--ep-primary); }
.ep-login-box h1 { color: var(--ep-text); text-align: center; margin: 0 0 8px; font-size: 1.5rem; }
.ep-login-box p { color: var(--ep-text-muted); text-align: center; margin: 0 0 20px; font-size: 0.9rem; }
.ep-footer { text-align: center; margin-top: 16px; }
.ep-footer a { color: var(--ep-primary); font-size: 0.85rem; }

.ep-form-group { margin-bottom: 16px; }
.ep-form-group label { display: block; margin-bottom: 4px; font-size: 0.9rem; color: var(--ep-text-muted); }
.ep-input { width: 100%; padding: 12px 16px; border: 1px solid var(--ep-border); border-radius: 12px; font-size: 1rem; font-family: inherit; background: #fff; }
.ep-input:focus { outline: none; border-color: var(--ep-primary); box-shadow: 0 0 0 2px rgba(13,148,136,0.2); }
.ep-input-sm { padding: 8px 12px; font-size: 0.9rem; }
.ep-error { background: #fef2f2; color: #b91c1c; padding: 12px; border-radius: 12px; margin-bottom: 16px; font-size: 0.9rem; }
.ep-success { background: #dcfce7; color: #166534; padding: 12px; border-radius: 12px; margin-bottom: 16px; }
.ep-text-muted { color: var(--ep-text-muted); }
.ep-btn-box { margin: 16px 0; }
.ep-login-btn-wrap { border-left: 5px solid var(--ep-primary); padding-left: 16px; }

.ep-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; font-family: inherit; text-decoration: none; transition: all 0.2s ease; }
.ep-btn-primary { background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%); color: #fff; }
.ep-btn-primary:hover { background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%); }
.ep-btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.ep-btn-success { background: linear-gradient(180deg, #10b981 0%, #059669 100%); color: #fff; }
.ep-btn-danger { background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%); color: #fff; }
.ep-btn-block { width: 100%; justify-content: center; }
.ep-btn:not(.ep-btn-primary):not(.ep-btn-danger):not(.ep-btn-success) { background: linear-gradient(180deg, #64748b 0%, #475569 100%); color: #fff; }
.ep-btn:not(.ep-btn-primary):not(.ep-btn-danger):not(.ep-btn-success):hover { background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%); }

/* Admin layout */
.ep-admin { display: flex; min-height: 100vh; }
.ep-sidebar { width: 260px; background: linear-gradient(180deg, #134e4a 0%, #0f766e 100%); color: #fff; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; box-shadow: 4px 0 24px rgba(0,0,0,0.2); }
.ep-sidebar-brand { padding: 20px; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; color: #fff; }
.ep-sidebar-logo-box {
  margin: 0 12px 16px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-sidebar-logo-img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.ep-sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,0.2); margin: 0 8px; border-radius: 14px; }
.ep-sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: rgba(255,255,255,0.95); text-decoration: none; border-radius: 10px; transition: all 0.2s; border-left: 4px solid transparent; }
.ep-sidebar-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ep-sidebar-nav a.active { background: rgba(255,255,255,0.18); color: #fff; }
.ep-sidebar-nav .ep-nav-dashboard    { border-left-color: #3b82f6; }
.ep-sidebar-nav .ep-nav-usuarios    { border-left-color: #22c55e; }
.ep-sidebar-nav .ep-nav-paramos     { border-left-color: #f97316; }
.ep-sidebar-nav .ep-nav-tipos       { border-left-color: #a855f7; }
.ep-sidebar-nav .ep-nav-muestras    { border-left-color: #14b8a6; }
.ep-sidebar-nav .ep-nav-explorar    { border-left-color: #ec4899; }
.ep-sidebar-nav .ep-nav-capas-kml   { border-left-color: #eab308; }
.ep-sidebar-nav .ep-nav-exportar    { border-left-color: #6366f1; }
.ep-sidebar-logo-inferior {
  margin-bottom: 12px;
  padding: 20px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.ep-sidebar-logo-inferior-img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 120px;
  width: auto;
  object-fit: contain;
}
.ep-sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; }
.ep-sidebar-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.ep-main { flex: 1; margin-left: 260px; padding: 24px; background: linear-gradient(160deg, #ccfbf1 0%, #99f6e4 30%, #5eead4 100%); }
.ep-content-box { background: rgba(255,255,255,0.85); padding: 24px; border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); border: 1px solid rgba(255,255,255,0.8); min-height: calc(100vh - 48px); }

/* Visitante layout */
.ep-visitante { min-height: 100vh; display: flex; flex-direction: column; }
.ep-visitante-header { background: linear-gradient(90deg, #134e4a 0%, #0f766e 100%); color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: 0 2px 16px rgba(0,0,0,0.2); }
.ep-visitante-brand { color: #fff; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.ep-visitante-logo-box {
  padding: 8px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
}
.ep-visitante-logo-img {
  display: block;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}
.ep-visitante-logo-inferior {
  padding: 14px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-visitante-logo-inferior-img {
  display: block;
  max-height: 56px;
  width: auto;
  object-fit: contain;
}
.ep-visitante-user { color: rgba(255,255,255,0.9); margin-left: auto; margin-right: 12px; }
.ep-visitante-main { flex: 1; padding: 20px; }

/* Cards & panels */
.ep-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; }
.ep-card { background: var(--ep-card); border-radius: 16px; padding: 24px; border: 1px solid var(--ep-border); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.ep-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.ep-card-icon { font-size: 2rem; color: var(--ep-primary); margin-bottom: 8px; display: block; }
.ep-card-num { display: block; font-size: 2rem; color: var(--ep-text); margin-bottom: 4px; }
.ep-card span { font-size: 0.9rem; color: var(--ep-text-muted); }
.ep-cards-3d .ep-card-3d { background: linear-gradient(145deg, #fff 0%, #f8fafc 100%); box-shadow: 6px 6px 16px rgba(0,0,0,0.06); }
.ep-panel { background: var(--ep-card); border-radius: 16px; padding: 20px; border: 1px solid var(--ep-border); }
.ep-panel h3 { margin: 0 0 16px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.ep-panel-3d { background: linear-gradient(145deg, #fff 0%, #f8fafc 100%); box-shadow: 5px 5px 14px rgba(0,0,0,0.05); }
.ep-dash-header { margin-bottom: 24px; }
.ep-dash-header h1 { margin: 0; }
.ep-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ep-dash-charts { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.ep-dash-charts .ep-panel-wide { grid-column: 1 / -1; }
.ep-panel-chart .ep-chart-container { min-height: 280px; }
.ep-chart-empty { text-align: center; padding: 48px 16px !important; margin: 0; }
.ep-panel-wide { }
.ep-list-stats { list-style: none; margin: 0; padding: 0; }
.ep-list-stats li { padding: 8px 0; border-bottom: 1px solid var(--ep-border); display: flex; justify-content: space-between; align-items: center; }
.ep-stat-label { color: var(--ep-text-muted); }
.ep-recientes { display: flex; flex-direction: column; gap: 8px; }
.ep-reciente-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: rgba(13,148,136,0.05); border-radius: 10px; border-left: 3px solid var(--ep-primary); }
.ep-reciente-tipo { font-weight: 600; min-width: 100px; }
.ep-reciente-coords { font-size: 0.8rem; color: var(--ep-text-muted); font-family: monospace; }
.ep-reciente-fecha { font-size: 0.85rem; color: var(--ep-text-muted); margin-left: auto; }

/* Table */
.ep-table { width: 100%; border-collapse: collapse; }
.ep-table th, .ep-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ep-border); }
.ep-table th { background: rgba(13,148,136,0.08); font-weight: 600; font-size: 0.85rem; }
.ep-table-wrap { overflow-x: auto; background: var(--ep-card); border-radius: 16px; border: 1px solid var(--ep-border); }
.ep-acciones-cell { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ep-form-inline { display: inline-block; margin: 0; }
.ep-badge { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 0.8rem; }
.ep-badge-admin { background: #dcfce7; color: #166534; }
.ep-badge-visitante { background: #dbeafe; color: #1e40af; }

/* Filters */
.ep-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; align-items: center; }
.ep-filters .ep-input-sm { width: auto; min-width: 140px; }

/* Explorar - layout mapa */
.ep-explorar-layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; min-height: 560px; }
.ep-explorar-tarjetas { background: var(--ep-card); border-radius: 16px; border: 1px solid var(--ep-border); overflow: hidden; display: flex; flex-direction: column; }
.ep-explorar-titulo { margin: 0; padding: 16px 20px; background: rgba(13,148,136,0.08); font-size: 1rem; border-bottom: 1px solid var(--ep-border); }
.ep-explorar-lista { flex: 1; overflow-y: auto; max-height: 500px; padding: 12px; }
.ep-explorar-tarjeta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f8fafc; border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.ep-explorar-tarjeta:hover { background: rgba(13,148,136,0.1); border-color: var(--ep-primary); }
.ep-explorar-icono { font-size: 24px; line-height: 1; }
.ep-explorar-tarjeta-info { display: flex; flex-direction: column; gap: 2px; }
.ep-explorar-tarjeta-info strong { font-size: 0.95rem; }
.ep-explorar-tipo { font-size: 0.8rem; color: var(--ep-text-muted); }
.ep-explorar-vacio { padding: 24px; text-align: center; }

/* Panel Capas KML en explorar */
.ep-capas-kml-panel { background: rgba(13,148,136,0.04); }
.ep-capas-kml-lista { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.ep-capa-kml-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #fff; border-radius: 10px; border: 1px solid var(--ep-border); flex-wrap: wrap; }
.ep-capa-kml-visibilidad { display: flex; align-items: center; gap: 8px; cursor: pointer; flex: 1; min-width: 0; margin: 0; }
.ep-capa-kml-visibilidad input[type="checkbox"] { flex-shrink: 0; cursor: pointer; }
.ep-capa-color { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.15); }
.ep-capa-nombre { font-size: 0.9rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-capa-centrar { flex-shrink: 0; white-space: nowrap; }

.ep-explorar-mapa-wrap { position: relative; background: var(--ep-card); border-radius: 16px; border: 1px solid var(--ep-border); overflow: hidden; height: 560px; min-height: 400px; min-width: 280px; }
.ep-mapa { width: 100%; height: 560px; min-height: 400px; }
.ep-mapa-dibujo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 500; }
.ep-mapa-dibujo.ep-drawing { pointer-events: auto; cursor: crosshair; }

.ep-explorar-map-btns { position: absolute; top: 75%; right: 12px; transform: translateY(-50%); z-index: 600; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ep-btn-map { width: 44px; height: 44px; border-radius: 12px; border: none; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.2); color: var(--ep-text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background 0.2s, transform 0.2s; }
.ep-btn-map:hover { background: var(--ep-bg); transform: scale(1.05); }
.ep-btn-fullscreen { color: var(--ep-primary); }
.ep-explorar-fab-wrap { position: relative; }
.ep-explorar-fab { width: 52px; height: 52px; border-radius: 50%; border: none; background: linear-gradient(145deg, #0d9488, #0f766e); color: #fff; box-shadow: 0 4px 16px rgba(13,148,136,0.45); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform 0.2s, box-shadow 0.2s; }
.ep-explorar-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(13,148,136,0.5); }
.ep-explorar-draw-toolbar { position: absolute; bottom: 100%; right: 0; margin-bottom: 10px; background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); padding: 12px; display: none; flex-wrap: wrap; gap: 8px; max-width: 320px; border: 1px solid var(--ep-border); }
.ep-explorar-draw-toolbar.visible { display: flex; }
.ep-draw-tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ep-draw-tool-row.ep-draw-opts { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--ep-border); width: 100%; }
.ep-draw-tool { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ep-border); background: #fff; color: var(--ep-text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.2s; }
.ep-draw-tool:hover { border-color: var(--ep-primary); background: rgba(13,148,136,0.08); }
.ep-draw-tool.active { border-color: var(--ep-primary); background: rgba(13,148,136,0.15); color: var(--ep-primary); }
.ep-draw-opt { font-size: 0.7rem; color: var(--ep-text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ep-draw-color { width: 36px; height: 22px; padding: 0; border: 1px solid var(--ep-border); border-radius: 6px; cursor: pointer; }
.ep-draw-size { width: 80px; }
.ep-draw-size-val { font-size: 0.8rem; font-weight: 600; }
.ep-explorar-mapa-wrap.ep-fullscreen .ep-mapa, .ep-explorar-mapa-wrap.ep-fullscreen .ep-mapa-dibujo { height: 100vh; }
.ep-explorar-mapa-wrap.ep-fullscreen { position: fixed; inset: 0; z-index: 9999; height: 100vh; border-radius: 0; border: none; }
.ep-btn-fullscreen i.fa-compress { display: none; }
.ep-explorar-mapa-wrap.ep-fullscreen .ep-btn-fullscreen i.fa-expand { display: none; }
.ep-explorar-mapa-wrap.ep-fullscreen .ep-btn-fullscreen i.fa-compress { display: inline; }

/* Modal páramo - centro pantalla */
.ep-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.ep-modal-overlay.ep-visible { opacity: 1; visibility: visible; }
.ep-modal-box { background: #fff; border-radius: 20px; max-width: 720px; width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3); transform: scale(0.95); transition: transform 0.3s; }
.ep-modal-overlay.ep-visible .ep-modal-box { transform: scale(1); }
.ep-modal-header { padding: 20px 24px; border-bottom: 1px solid var(--ep-border); display: flex; justify-content: space-between; align-items: center; background: rgba(13,148,136,0.06); }
.ep-modal-header h2 { margin: 0; font-size: 1.25rem; }
.ep-modal-close { width: 40px; height: 40px; border: none; background: transparent; color: var(--ep-text-muted); cursor: pointer; border-radius: 10px; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.ep-modal-close:hover { background: var(--ep-border); color: var(--ep-text); }
.ep-modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.ep-modal-body .ep-editor-rico { min-height: 120px; border: 1px solid var(--ep-border); border-radius: 12px; padding: 12px; }
.ep-youtube-list { list-style: none; margin: 12px 0 0; padding: 0; }
.ep-modal-archivos { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ep-border); }
.ep-modal-archivo { margin-bottom: 12px; }
.ep-link-archivo { color: var(--ep-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ep-link-archivo:hover { text-decoration: underline; }
.ep-youtube-list li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.ep-youtube-list a { color: var(--ep-primary); }
.ep-alert { padding: 16px; border-radius: 12px; margin-bottom: 20px; }
.ep-alert-warning { background: #fef3c7; color: #92400e; }

/* Popup marcadores */
.ep-popup-muestra { padding: 4px 0; font-size: 0.95rem; line-height: 1.4; min-width: 200px; }
.ep-popup-muestra strong { color: var(--ep-text); }
.ep-popup-tipo { font-size: 0.8rem; color: var(--ep-text-muted); }
.ep-foto-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; cursor: pointer; }
.ep-foto-lightbox.ep-visible { opacity: 1; visibility: visible; }
.ep-foto-lightbox img { max-width: 95vw; max-height: 95vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); pointer-events: none; }
.ep-foto-lightbox .ep-lightbox-close { position: absolute; top: 16px; right: 24px; font-size: 36px; color: #fff; cursor: pointer; z-index: 4; line-height: 1; }
.ep-foto-lightbox .ep-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(15,23,42,0.62); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 4; box-shadow: 0 8px 18px rgba(0,0,0,0.32); }
.ep-foto-lightbox .ep-lightbox-nav:hover { background: rgba(37,99,235,0.88); }
.ep-foto-lightbox .ep-lightbox-nav.prev { left: 20px; }
.ep-foto-lightbox .ep-lightbox-nav.next { right: 20px; }
.ep-foto-lightbox .ep-lightbox-caption-wrap { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(15,23,42,0.56); color: #fff; z-index: 4; pointer-events: none; }
.ep-foto-lightbox .ep-lightbox-caption { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.2px; font-family: "Comic Sans MS", "Trebuchet MS", "Segoe UI", sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,0.36); }
.ep-foto-lightbox .ep-lightbox-counter { font-size: 0.84rem; font-weight: 700; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 700px) {
  .ep-foto-lightbox .ep-lightbox-nav { width: 40px; height: 40px; }
  .ep-foto-lightbox .ep-lightbox-nav.prev { left: 10px; }
  .ep-foto-lightbox .ep-lightbox-nav.next { right: 10px; }
  .ep-foto-lightbox .ep-lightbox-caption-wrap { left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; }
  .ep-foto-lightbox .ep-lightbox-caption { font-size: 0.94rem; }
}

@media (max-width: 900px) {
  .ep-explorar-layout { grid-template-columns: 1fr; }
  .ep-explorar-tarjetas { max-height: 280px; }
  .ep-explorar-lista { max-height: 200px; }
}
@media (max-width: 768px) {
  .ep-sidebar { width: 100%; height: auto; position: relative; }
  .ep-main { margin-left: 0; }
  .ep-admin { flex-direction: column; }
}

/* ===========================
   Tema azul + 3D + huellitas
   =========================== */
:root {
  --ep-primary: #2563eb;
  --ep-primary-dark: #1d4ed8;
  --ep-accent: #60a5fa;
  --ep-bg: #eaf3ff;
  --ep-card: #ffffff;
  --ep-text: #12213f;
  --ep-text-muted: #51638c;
  --ep-border: #d5e3ff;
  --ep-sidebar: #163b8f;
  --ep-sidebar-text: rgba(255, 255, 255, 0.95);
}

body {
  background: linear-gradient(160deg, #f4f9ff 0%, #e1eeff 45%, #d5e8ff 100%);
}
body.ep-admin,
body.ep-visitante {
  background: linear-gradient(160deg, #dbeafe 0%, #bfdbfe 45%, #93c5fd 100%);
}
.ep-login {
  background: linear-gradient(150deg, #1e3a8a 0%, #1d4ed8 52%, #2563eb 100%);
}

.ep-sidebar {
  background: linear-gradient(180deg, #0f2f77 0%, #1d4ed8 62%, #2563eb 100%);
}

.ep-sidebar-nav {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.ep-main {
  background: linear-gradient(160deg, #dbeafe 0%, #bfdbfe 45%, #93c5fd 100%);
}

.ep-visitante-header {
  background: linear-gradient(90deg, #0f2f77 0%, #1d4ed8 65%, #2563eb 100%);
}

.ep-content-box,
.ep-login-box,
.ep-panel,
.ep-table-wrap,
.ep-explorar-tarjetas,
.ep-explorar-mapa-wrap {
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 20px 40px rgba(23, 63, 153, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ep-card,
.ep-panel,
.ep-btn,
.ep-explorar-tarjeta,
.ep-capa-kml-fila {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.ep-card:hover,
.ep-panel:hover,
.ep-explorar-tarjeta:hover,
.ep-capa-kml-fila:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.18);
}

.ep-btn {
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.24);
}

.ep-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.ep-btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
}

.ep-btn-success {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}

.ep-btn-danger {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
}

.ep-btn:not(.ep-btn-primary):not(.ep-btn-danger):not(.ep-btn-success) {
  background: linear-gradient(180deg, #64748b 0%, #334155 100%);
}

.ep-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.ep-login-icon {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.28);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.ep-login-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.ep-login-solo-logo {
  display: block;
  max-width: 100%;
  width: 280px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.ep-logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 6px;
}

.ep-logo-strip-inline {
  margin: 0;
}

.ep-logo-strip-center {
  margin-top: 10px;
}

.ep-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 8px 16px rgba(15, 47, 119, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: ep-logo-float 4.8s ease-in-out infinite;
}

.ep-logo-2 { animation-delay: 0.7s; }
.ep-logo-3 { animation-delay: 1.2s; }

@keyframes ep-logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}
