/* ============================================
   PORTAL LAIP - Municipalidad de Chiquimulilla
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --blue:     #1a56db;
    --blue-d:   #0c2461;
    --blue-l:   #e8f0fd;
    --green:    #0ea371;
    --green-l:  #e6f7f1;
    --orange:   #f97316;
    --orange-l: #fff3e8;
    --red:      #dc2626;
    --red-l:    #fef2f2;
    --bg:       #f0f4f8;
    --txt:      #1e293b;
    --muted:    #64748b;
    --border:   #e2e8f0;
    --sh:       0 4px 24px rgba(26,86,219,.08);
    --sh-h:     0 12px 40px rgba(26,86,219,.18);
    --r:        16px;
    --r2:       24px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.65;
    margin: 0; padding: 0;
    overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
    background: linear-gradient(135deg, #0c2461 0%, #1a56db 100%) !important;
    box-shadow: 0 2px 16px rgba(12,36,97,.4);
    padding: 10px 0;
}
.nav-link {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: .87rem;
    color: rgba(255,255,255,.85) !important;
    padding: 6px 13px !important;
    border-radius: 8px;
    transition: .2s;
}
.nav-link:hover { color: #fff !important; background: rgba(255,255,255,.15); }

/* ── HERO ── */
.laip-hero {
    background: linear-gradient(145deg, #0c2461 0%, #1a56db 60%, #2d8cff 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.laip-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 72px 32px 100px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.laip-hero-left  { flex: 1; min-width: 0; }
.laip-hero-right { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

.laip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.9);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.laip-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,.3);
    animation: pdot 2s infinite;
}
@keyframes pdot {
    0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.3); }
    50%      { box-shadow: 0 0 0 6px rgba(74,222,128,.1); }
}

.laip-h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}

.laip-accent {
    background: linear-gradient(90deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.laip-lead {
    font-size: 1rem;
    color: rgba(255,255,255,.8);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.laip-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.laip-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    padding: 13px 26px;
    border-radius: 11px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(249,115,22,.4);
    transition: .25s;
}
.laip-btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(249,115,22,.5);
}

.laip-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.9);
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    padding: 13px 22px;
    border-radius: 11px;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,.35);
    transition: .25s;
}
.laip-btn-ghost:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255,255,255,.6);
}

/* Hero Graphic */
.laip-graphic { position: relative; width: 280px; height: 280px; }

.laip-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.12);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: rspin linear infinite;
}
.r1 { width: 200px; height: 200px; animation-duration: 24s; border-style: dashed; }
.r2 { width: 270px; height: 270px; animation-duration: 40s; animation-direction: reverse; }

@keyframes rspin {
    from { transform: translate(-50%,-50%) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(360deg); }
}

.laip-icon-box {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 90px; height: 90px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.3);
    font-size: 2.6rem;
    color: #fff;
}

.laip-fl {
    position: absolute;
    width: 48px; height: 48px;
    background: rgba(255,255,255,.15);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    animation: fl 3s ease-in-out infinite;
}
.f1 { top: 8px; right: 16px; animation-delay: 0s; }
.f2 { bottom: 16px; left: 8px; animation-delay: 1s; }
.f3 { bottom: 52px; right: 2px; animation-delay: 2s; }

@keyframes fl {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

.laip-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.laip-wave svg { display: block; width: 100%; }

/* ── STATS ── */
.laip-stats-wrap {
    background: var(--bg);
    padding: 0 32px;
    width: 100%;
}

.laip-stats {
    max-width: 1140px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--r2);
    padding: 24px 36px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--sh);
    border: 1px solid var(--border);
    position: relative;
    z-index: 5;
    margin-top: -2px;
}

.laip-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 130px;
}
.laip-stat > i { font-size: 1.8rem; color: var(--blue); opacity: .8; }
.laip-stat b   { display: block; font-family: 'Sora',sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--txt); }
.laip-stat span { font-size: .75rem; color: var(--muted); }
.laip-stat-div { width: 1px; height: 44px; background: var(--border); flex-shrink: 0; }

/* ── SERVICES ── */
.laip-services {
    background: var(--bg);
    padding: 72px 32px;
    width: 100%;
}

.laip-section-head { text-align: center; margin-bottom: 48px; }

