@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    /* Blooket-like Playful Palette */
    --primary: #8a2be2;        /* Vibrant Purple */
    --primary-light: #a451f2;
    --primary-dark: #6610b2;
    
    --accent: #00c0f9;         /* Bright Cyan */
    --accent-dark: #0098c8;
    
    --bg-main: #f0f8ff;        /* Soft blue background */
    --bg-secondary: #e0f0ff;
    --bg-card: #ffffff;
    
    --text-main: #333333;
    --text-muted: #555555;
    --text-light: #888888;
    
    --border: #222222;         /* Thick dark borders for cartoon effect */
    --border-soft: rgba(0,0,0,0.1);
    
    --shadow-3d: 0 6px 0 var(--border);
    --shadow-md: 0 8px 0 rgba(0,0,0,0.15);
    
    --transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Nunito', sans-serif;
    --radius: 20px;
}

[data-theme='dark'] {
    --primary: #a451f2;
    --primary-light: #c07df7;
    --primary-dark: #8a2be2;
    
    --accent: #2addff;
    --accent-dark: #00c0f9;
    
    --bg-main: #1d0034;        /* Dark purple */
    --bg-secondary: #2c004a;
    --bg-card: #451070;
    
    --text-main: #ffffff;
    --text-muted: #e0e0e0;
    --text-light: #aaaaaa;
    
    --border: #110022;
}

/* Base resets for a delicate look */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

@keyframes moveBackground {
    0% { background-position: 0 0, 30px 30px; }
    100% { background-position: 60px 60px, 90px 90px; }
}

body {
    background-color: var(--bg-main);
    /* Patrón de puntos divertido tipo Blooket */
    background-image: radial-gradient(var(--bg-secondary) 15%, transparent 16%), radial-gradient(var(--bg-secondary) 15%, transparent 16%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.6s ease;
    animation: moveBackground 15s linear infinite;
}

.container {
    max-width: 1100px; /* More condensed for a refined look */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Refined Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--bg-main);
    padding: 1rem 0;
    border-bottom: 4px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    text-shadow: 2px 2px 0 var(--border);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--border);
}

.nav-links {
    display: flex;
    gap: 1.5rem; /* Reduced gap to avoid overlapping */
    list-style: none;
    align-items: center;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem; /* Slightly smaller for more space */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-cta {
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 3px solid var(--border);
    box-shadow: 0 6px 0 var(--border);
    display: inline-block;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    cursor: pointer;
}

.btn-cta:hover {
    background: var(--accent-dark);
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--border);
    color: white;
}

.btn-cta:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 var(--border);
}

/* Playful Hero */
.hero {
    padding: 12rem 0 8rem;
    text-align: center;
    background-color: var(--primary);
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    color: white;
    border-bottom: 6px solid var(--border);
    position: relative;
    overflow: hidden;
}

.rain-item {
    position: absolute;
    top: -50px;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
    pointer-events: none;
    font-family: var(--font-heading);
    z-index: 1;
    animation: fall linear forwards;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

@keyframes fall {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes pulseTag {
    0% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.05) rotate(2deg); }
    100% { transform: scale(1) rotate(-2deg); }
}

.hero-tag {
    font-size: 1rem;
    font-family: var(--font-heading);
    color: #ffde00; /* Yellow */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid rgba(0,0,0,0.3);
    animation: pulseTag 3s ease-in-out infinite;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

.hero h1 {
    position: relative;
    z-index: 10;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 4px 4px 0 var(--border), -2px -2px 0 var(--border), 2px -2px 0 var(--border), -2px 2px 0 var(--border), 2px 2px 0 var(--border);
    /* Inicia con un rebote y luego se queda flotando de por vida */
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, float 3s ease-in-out 0.8s infinite;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 800;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

/* Minimalist Grid */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 4px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-3d);
}

.card:hover {
    transform: translateY(-8px) rotate(-1.5deg);
    box-shadow: 0 12px 0 var(--border);
}

.card:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--border);
}

.card-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--border);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 700;
}

/* Compact access cards for many activities */
.access-section {
    padding: 50px 0;
}

.access-title {
    margin-bottom: 1.8rem;
}

