
:root{
  --g1:#e0f2fe;
  --g2:#bae6fd;
  --card:rgba(255,255,255,.98);
  --glass-stroke:rgba(255,255,255,.8);
  --shadow-lg:0 20px 60px rgba(0,0,0,.15);
  --text:#0f172a;
  --muted:#64748b;
  --border:rgba(148,163,184,.2);
  --sidebar-bg:rgba(255,255,255,.25);
  --sidebar-text:#334155;
  --sidebar-active:#0f172a;
  --chip:#f0f9ff;
  --primary:#0284c7;
  --primary-rgb:2,132,199;
  --primary-600:#0369a1;
  --danger:#dc2626;
  --danger-rgb:220,38,38;
  --danger-hover:#b91c1c;
  --success:#16a34a;
  --success-rgb:22,163,74;
  --success-hover:#15803d;
  --warning:#ea580c;
  --warning-rgb:234,88,12;
  --warning-hover:#c2410c;
  --info:#2563eb;
  --info-rgb:37,99,235;
  --info-hover:#1d4ed8;
}

html[data-theme="dark"]{
  --g1:#1a202c;
  --g2:#2d3748;
  --card:rgba(15,20,35,.75);
  --glass-stroke:rgba(255,255,255,.15);
  --shadow-lg:0 20px 60px rgba(0,0,0,.65);
  --text:#f7fafc;
  --muted:#cbd5e0;
  --border:rgba(255,255,255,.15);
  --sidebar-bg:rgba(15,20,35,.55);
  --sidebar-text:#e2e8f0;
  --sidebar-active:#ffffff;
  --chip:#1a202c;
  --primary:#9b59b6;
  --primary-rgb:155,89,182;
  --primary-600:#8e44ad;
  --danger:#f87171;
  --danger-rgb:248,113,113;
  --danger-hover:#ef4444;
  --success:#4ade80;
  --success-rgb:74,222,128;
  --success-hover:#22c55e;
  --warning:#fb923c;
  --warning-rgb:251,146,60;
  --warning-hover:#f97316;
  --info:#60a5fa;
  --info-rgb:96,165,250;
  --info-hover:#3b82f6;
}

*{box-sizing:border-box}

html,body{
  height:100%;
  min-height:100vh;
}

html{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:linear-gradient(135deg,var(--g1),var(--g2)) fixed;
  min-height:100vh;
}

body{
  margin:0;
  background:linear-gradient(135deg,var(--g1),var(--g2)) fixed;
  color:var(--text);
  display:flex;
  flex-direction:column;
  min-height:100vh;
  opacity:0;
  animation:pageLoadFadeIn 0.4s ease-out forwards;
  will-change:opacity,transform;
}

body.page-transition-out{
  animation:pageUnloadFadeOut 0.35s ease-in forwards !important;
  will-change:opacity,transform;
}