.laip-eyebrow {
    font-family: 'Sora',sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

.laip-h2 {
    font-family: 'Sora',sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--txt);
    margin-bottom: 12px;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.laip-sub { font-size: 1rem; color: var(--muted); max-width: 480px; margin: 0 auto; }

.laip-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
@media (max-width: 680px) { .laip-grid { grid-template-columns: 1fr; } }

.laip-card {
    background: #fff;
    border-radius: var(--r2);
    padding: 32px 28px;
    text-decoration: none;
    color: var(--txt);
    display: block;
    border: 1.5px solid transparent;
    box-shadow: var(--sh);
    transition: .3s;
    position: relative;
    overflow: hidden;
}
.laip-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
}
.laip-card:hover { transform: translateY(-6px); box-shadow: var(--sh-h); text-decoration: none; color: var(--txt); }

.laip-card small  { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.laip-card h3     { font-family: 'Sora',sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.laip-card p      { font-size: .87rem; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.laip-card-link   { font-family: 'Sora',sans-serif; font-size: .83rem; font-weight: 600; display: flex; align-items: center; gap: 7px; transition: gap .2s; }
.laip-card:hover .laip-card-link { gap: 11px; }

.laip-card-ico {
    width: 54px; height: 54px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 16px;
    transition: transform .3s;
}
.laip-card:hover .laip-card-ico { transform: scale(1.1) rotate(-4deg); }

.laip-card-blue::before   { background: linear-gradient(90deg,#1a56db,#3b82f6); }
.laip-card-blue:hover     { border-color: #bfdbfe; }
.laip-card-blue .laip-card-ico  { background: var(--blue-l);   color: var(--blue); }
.laip-card-blue .laip-card-link { color: var(--blue); }

.laip-card-green::before  { background: linear-gradient(90deg,#0ea371,#34d399); }
.laip-card-green:hover    { border-color: #a7f3d0; }
.laip-card-green .laip-card-ico  { background: var(--green-l);  color: var(--green); }
.laip-card-green .laip-card-link { color: var(--green); }

.laip-card-orange::before { background: linear-gradient(90deg,#f97316,#fb923c); }
.laip-card-orange:hover   { border-color: #fed7aa; }
.laip-card-orange .laip-card-ico  { background: var(--orange-l); color: var(--orange); }
.laip-card-orange .laip-card-link { color: var(--orange); }

.laip-card-red::before    { background: linear-gradient(90deg,#dc2626,#f87171); }
.laip-card-red:hover      { border-color: #fecaca; }
.laip-card-red .laip-card-ico    { background: var(--red-l);    color: var(--red); }
.laip-card-red .laip-card-link   { color: var(--red); }

/* ── STEPS ── */
.laip-steps-wrap {
    background: linear-gradient(135deg, #0c2461 0%, #1a56db 100%);
    padding: 72px 32px;
    position: relative;
    width: 100%;
}

.laip-steps {
    max-width: 1100px;
    margin: 40px auto 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.laip-step {
    flex: 1; min-width: 160px; max-width: 210px;
    text-align: center; padding: 24px 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r2);
    transition: .3s;
}
.laip-step:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); }
.laip-step-num  { font-family: 'Sora',sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .15em; color: rgba(255,255,255,.35); margin-bottom: 10px; }
.laip-step-ico  { width: 52px; height: 52px; background: rgba(255,255,255,.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; margin: 0 auto 14px; }
.laip-step h4   { font-family: 'Sora',sans-serif; font-weight: 700; font-size: .9rem; color: #fff; margin-bottom: 7px; }
.laip-step p    { font-size: .8rem; color: rgba(255,255,255,.62); line-height: 1.6; margin: 0; }
.laip-step-arr  { color: rgba(255,255,255,.2); font-size: 1.3rem; padding-top: 36px; flex-shrink: 0; }

@media (max-width: 700px) {
    .laip-step-arr { display: none; }
    .laip-steps    { gap: 14px; }
}

/* ── FOOTER ── */
footer {
    background: #0f172a !important;
    border-top: 3px solid var(--blue) !important;
    margin-top: 0 !important;
}
footer h5 { font-family: 'Sora',sans-serif; font-weight: 700; }

/* ── OTHER PAGES ── */
.card { border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh); transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-h); }
.list-group-item { margin-bottom: 8px; border-radius: 10px !important; border-left: 4px solid var(--blue); }
.alert { border-radius: var(--r); border: none; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .laip-hero-right  { display: none; }
    .laip-hero-inner  { padding: 56px 20px 80px; }
    .laip-stats       { padding: 18px 20px; }
    .laip-stat-div    { display: none; }
}
@media (max-width: 576px) {
    .laip-btns         { flex-direction: column; }
    .laip-btn-primary,
    .laip-btn-ghost    { width: 100%; justify-content: center; }
    .laip-services,
    .laip-steps-wrap   { padding: 52px 16px; }
    .laip-stats-wrap   { padding: 0 16px; }
}