.access-feature-divider {
    width: min(920px, 100%);
    margin: 0 auto 1.1rem;
    padding: .75rem 1rem;
    border: 4px solid var(--border);
    border-radius: 999px;
    background: linear-gradient(90deg, #ffde00, #2addff, #a451f2);
    color: #1d0034;
    font-family: var(--font-heading);
    font-size: clamp(.95rem, 2.4vw, 1.35rem);
    text-align: center;
    box-shadow: 0 6px 0 var(--border);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.top-apps-box {
    width: min(980px, 100%);
    margin: 0 auto 2.4rem;
    padding: 1.2rem;
    border: 4px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,222,0,.22), rgba(42,221,255,.14), rgba(164,81,242,.18));
    box-shadow: 0 8px 0 var(--border);
    text-align: center;
}

.top-apps-heading {
    text-align: center;
    margin: 0 auto 1rem;
    max-width: 720px;
}

.top-apps-heading h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    color: var(--primary);
    text-shadow: 2px 2px 0 var(--border);
    margin: .2rem 0;
}

.top-apps-heading p {
    color: var(--text-muted);
    font-weight: 800;
}

.top-kicker {
    display: inline-block;
    background: #ffde00;
    color: #21004a;
    border: 3px solid var(--border);
    border-radius: 999px;
    padding: .35rem .8rem;
    font-family: var(--font-heading);
    font-size: .8rem;
    box-shadow: 0 4px 0 var(--border);
    transform: rotate(-2deg);
}

.top-apps-grid,
.access-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.access-card {
    width: 200px;
    padding: 0.7rem;
    border-width: 2px;
    border-radius: 16px;
    box-shadow: 0 4px 0 var(--border);
    min-height: 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    align-items: center;
}

.top-card {
    border-width: 4px;
    box-shadow: 0 7px 0 var(--border);
    background: var(--bg-card);
}

.top-card.most-used {
    outline: 4px solid #ffde00;
    outline-offset: 3px;
    transform: rotate(-1deg);
}

.app-ribbon {
    position: absolute;
    top: 8px;
    left: -32px;
    z-index: 2;
    width: 128px;
    text-align: center;
    transform: rotate(-36deg);
    background: #ffde00;
    color: #1d0034;
    border: 2px solid var(--border);
    font-family: var(--font-heading);
    font-size: .55rem;
    padding: .18rem 0;
    box-shadow: 0 2px 0 var(--border);
}

.most-used .app-ribbon {
    background: #ff4757;
    color: #fff;
}

.access-card:hover {
    transform: translateY(-3px) rotate(-0.5deg);
    box-shadow: 0 6px 0 var(--border);
}

.access-thumb {
    height: 96px;
    aspect-ratio: auto;
    margin-bottom: 0.55rem;
    border-radius: 10px;
    border-width: 2px;
}

.access-card h3 {
    font-size: 0.95rem;
    line-height: 1.08;
    margin-bottom: 0.25rem;
}

.access-card p {
    font-size: 0.68rem;
    line-height: 1.18;
    font-weight: 700;
    margin: 0;
}

@media (min-width: 980px) {
    .access-grid {
        max-width: 1080px;
    }
}

@media (max-width: 520px) {
    .top-apps-grid,
    .access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
    .top-apps-box {
        padding: .75rem;
    }
    .access-card {
        width: auto;
        padding: 0.5rem;
    }
    .access-thumb {
        height: 68px;
    }
    .access-card h3 {
        font-size: 0.72rem;
    }
    .access-card p {
        display: none;
    }
}