@keyframes pageLoadFadeIn{
  0%{
    opacity:0;
    transform:translateY(12px) scale(0.98);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@keyframes pageUnloadFadeOut{
  0%{
    opacity:1;
    transform:translateY(0) scale(1);
  }
  100%{
    opacity:0;
    transform:translateY(-8px) scale(0.98);
  }
}

html{
  transition:background-color 0.3s ease, color 0.3s ease;
}

html.preload *:not(body){
  transition:none!important;
}

html.preload{
  transition:background-color 0s!important;
}


.glass{
  background:var(--card);
  backdrop-filter:blur(16px) saturate(130%);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  border:1px solid var(--glass-stroke);
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.toast{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:9999;
  display:flex;
  gap:10px;
  align-items:center;
  background:var(--card);
  border:1px solid var(--border);
  padding:12px 14px;
  border-radius:12px;
  backdrop-filter:blur(12px);
}

.toast .close{
  margin-left:auto;
  cursor:pointer;
  opacity:.7;
}

.auth-wrapper{
  width:100%;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:24px;
  padding-bottom:140px;
  background:linear-gradient(135deg,var(--g1),var(--g2)) fixed;
  overflow-y:auto;
  box-sizing:border-box;
  position:relative;
}

.auth-box{
  max-width:640px;
  width:100%;
  padding:40px;
  margin:auto 0;
  box-shadow:0 20px 60px rgba(0,0,0,0.35);
  backdrop-filter:blur(20px);
  border:1px solid var(--glass-stroke);
}

.auth-title{
  text-align:center;
  font-size:28px;
  font-weight:800;
  margin:0 0 8px 0;
  color:var(--text);
  letter-spacing:0.5px;
}

.auth-subtitle{
  text-align:center;
  font-size:14px;
  color:var(--muted);
  margin:0 0 24px 0;
  font-weight:400;
}

.stack{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.field label{
  font-weight:700;
  color:var(--text);
  font-size:15px;
}

.field input,.field select,.field textarea{
  background:rgba(255,255,255,.95);
  border:1.8px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  color:#1a202c;
  font-family:inherit;
  font-size:16px;
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea{
  background:rgba(20,25,42,.85);
  color:#f7fafc;
}

.btn{
  border:0;
  border-radius:12px;
  padding:12px 18px;
  background:var(--primary);
  color:#fff;
  font-weight:800;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  cursor:pointer;
  transition:all .2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width:fit-content;
  white-space:nowrap;
}

.btn:hover{
  background:var(--primary-600);
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(0,0,0,.25);
}

.btn.secondary{
  background:rgba(71,85,105,.85);
  color:#fff;
  border:1.8px solid rgba(148,163,184,.4);
  backdrop-filter:blur(8px);
}

.btn.secondary:hover{
  background:rgba(51,65,85,.95);
  text-decoration:none;
}

a.btn:hover{
  text-decoration:none;
}

.btn.danger{
  background:var(--danger);
}

.btn.danger:hover{
  background:var(--danger-hover);
}

.btn.success{
  background:var(--success);
}

.btn.success:hover{
  background:var(--success-hover);
}

.btn.warning{
  background:var(--warning);
}

.btn.warning:hover{
  background:var(--warning-hover);
}

.btn.info{
  background:var(--info);
}

.btn.info:hover{
  background:var(--info-hover);
}

.btn.sm{
  padding:9px 14px;
  font-size:13px;
  min-width:90px;
}

.btn.grow{
  flex:1;
}

.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
  transform:none;
}

.layout{
  min-height:100vh;
  background:linear-gradient(135deg,var(--g1),var(--g2)) fixed;
}

.sidebar{
  padding:16px 12px;
  position:fixed;
  top:0;
  left:0;
  min-height:100vh;
  height:100%;
  width:280px;
  overflow-y:auto;
  color:var(--sidebar-text);
  background:var(--sidebar-bg);
  backdrop-filter:blur(16px);
  border-right:1px solid rgba(0,0,0,0.05);
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index:100;
}

.logo{
  font-weight:800;
  font-size:20px;
  color:var(--sidebar-active);
  letter-spacing:.5px;
  margin-bottom:20px;
  padding:12px 10px;
  text-shadow:0 1px 4px rgba(0,0,0,.15);
  white-space:nowrap;
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align:left;
  border-radius:10px;
  background:rgba(var(--primary-rgb),0.12);
  display:flex;
  align-items:center;
  min-height:44px;
}

.logo .logo-full{
  display:inline;
}

.logo .logo-short{
  display:none;
}


.sidebar.collapsed{
  width:80px;
}

.sidebar.collapsed .logo{
  text-align:center;
  padding:8px 6px;
  font-size:16px;
}

.sidebar.collapsed .logo .logo-full{
  display:none;
}

.sidebar.collapsed .logo .logo-short{
  display:inline;
}

.sidebar nav{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.sidebar a{
  display:flex;
  gap:10px;
  align-items:center;
  color:var(--sidebar-text);
  text-decoration:none;
  padding:10px 12px;
  border-radius:10px;
  transition:all .2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space:nowrap;
  font-weight:500;
  font-size:14px;
  line-height:1;
  position:relative;
  opacity:0.85;
}

.sidebar a .icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  font-size:18px;
  line-height:1;
  flex-shrink:0;
}

.sidebar.collapsed a{
  justify-content:center;
  font-size:20px;
  padding:12px;
}

.sidebar a:hover{
  opacity:1;
  background:rgba(var(--primary-rgb),.15);
  color:var(--sidebar-active);
}

.sidebar a.active{
  background:rgba(var(--primary-rgb),.2);
  color:var(--sidebar-active);
  font-weight:600;
  box-shadow:0 2px 8px rgba(0,0,0,0.15);
  opacity:1;
}

.sidebar a.active::before{
  content:'';
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:3px;
  height:60%;
  background:var(--primary);
  border-radius:0 3px 3px 0;
}

.sidebar.collapsed a span:not(.icon){
  opacity:0;
  width:0;
  overflow:hidden;
}

.content{
  margin-left:280px;
  padding:16px;
  min-height:100vh;
  background:linear-gradient(135deg,var(--g1),var(--g2)) fixed;
  transition:margin-left .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout.collapsed .content{
  margin-left:80px;
}

.header{
  position:sticky;
  top:0;
  z-index:90;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
  padding:12px 16px;
  padding-top:max(12px, env(safe-area-inset-top));
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
  border:1px solid rgba(71,85,105,0.1);
}

html[data-theme="dark"] .header{
  background:rgba(20,25,42,.92);
  border:1px solid rgba(148,163,184,0.2);
  box-shadow:0 2px 12px rgba(0,0,0,0.25);
}

.header h2{
  font-size:20px;
  font-weight:700;
  margin:0;
  color:var(--text);
  flex-shrink:0;
}

#colombiaClock{
  font-size:12px;
  color:var(--muted);
  margin-left:auto;
  white-space:nowrap;
}

.user-info{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:12px;
  padding-left:12px;
  border-left:1px solid var(--border);
}

.user-info span{
  font-weight:500;
  color:var(--text);
  font-size:13px;
}

.user-info img{
  width:32px;
  height:32px;
  border-radius:50%;
  border:2px solid var(--primary);
  object-fit:cover;
  background:var(--card);
  flex-shrink:0;
}

.card{
  padding:18px;
  margin-bottom:16px;
}

.card h3{
  margin:0 0 14px 0;
  font-size:20px;
  font-weight:800;
  color:var(--text);
}

.grid-2col{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:16px;
}

@media(max-width: 900px){
  .grid-2col{
    grid-template-columns:1fr;
  }
}

.table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.05);
}

table{
  width:100%;
  border-collapse:collapse;
}

thead th{
  position:sticky;
  top:0;
  background:var(--card);
  backdrop-filter:blur(12px);
  border-bottom:2px solid var(--border);
  text-align:left;
  padding:12px;
  font-size:13px;
  font-weight:800;
  color:var(--text);
  text-transform:uppercase;
  letter-spacing:.5px;
}

tbody td{
  padding:12px;
  border-bottom:1px solid var(--border);
  color:var(--text);
  font-size:14px;
}

tbody tr:hover{
  background:rgba(var(--primary-rgb),.08);
}

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(4px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:200;
  padding:20px;
}

.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:200;
  padding:20px;
  animation:fadeIn 0.2s ease-out;
}

@keyframes fadeIn{
  from{
    opacity:0;
  }
  to{
    opacity:1;
  }
}

.modal-close{
  background:transparent;
  border:none;
  font-size:28px;
  line-height:1;
  color:var(--muted);
  cursor:pointer;
  padding:0;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  transition:all 0.2s;
  flex-shrink:0;
}

.modal-close:hover{
  background:rgba(var(--primary-rgb),.1);
  color:var(--text);
  transform:scale(1.1);
}

.modal{
  width:min(720px,92vw);
  max-height:90vh;
  overflow-y:auto;
}

.modal.glass{
  padding:20px;
}

.modal header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}

