/* ============================================================
   landing.css — Página de inicio de servicios en línea
   Alcaldía La Paz Este
   ============================================================ */

:root { --primary-dark: #02042a; --primary-navy: #191b53; --primary-blue: #195fd3; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 50%, #0f1047 100%); min-height: 100vh; color: white; overflow-x: hidden; }

/* Animated Background */
.bg-animation { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-circle { position: absolute; border-radius: 50%; background: rgba(25,95,211,0.08); animation: float 20s infinite ease-in-out; }
.bg-circle:nth-child(1) { width: 400px; height: 400px; top: -100px; right: -100px; animation-delay: 0s; }
.bg-circle:nth-child(2) { width: 300px; height: 300px; bottom: -80px; left: -80px; animation-delay: -5s; }
.bg-circle:nth-child(3) { width: 200px; height: 200px; top: 40%; left: 60%; animation-delay: -10s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-30px) scale(1.1); } 66% { transform: translate(-20px,20px) scale(0.95); } }

.page-wrapper { position: relative; z-index: 1; }

/* Header */
.header { text-align: center; padding: 50px 20px 30px; }
.logo { width: 200px; height: auto; margin-bottom: 20px; filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4)); animation: fadeInDown 0.6s ease-out; }
.header h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: fadeInDown 0.6s ease-out 0.1s both; }
.header p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; animation: fadeInDown 0.6s ease-out 0.2s both; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Services Grid */
.services { max-width: 1100px; margin: 0 auto; padding: 20px 20px 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.service-card { background: rgba(255,255,255,0.06); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 35px 30px; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); cursor: pointer; text-decoration: none; color: white; display: block; position: relative; overflow: hidden; animation: fadeInUp 0.5s ease-out both; }
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.25s; }
.service-card:nth-child(5) { animation-delay: 0.3s; grid-column: 1 / -1; }
.service-card:nth-child(6) { animation-delay: 0.35s; }
.service-card:nth-child(7) { animation-delay: 0.4s; }

.service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(25,95,211,0.15) 0%, transparent 100%); opacity: 0; transition: opacity 0.4s; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(25,95,211,0.5); box-shadow: 0 20px 60px rgba(25,95,211,0.2), 0 0 40px rgba(25,95,211,0.1); }
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card:hover .service-arrow { transform: translateX(5px); opacity: 1; }

.service-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: transform 0.3s; position: relative; z-index: 1; }
.service-icon svg { width: 28px; height: 28px; }
.icon-blue     { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.icon-emerald  { background: linear-gradient(135deg, #10b981, #059669); }
.icon-amber    { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-purple   { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.icon-rose     { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.icon-teal     { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.icon-lime     { background: linear-gradient(135deg, #84cc16, #65a30d); }

.service-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; }
.service-desc  { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; position: relative; z-index: 1; }
.service-arrow { position: absolute; top: 35px; right: 30px; opacity: 0.4; transition: all 0.3s; z-index: 1; }

/* Dropdown for Licencias y Permisos */
.dropdown-card { cursor: default; }
.dropdown-card:hover { transform: translateY(-8px); }
.dropdown-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; position: relative; z-index: 1; }
.dropdown-item { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: white; transition: all 0.3s; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 500; }
.dropdown-item:hover { background: rgba(25,95,211,0.3); border-color: rgba(25,95,211,0.5); transform: translateY(-2px); }
.dropdown-item .item-num { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }

/* Footer */
.footer { text-align: center; padding: 30px 20px; color: rgba(255,255,255,0.4); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* Responsive */
@media (max-width: 768px) {
    .header h1 { font-size: 1.7rem; }
    .header p { font-size: 0.95rem; }
    .services { grid-template-columns: 1fr; }
    .service-card:nth-child(5) { grid-column: auto; }
    .dropdown-items { grid-template-columns: 1fr; }
    .service-card { padding: 25px 20px; }
    .service-title { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .header { padding: 30px 15px 20px; }
    .logo { width: 150px; }
    .header h1 { font-size: 1.4rem; }
    .services { padding: 15px 15px 40px; gap: 15px; }
}