/* Consultancy Section - Balanced & Airy */
.consultancy {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.split-layout {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.content-half {
    flex: 1;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature {
    padding: 1.5rem;
    border-left: 2px solid var(--accent);
}

.feature h4 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer - Corporate Minimal */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-col h5 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Theme Toggle Elegant */
.theme-switch {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-switch:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .card-grid { grid-template-columns: 1fr; }
    .split-layout { flex-direction: column; gap: 3rem; }
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
}

/* Educational Banner Section */
.edu-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5rem 3rem;
    margin: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.edu-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.edu-banner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.edu-topics {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.topic-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.edu-footer {
    padding-top: 3rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.85rem;
    color: var(--text-light);
}

.edu-footer strong {
    color: var(--primary);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal-schedule {
    margin: 2rem 0;
    text-align: left;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.schedule-item:last-child {
    border-bottom: none;
}


/* Nodo Andino + PEI landing profesional educativo */
.pei-home-hero{
    min-height: 72vh;
    display:flex;
    align-items:center;
    padding: 132px 0 84px;
    text-align:left;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,222,0,.18), transparent 26%),
        radial-gradient(circle at 82% 15%, rgba(42,221,255,.22), transparent 28%),
        linear-gradient(135deg, var(--primary-dark), var(--primary) 52%, #0ea5e9);
}
.pei-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:2.2rem;align-items:center;position:relative;z-index:2}
.pei-hero-copy h1{font-size:clamp(2.8rem,6vw,5.9rem);line-height:1.02;margin-bottom:1.25rem;max-width:860px}
.pei-hero-copy p{margin:0 0 1.8rem;max-width:760px;font-size:1.25rem;color:rgba(255,255,255,.94);font-weight:700}
.pei-hero-actions{display:flex;flex-wrap:wrap;gap:1rem;align-items:center}
.pei-secondary-btn{background:#fff;color:var(--primary);text-shadow:none}
.pei-secondary-btn:hover{color:var(--primary-dark);background:#f8fafc}
.pei-hero-panel{background:rgba(255,255,255,.94);color:#182033;border:5px solid var(--border);border-radius:28px;padding:2rem;box-shadow:12px 12px 0 rgba(0,0,0,.34);transform:rotate(1deg)}
[data-theme='dark'] .pei-hero-panel{background:#f8fbff;color:#182033}
.pei-hero-panel h2{font-family:var(--font-heading);font-size:2.05rem;color:#1646d8;line-height:1.05;margin:.6rem 0 1rem;text-shadow:none}
.pei-hero-panel p{color:#334155;font-weight:800;margin-bottom:1.2rem}
.pei-status,.news-kicker{display:inline-block;background:#ffde00;color:#1e1b4b;border:3px solid var(--border);border-radius:999px;padding:.35rem .85rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;font-size:.8rem;box-shadow:0 4px 0 var(--border)}
.pei-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.pei-mini-grid span{background:#eef6ff;border:2px solid #cbd5e1;border-radius:14px;padding:.75rem;font-weight:900;color:#1e293b}
.pei-news-strip{padding:2.5rem 0;background:linear-gradient(180deg,var(--bg-main),var(--bg-secondary));border-bottom:6px solid var(--border)}
.pei-news-card{display:flex;gap:2rem;align-items:center;justify-content:space-between;background:var(--bg-card);border:4px solid var(--border);border-radius:28px;box-shadow:0 8px 0 var(--border);padding:2rem}
.pei-news-card h2{font-family:var(--font-heading);font-size:clamp(1.8rem,3vw,3rem);color:var(--primary);line-height:1.1;margin:.85rem 0 .6rem;text-shadow:2px 2px 0 var(--border)}
.pei-news-card p{font-size:1.08rem;color:var(--text-muted);font-weight:800;max-width:760px}
.top-apps-box{border-color:var(--primary)!important;background:linear-gradient(180deg,var(--bg-card),rgba(14,165,233,.10))!important}
.access-card[href="pei/"], .top-card[href="pei/"]{outline:4px solid rgba(0,192,249,.35);position:relative}
.access-card[href="pei/"]::after, .top-card[href="pei/"]::after{content:'ACTIVO';position:absolute;right:10px;top:10px;background:#22c55e;color:#06210f;border:2px solid var(--border);border-radius:999px;font-size:.68rem;font-weight:900;padding:.2rem .5rem;box-shadow:0 2px 0 var(--border)}
@media (max-width: 880px){.pei-hero-grid{grid-template-columns:1fr}.pei-home-hero{text-align:center}.pei-hero-actions{justify-content:center}.pei-hero-panel{transform:none}.pei-news-card{flex-direction:column;text-align:center}.pei-hero-copy p{margin-left:auto;margin-right:auto}}


/* Ajuste visual suave para el landing PEI: menos blanco puro y contraste más amable */
.pei-home-hero{
    color:#24324a;
    background:
        radial-gradient(circle at 12% 22%, rgba(255,222,0,.18), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(14,165,233,.18), transparent 30%),
        linear-gradient(135deg,#eaf3ff 0%,#dbeafe 44%,#eef2ff 100%);
}
.pei-hero-copy .hero-tag{background:#fff3bf;color:#3b2f00;border-color:#2a2440;text-shadow:none;box-shadow:0 4px 0 #2a2440}
.pei-hero-copy h1{
    color:#25304a;
    text-shadow:3px 3px 0 rgba(14,165,233,.18);
}
.pei-hero-copy p{
    color:#44526b;
    text-shadow:none;
    font-weight:800;
}
.pei-hero-panel{
    background:rgba(255,252,244,.92);
    color:#25304a;
    box-shadow:10px 10px 0 rgba(37,48,74,.18);
}
[data-theme='dark'] .pei-home-hero{
    color:#d7dfef;
    background:
        radial-gradient(circle at 12% 22%, rgba(255,222,0,.10), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(14,165,233,.14), transparent 30%),
        linear-gradient(135deg,#17213a 0%,#24304d 48%,#2b3157 100%);
}
[data-theme='dark'] .pei-hero-copy h1{color:#dce6f7;text-shadow:3px 3px 0 rgba(0,0,0,.22)}
[data-theme='dark'] .pei-hero-copy p{color:#c0cadb}
[data-theme='dark'] .pei-hero-panel{background:#f6f0df;color:#24304a}
.pei-home-hero .btn-cta{box-shadow:0 5px 0 #2a2440;text-shadow:none}
.pei-home-hero .pei-secondary-btn{background:#f7efe1;color:#25304a}
.pei-news-card{background:linear-gradient(180deg,#fffaf0,var(--bg-card));}
[data-theme='dark'] .pei-news-card{background:linear-gradient(180deg,#331d50,#2b1743)}


/* Ajuste institucional: PEI sin infantilizar, botones sobrios y tarjetas legibles */
.pei-hero-panel{
    background:rgba(248,244,235,.96);
    border:1px solid rgba(36,48,74,.28);
    border-left:8px solid #31415f;
    border-radius:18px;
    padding:2rem 2.1rem;
    box-shadow:0 18px 45px rgba(37,48,74,.16);
    transform:none;
}
.pei-hero-panel h2{
    font-family:var(--font-body);
    font-weight:900;
    letter-spacing:-.03em;
    color:#24304a;
    font-size:clamp(1.65rem,2.5vw,2.15rem);
    line-height:1.12;
    text-shadow:none;
}
.pei-hero-panel p{font-weight:700;line-height:1.5;color:#46546b}
.pei-status{
    background:#e9ddc7;
    color:#31415f;
    border:1px solid rgba(49,65,95,.35);
    box-shadow:none;
    border-radius:8px;
    font-family:var(--font-body);
    font-size:.76rem;
    letter-spacing:.08em;
}
.pei-mini-grid{gap:.65rem}
.pei-mini-grid span{
    background:#f3eadb;
    border:1px solid rgba(49,65,95,.20);
    border-radius:10px;
    color:#2d3851;
    font-family:var(--font-body);
    font-size:.92rem;
    font-weight:900;
    padding:.72rem .85rem;
}
.pei-home-hero .btn-cta{
    background:#31415f;
    color:#f3eadb;
    border-color:#24304a;
    box-shadow:0 5px 0 #24304a;
    text-shadow:none;
}
.pei-home-hero .btn-cta:hover{background:#24304a;color:#fff7e8}
.pei-home-hero .pei-secondary-btn{
    background:#e6d7bd;
    color:#24304a;
    border-color:#31415f;
}
.pei-home-hero .pei-secondary-btn:hover{background:#d8c39f;color:#17213a}
.access-card h3,
.top-card h3{
    font-family:var(--font-body);
    font-weight:900;
    letter-spacing:-.01em;
    font-size:1rem;
    line-height:1.2;
    margin:.15rem 0 .35rem;
    color:var(--text-main);
    text-shadow:none;
    overflow-wrap:anywhere;
}
.access-card p,
.top-card p{
    font-family:var(--font-body);
    font-size:.74rem;
    line-height:1.32;
    font-weight:700;
}
.top-apps-heading h3,
.section-title h2{
    letter-spacing:.01em;
    line-height:1.12;
}
@media (max-width:520px){
    .access-card h3,.top-card h3{font-size:.82rem;line-height:1.18}
}


/* Ajuste final: botones PEI y divisor de accesos más sobrios */
.pei-news-card .btn-cta{
    background:#31415f;
    color:#f3eadb;
    border-color:#24304a;
    box-shadow:0 5px 0 #24304a;
    text-shadow:none;
}
.pei-news-card .btn-cta:hover{background:#24304a;color:#fff7e8}
.access-feature-divider{
    background:#e9ddc7;
    color:#31415f;
    border:1px solid rgba(49,65,95,.35);
    box-shadow:0 4px 0 rgba(36,48,74,.35);
    font-family:var(--font-body);
    font-weight:900;
    letter-spacing:.06em;
}