.modal header h3{
  margin:0;
  font-size:22px;
  font-weight:900;
  color:var(--text);
  flex:1;
}

.switch{
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
}

.switch input{
  display:none;
}

.slider{
  width:50px;
  height:28px;
  background:#cbd5e1;
  border-radius:999px;
  position:relative;
  transition:.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider::before{
  content:'';
  position:absolute;
  left:3px;
  top:3px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  transition:.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:0 2px 4px rgba(0,0,0,.2);
}

.switch input:checked + .slider{
  background:var(--primary);
}

.switch input:checked + .slider::before{
  transform:translateX(22px);
}

.chip{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:var(--chip);
  font-weight:700;
  font-size:12px;
  color:var(--text);
}

.status-pendiente{
  animation:blink-orange 1.5s infinite;
}

@keyframes blink-orange{
  0%, 100% {
    opacity:1;
  }
  50% {
    opacity:0.4;
  }
}

.mt12{
  margin-top:12px;
}

.text-muted{
  color:var(--muted);
  font-size:14px;
}

.grow{
  flex:1;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}

.auth-actions{
  display:flex;
  gap:12px;
  align-items:center;
}

a{
  color:var(--primary);
  text-decoration:none;
  transition:opacity .2s;
}

a:hover{
  opacity:.8;
  text-decoration:underline;
}

.sidebar a:hover{
  opacity:1;
  text-decoration:none;
}

input[type="search"]{
  background:rgba(255,255,255,.95);
  border:1.8px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  color:var(--text);
  font-size:15px;
}

html[data-theme="dark"] input[type="search"]{
  background:rgba(20,25,42,.85);
  color:#f7fafc;
}

#btnToggleSidebar{
  width:36px;
  height:36px;
  padding:0;
  border-radius:8px;
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink:0;
}

