 /* =========================
       MATRIX FUTURISTIC THEME
       ========================= */
    :root{
      --bg: #000000;
      --bg-alt: #0a0a0a;
      --bg-soft: #111111;
      --green: #00ff00;
      --green-2: #00cc00;
      --green-3: #0f0;
      --white: #ffffff;
      --text: #f0f0f0;
      --radius: 14px;
      --shadow-neon: 0 0 6px #00ff00, 0 0 14px #00ff00, 0 0 28px #00ff00;
      --shadow-soft: 0 0 8px rgba(0,255,0,0.35);
      --transition: 200ms ease;
    }

    @font-face {
      font-family: "MatrixMono";
      font-style: normal;
      font-weight: 400;
      src: local("Courier New"), local("Menlo");
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0;
      background:
        radial-gradient(1200px 600px at 20% -20%, rgba(0,255,0,0.06), transparent 50%),
        radial-gradient(800px 400px at 80% 120%, rgba(0,255,0,0.06), transparent 50%),
        var(--bg);
      color: var(--text);
      font-family: MatrixMono, monospace;
      overflow-x: hidden;
    }

    /* Matrix rain canvas background */
    #matrix-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      opacity: 0.22;
      filter: blur(0.2px) contrast(1.05);
    }

    /* One-column centered layout */
    .container {
      position: relative;
      z-index: 1;
      max-width: 860px;
      margin: 0 auto;
      padding: 32px 16px 80px;
      display: grid;
      gap: 18px;
    }

    .panel {
      background: linear-gradient(180deg, rgba(0,255,0,0.05), rgba(0,255,0,0.02)), var(--bg-alt);
      border: 1px solid rgba(0,255,0,0.35);
      border-radius: var(--radius);
      box-shadow: inset 0 0 12px rgba(0,255,0,0.15), var(--shadow-soft);
      backdrop-filter: blur(3px);
      transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    }
    .panel:hover {
      transform: translateY(-1px);
      border-color: rgba(0,255,0,0.65);
      box-shadow: inset 0 0 18px rgba(0,255,0,0.22), var(--shadow-neon);
    }

    header.title {
      text-align: center;
      padding: 22px 18px;
    }
    .brand {
      font-size: 24px;
      letter-spacing: 2px;
      color: var(--green);
      text-shadow: 0 0 4px #00ff00, 0 0 12px #00ff00;
    }
    .subtitle {
      margin-top: 6px;
      font-size: 13px;
      color: #d8ffd8;
      opacity: 0.9;
    }

    /* Controls: search + source buttons + filters */
    .controls {
      display: grid;
      gap: 12px;
      padding: 18px;
    }
    .row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .input-wrap {
      position: relative;
    }
    .input-wrap input[type="text"] {
      width: 100%;
      padding: 14px 16px 14px 44px;
      font-size: 16px;
      color: var(--white);
      background: var(--bg-soft);
      border: 1px solid rgba(0,255,0,0.35);
      border-radius: var(--radius);
      outline: none;
      transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
      box-shadow: inset 0 0 10px rgba(0,255,0,0.12);
    }
    .input-wrap input[type="text"]:focus {
      border-color: rgba(0,255,0,0.75);
      box-shadow: inset 0 0 14px rgba(0,255,0,0.22), var(--shadow-neon);
      transform: translateY(-1px);
    }
    .input-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--green);
      text-shadow: var(--shadow-neon);
      font-size: 18px;
      opacity: 0.9;
      user-select: none;
    }

    .sources {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 14px;
      font-size: 14px;
      letter-spacing: 0.5px;
      color: var(--white);
      background: linear-gradient(180deg, rgba(0,255,0,0.08), rgba(0,255,0,0.02));
      border: 1px solid rgba(0,255,0,0.45);
      border-radius: 12px;
      cursor: pointer;
      transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), filter var(--transition);
      text-transform: uppercase;
    }
    .btn:hover {
      filter: brightness(1.1);
      border-color: rgba(0,255,0,0.85);
      box-shadow: var(--shadow-neon);
      transform: translateY(-1px);
    }
    .btn:active {
      transform: translateY(0.5px) scale(0.99);
      box-shadow: 0 0 4px #00ff00, 0 0 8px #00ff00;
    }
    .btn.active {
      background: rgba(0,255,0,0.1);
      border-color: rgba(0,255,0,0.95);
      box-shadow: var(--shadow-neon);
    }

    .filters {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }
    .filter-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .select, .date {
      width: 100%;
      padding: 12px;
      font-size: 14px;
      color: var(--white);
      background: var(--bg-soft);
      border: 1px solid rgba(0,255,0,0.35);
      border-radius: 12px;
      outline: none;
      transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
      box-shadow: inset 0 0 10px rgba(0,255,0,0.12);
    }
    .select:focus, .date:focus {
      border-color: rgba(0,255,0,0.75);
      box-shadow: inset 0 0 14px rgba(0,255,0,0.22), var(--shadow-neon);
      transform: translateY(-1px);
    }

    .search-actions {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 10px;
    }
    .btn-search {
      background: rgba(0,255,0,0.18);
      border-color: rgba(0,255,0,0.95);
      color: var(--bg);
      font-weight: 700;
      text-shadow: none;
    }
    .btn-search:hover {
      box-shadow: var(--shadow-neon);
    }

    /* Status and errors */
    .status {
      padding: 12px 16px;
      font-size: 13px;
      color: #d9ffd9;
      border-left: 2px solid rgba(0,255,0,0.65);
      background: rgba(0,255,0,0.06);
      border-radius: 10px;
      display: none;
    }
    .status.show { display: block; }

    .error {
      padding: 12px 16px;
      font-size: 13px;
      color: var(--white);
      border-left: 2px solid #ff0000;
      background: rgba(255,0,0,0.08);
      border-radius: 10px;
      display: none;
    }
    .error.show { display: block; }

    /* Results list */
    .results {
      display: grid;
      gap: 12px;
      padding: 18px;
    }

    .card {
      background: linear-gradient(180deg, rgba(0,255,0,0.05), rgba(0,255,0,0.02)), var(--bg-alt);
      border: 1px solid rgba(0,255,0,0.35);
      border-radius: 14px;
      padding: 14px 16px;
      display: grid;
      gap: 8px;
      transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
      box-shadow: inset 0 0 12px rgba(0,255,0,0.12);
    }
    .card:hover {
      transform: translateY(-1px);
      border-color: rgba(0,255,0,0.85);
      box-shadow: var(--shadow-neon);
    }

    .card-title a {
      color: var(--green);
      text-decoration: none;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.25px;
      text-shadow: 0 0 4px #00ff00, 0 0 12px #00ff00;
    }
    .card-title a:hover { text-decoration: underline; }

    .card-meta {
      font-size: 12px;
      color: #e9ffe9;
      opacity: 0.9;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .card-desc { font-size: 13px; color: #defede; }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border: 1px solid rgba(0,255,0,0.45);
      border-radius: 999px;
      color: var(--white);
      background: rgba(0,255,0,0.06);
      box-shadow: inset 0 0 8px rgba(0,255,0,0.12);
      font-size: 12px;
      transition: box-shadow var(--transition), border-color var(--transition);
    }
    .badge:hover {
      border-color: rgba(0,255,0,0.85);
      box-shadow: var(--shadow-neon);
    }

    /* Loading shimmer */
    .shimmer {
      background: linear-gradient(90deg, rgba(0,255,0,0.05), rgba(0,255,0,0.16), rgba(0,255,0,0.05));
      background-size: 200% 100%;
      animation: shimmer 1.6s infinite;
      border-radius: 12px;
      height: 16px;
    }
    @keyframes shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

  
    /* Responsive */
    @media (max-width: 560px) {
      .search-actions { grid-template-columns: 1fr; }
      .filter-row { grid-template-columns: 1fr; }
    }


       /* Estilos generales */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            color: #fff;
            min-height: 100vh;
            line-height: 1.6;
        }
        
        footer {
            background: linear-gradient(to right, #1a1a2e, #16213e, #0f3460);
            color: #fff;
            padding: 50px 0 20px;
            margin-top: 50px;
            position: relative;
            overflow: hidden;
        }
        
        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(to right, #ff6b6b, #fdbb2d, #1a2a6c);
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-bottom: 40px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 250px;
            margin-bottom: 30px;
            padding: 0 15px;
        }
        
        .footer-column h3 {
            font-size: 1.4rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
            color: #fdbb2d;
        }
        
        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: #ff6b6b;
            border-radius: 2px;
        }
        
        .footer-column h1 {
            font-size: 2rem;
            margin: 15px 0;
            color: #ff6b6b;
            text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
        }
        
        .footer-column p {
            margin-bottom: 20px;
            font-size: 0.95rem;
            line-height: 1.7;
            color: #e0e0e0;
        }
        
        /* Enlaces sociales */
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: #fff;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .social-link:hover {
            background: #ff6b6b;
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
        }
        
        /* Listas de enlaces */
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
            display: flex;
            align-items: flex-start;
        }
        
        .footer-links li i {
            margin-right: 10px;
            color: #fdbb2d;
            font-size: 1rem;
            margin-top: 3px;
        }
        
        .footer-links a {
            color: #e0e0e0;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }
        
        .footer-links a:hover {
            color: #ff6b6b;
            padding-left: 5px;
        }
        
        /* Mapa */
        iframe {
            border-radius: 8px;
            margin-top: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }
        
        iframe:hover {
            transform: scale(1.02);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        }
        
        /* Footer inferior */
        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
        }
        
        .footer-bottom h2 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: #fdbb2d;
        }
        
        .footer-bottom p {
            margin-bottom: 10px;
            color: #b0b0b0;
        }
        
        .footer-bottom i {
            color: #ff6b6b;
            margin: 0 5px;
        }
        
        #fecha, #reloj {
            font-weight: bold;
            color: #fdbb2d;
        }
        
        /* Efectos de animación */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .footer-column {
            animation: fadeInUp 0.6s ease forwards;
        }
        
        .footer-column:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .footer-column:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        .footer-column:nth-child(4) {
            animation-delay: 0.6s;
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .footer-column {
                flex: 0 0 50%;
            }
        }
        
        @media (max-width: 768px) {
            .footer-column {
                flex: 0 0 100%;
                text-align: center;
            }
            
            .footer-column h3::after {
                left: 50%;
                transform: translateX(-50%);
            }
            
            .social-links {
                justify-content: center;
            }
            
            .footer-links li {
                justify-content: center;
            }
        }
        
        @media (max-width: 480px) {
            iframe {
                width: 100%;
                height: 120px;
            }
        }