#btnToggleSidebar:hover{
  background:rgba(var(--primary-rgb),.1);
  border-color:var(--primary);
  transform:scale(1.02);
}

#btnToggleSidebar::before{
  content:'☰';
}

.alert-box code{
  background:rgba(var(--primary-rgb),.15);
  padding:4px 8px;
  border-radius:6px;
  font-family:monospace;
  font-size:13px;
  display:inline-block;
  margin:4px 0;
}

textarea{
  font-family:inherit;
  resize:vertical;
  min-height:80px;
}

.accordion-icon{
  font-size:14px;
  transition:transform .3s ease;
  user-select:none;
}

.accordion-content{
  overflow:hidden;
  transition:all .3s ease;
}

.profile-preview{
  width:140px;
  height:140px;
  border-radius:16px;
  border:1px solid var(--border);
  object-fit:cover;
  background:linear-gradient(135deg,var(--g1),var(--g2));
}

@media(max-width: 768px){
  .layout{
    grid-template-columns:1fr;
  }
  
  .content{
    margin-left:0;
  }
  
  .layout.collapsed .content{
    margin-left:0;
  }
  
  .sidebar{
    position:fixed;
    left:-280px;
    z-index:100;
    transition:left .3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height:100vh;
    height:100%;
    box-shadow:4px 0 20px rgba(0,0,0,0.5);
  }
  
  .layout.sidebar-open .sidebar{
    left:0;
  }

  .sidebar.collapsed{
    left:-80px;
  }

  .layout.sidebar-open .sidebar.collapsed{
    left:0;
  }

  .header{
    padding:10px 12px;
    padding-top:max(10px, env(safe-area-inset-top));
    gap:10px;
  }

  .header h2{
    font-size:18px;
  }

  #colombiaClock{
    font-size:11px;
  }

  .user-info{
    gap:8px;
    margin-left:8px;
    padding-left:8px;
  }

  .user-info span{
    display:none;
  }

  .user-info img{
    width:28px;
    height:28px;
  }

  .grid-2col{
    grid-template-columns:1fr;
  }

  .grid{
    grid-template-columns:1fr !important;
  }

  .table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  table{
    min-width:600px;
  }

  .modal{
    width:95vw;
    max-height:85vh;
  }

  .modal.glass{
    padding:16px;
  }

  .auth-box{
    width:95vw;
    padding:24px;
  }
  
  .auth-wrapper{
    padding-bottom:180px;
  }

  .btn{
    font-size:13px;
    padding:10px 14px;
  }

  .btn.sm{
    padding:7px 10px;
    font-size:12px;
    min-width:70px;
  }

  .field input,
  .field select,
  .field textarea{
    font-size:16px;
  }

  #cropCanvas,
  #cropCanvasAnuncio{
    max-width:100%;
    height:auto;
  }

  .modal-backdrop{
    padding:10px;
  }

  #btnToggleSidebar{
    width:34px;
    height:34px;
    font-size:16px;
  }

  .card{
    padding:14px;
  }

  .accordion-header{
    flex-wrap:wrap;
  }

  .accordion-header h3{
    font-size:18px;
  }

  .auth-title{
    font-size:28px;
  }

  input[type="range"]{
    width:100%!important;
  }

  .toast{
    right:10px;
    bottom:10px;
    font-size:14px;
    max-width:calc(100vw - 20px);
  }

  #cropCanvas,
  #cropCanvasAnuncio{
    touch-action:none;
  }

  .user-info img{
    width:32px;
    height:32px;
  }

  .profile-preview{
    width:120px;
    height:120px;
  }

  .chip{
    font-size:11px;
    padding:5px 10px;
  }
}

@media(max-width: 480px){
  .header{
    padding:8px 10px;
    padding-top:max(8px, env(safe-area-inset-top));
  }

  .header h2{
    font-size:16px;
  }

  #colombiaClock{
    font-size:10px;
  }

  .user-info img{
    width:26px;
    height:26px;
  }

  #btnToggleSidebar{
    width:32px;
    height:32px;
    font-size:15px;
  }

  .btn{
    font-size:12px;
    padding:9px 12px;
  }

  .btn.sm{
    padding:6px 8px;
    font-size:11px;
    min-width:60px;
  }

  .auth-actions{
    flex-direction:column;
  }

  .auth-actions .btn{
    width:100%;
  }

  table{
    font-size:13px;
  }

  thead th{
    font-size:12px;
    padding:10px 8px;
  }

  tbody td{
    padding:10px 8px;
    font-size:13px;
  }
}

/* Notificaciones en sidebar */
.sidebar-notification-badge {
  background: #ff8c00;
  color: #fff;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: bold;
  min-width: 22px;
  text-align: center;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar a {
  position: relative;
}

.sidebar a.has-notifications {
  animation: pulse-notification 2s ease-in-out infinite;
}

@keyframes pulse-notification {
  0%, 100% {
    background-color: rgba(255, 140, 0, 0);
  }
  50% {
    background-color: rgba(255, 140, 0, 0.1);
  }
}

@keyframes subtle-badge-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

.sidebar a.has-notifications .sidebar-notification-badge {
  animation: subtle-badge-pulse 2s ease-in-out infinite;
}

.sidebar.collapsed .sidebar-notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  padding: 2px 5px;
  min-width: 16px;
  margin-left: 0;
}

.app-footer {
  margin-top: auto;
  padding: 24px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-wrapper + .app-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  border-top: none;
  background: transparent;
}

.app-footer h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
}

.app-footer p {
  margin: 0;
}

.app-footer .contact {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.app-footer .trademark {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--text);
  background: rgba(var(--primary-rgb),.1);
}

.footer-links .separator {
  color: var(--muted);
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .app-footer {
    font-size: 12px;
    padding: 20px 16px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 4px;
  }
  
  .footer-links .separator {
    display: none;
  }
}

/* Sistema de anuncios estilo portal de noticias */
.anuncios-container {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.anuncio-item,
.guia-item {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.anuncio-item.active,
.guia-item.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  z-index: 2;
}

.guias-featured {
  position: relative;
  overflow: visible;
}

.guias-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.guias-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-ver-todas {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
  white-space: nowrap;
}

.btn-ver-todas:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-ver-todas:active {
  transform: translateY(0);
}

.anuncio-header {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.anuncio-titulo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.anuncio-fecha {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.anuncio-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.anuncio-imagen {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.anuncio-texto {
  flex: 1;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  text-align: justify;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.anuncios-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.anuncios-indicators {
  display: flex;
  gap: 8px;
}

.anuncio-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.anuncio-indicator.active {
  background: var(--primary);
  transform: scale(1.3);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.anuncio-nav-btn {
  background: var(--card);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  transition: all 0.2s ease;
}

.anuncio-nav-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

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

@media (max-width: 768px) {
  .anuncio-body {
    flex-direction: column;
  }
  
  .anuncio-imagen {
    width: 100%;
    height: 180px;
  }
  
  .anuncio-titulo {
    font-size: 18px;
  }
  
  .anuncio-texto {
    font-size: 14px;
  }
  
  .anuncio-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .anuncio-indicator,
  .guia-indicator {
    width: 14px;
    height: 14px;
    position: relative;
  }
  
  .anuncio-indicator::before,
  .guia-indicator::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
  }
  
  .anuncio-indicator.active,
  .guia-indicator.active {
    transform: scale(1.5);
  }
  
  .anuncios-controls {
    gap: 16px;
    padding-top: 20px;
    margin-top: 20px;
  }
  
  .anuncios-indicators {
    gap: 12px;
  }
  
  .anuncios-container {
    min-height: 320px;
  }
}

.action-menu {
  position: relative;
  display: inline-block;
}

.action-menu-btn {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  transition: all 0.2s ease;
}

.action-menu-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.action-menu-dropdown {
  position: absolute;
  right: 0;
  top: 42px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 160px;
  z-index: 1000;
  display: none;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.action-menu-dropdown.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-menu-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.action-menu-item:last-child {
  border-bottom: none;
}

.action-menu-item:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.action-menu-item.danger:hover {
  background: rgba(var(--danger-rgb), 0.1);
  color: var(--danger);
}

.action-menu-item.success:hover {
  background: rgba(var(--success-rgb), 0.1);
  color: var(--success);
}

.action-menu-item.warning:hover {
  background: rgba(var(--warning-rgb), 0.1);
  color: var(--warning);
}

.action-menu-item.info:hover {
  background: rgba(var(--info-rgb), 0.1);
  color: var(--info);
}

.action-menu-item:disabled,
.action-menu-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.action-menu-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
