/* =====================================================
   | IAparaseniors — Glassmorphism Dark Mode            |
   | Design System                                      |
   ===================================================== */

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

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --bg-1: #0c0a1d;
    --bg-2: #1a1640;
    --bg-3: #251e5c;
    --glass-bg: rgba(255,255,255,0.06);
    --glass-bg-hover: rgba(255,255,255,0.10);
    --glass-bg-strong: rgba(255,255,255,0.14);
    --glass-border: rgba(255,255,255,0.12);
    --glass-border-hover: rgba(255,255,255,0.25);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.75);
    --text-muted: rgba(255,255,255,0.45);
    --shadow-glow: 0 0 30px rgba(79,70,229,0.35);
    --nav-height: 72px;
    --ease: cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-1);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ---- Animated Background ---- */
.bg-animation {
    position: fixed; top:0; left:0; width:100%; height:100%; z-index:0;
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.35;
    animation: blobFloat 20s infinite ease-in-out;
}
.blob-1 { width:400px; height:400px; background:var(--primary); top:-100px; right:-100px; }
.blob-2 { width:300px; height:300px; background:var(--secondary); bottom:-50px; left:-50px; animation-delay:-7s; }
.blob-3 { width:250px; height:250px; background:var(--accent); top:40%; left:40%; animation-delay:-14s; }

@keyframes blobFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(30px,-30px) scale(1.1); }
    66%     { transform: translate(-20px,20px) scale(0.9); }
}

/* ---- Glass Utility ---- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    transition: all .3s var(--ease);
}
.glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

/* ---- LOGIN SCREEN ---- */
.login-screen {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 1.5rem;
}
.login-card {
    width: 100%; max-width: 420px; padding: 3rem 2.5rem; text-align: center;
    animation: fadeInUp .6s var(--ease);
}
.login-logo { height: 64px; margin-bottom: 1.5rem; filter: drop-shadow(0 0 20px rgba(99,102,241,.4)); }
.login-card h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .25rem; }
.login-card .login-subtitle { color: var(--text-secondary); font-size: .95rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.25rem; text-align: left; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: .4rem; }
.form-group input {
    width: 100%; padding: .75rem 1rem; border: 1px solid var(--glass-border);
    border-radius: .75rem; background: rgba(255,255,255,0.05); color: #fff;
    font-size: .95rem; font-family: inherit; outline: none; transition: all .2s;
}
.form-group input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(99,102,241,.25); }
.form-group input::placeholder { color: var(--text-muted); }

.btn-primary {
    width: 100%; padding: .85rem; border: none; border-radius: .75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; font-size: 1rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---- NAVBAR ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-height); padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    border-radius: 0; border-top: none; border-left: none; border-right: none;
    border-bottom: 1px solid var(--glass-border);
}
.nav-brand { display: flex; align-items: center; gap: .75rem; }
.nav-brand img { height: 38px; filter: drop-shadow(0 0 10px rgba(99,102,241,.3)); }
.nav-brand span { font-weight: 700; font-size: 1.1rem; }
.nav-tagline { color: var(--text-secondary); font-size: .85rem; display: none; }
.btn-logout {
    padding: .5rem 1.25rem; border: 1px solid rgba(239,68,68,.4); border-radius: 2rem;
    background: rgba(239,68,68,.1); color: #fca5a5; font-size: .8rem; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all .3s var(--ease);
}
.btn-logout:hover { background: rgba(239,68,68,.25); border-color: rgba(239,68,68,.6); }

/* ---- HERO ---- */
.hero {
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
    text-align: center; max-width: 900px; margin: 0 auto;
}
.hero h1 { font-size: 2.5rem; font-weight: 900; line-height: 1.15; margin-bottom: .5rem;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #a5b4fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .hero-sub { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-video-card {
    border-radius: 1.25rem; overflow: hidden; padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.hero-video-card video { width: 100%; display: block; border-radius: 1.25rem; }

/* ---- SECTION BASE ---- */
.section-container {
    position: relative; z-index: 10;
    max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem;
}

/* ---- RESOURCE CARDS ---- */
.section-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 2rem; }
.resource-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-bottom: 2rem; }

.resource-card {
    padding: 2rem 1rem; text-align: center; cursor: pointer; border: none;
    background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 1.25rem;
    color: var(--text-primary); font-family: inherit; transition: all .3s var(--ease);
}
.resource-card:hover {
    background: var(--glass-bg-hover); border-color: var(--glass-border-hover);
    transform: translateY(-6px); box-shadow: var(--shadow-glow);
}
.resource-card i { font-size: 2.5rem; margin-bottom: .75rem; display: block; }
.resource-card span { font-size: .9rem; font-weight: 600; }

.card-docs i { color: #818cf8; }
.card-docs:hover { border-color: rgba(129,140,248,.4); box-shadow: 0 0 30px rgba(129,140,248,.25); }
.card-news i { color: #fb923c; }
.card-news:hover { border-color: rgba(251,146,60,.4); box-shadow: 0 0 30px rgba(251,146,60,.25); }
.card-videos i { color: #2dd4bf; }
.card-videos:hover { border-color: rgba(45,212,191,.4); box-shadow: 0 0 30px rgba(45,212,191,.25); }
.card-learn i { color: #c084fc; }
.card-learn:hover { border-color: rgba(192,132,252,.4); box-shadow: 0 0 30px rgba(192,132,252,.25); }

/* ---- CONTACT BAR ---- */
.contact-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; padding: 1.5rem 2rem;
}
.contact-info-text { font-size: .85rem; color: var(--text-secondary); }
.contact-info-text i { color: var(--primary-light); margin-right: .4rem; }
.contact-info-text p { margin-bottom: .35rem; }
.btn-about {
    padding: .65rem 1.5rem; border: 1px solid var(--accent); border-radius: 2rem;
    background: rgba(6,182,212,.1); color: var(--accent); font-weight: 600;
    font-size: .85rem; cursor: pointer; font-family: inherit; transition: all .3s var(--ease);
}
.btn-about:hover { background: rgba(6,182,212,.2); transform: translateY(-2px); }

/* ---- CONTENT PANELS ---- */
.content-panel { padding: 2rem; animation: fadeInUp .4s var(--ease); }
.panel-header { margin-bottom: 1.5rem; }
.btn-back {
    background: none; border: none; color: var(--text-secondary); cursor: pointer;
    font-size: .85rem; font-weight: 500; font-family: inherit; transition: color .2s;
    margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .4rem;
}
.btn-back:hover { color: var(--text-primary); }
.panel-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }
.panel-desc { color: var(--text-secondary); font-size: .95rem; }

.resource-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.resource-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.resource-item-info { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; }
.resource-item-info i { font-size: 1.2rem; flex-shrink: 0; }
.resource-item-info .item-title { font-weight: 600; font-size: .9rem; }
.resource-item-info .item-desc { font-size: .75rem; color: var(--text-muted); margin-top: .15rem; }

.btn-resource {
    padding: .45rem 1.1rem; border: none; border-radius: 2rem;
    font-size: .78rem; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: all .3s var(--ease); white-space: nowrap; text-decoration: none;
}
.btn-download { background: linear-gradient(135deg, var(--accent), #0891b2); color: #fff; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(6,182,212,.35); }
.btn-watch { background: linear-gradient(135deg, var(--accent-red), #dc2626); color: #fff; }
.btn-watch:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(239,68,68,.35); }
.btn-link { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.panel-video {
    max-width: 500px; margin: 1.5rem auto; border-radius: 1rem; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.panel-video video { width: 100%; display: block; }
.panel-video-caption { text-align: center; margin-top: .75rem; font-size: .8rem; color: var(--text-muted); }
.panel-video-caption a { color: var(--accent); text-decoration: none; }
.panel-video-caption a:hover { text-decoration: underline; }

/* ---- ABOUT SECTION ---- */
.about-section { padding: 3rem 0; }
.about-card { padding: 2.5rem; max-width: 700px; margin: 0 auto; }
.about-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; text-align: center; }
.about-bio { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.about-avatar { max-width: 280px; margin: 1.5rem auto; border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.about-avatar video { width: 100%; display: block; }
.about-subtitle { font-size: 1.1rem; font-weight: 700; color: var(--primary-light); margin: 1.5rem 0 .75rem; }
.about-list { list-style: none; padding: 0; }
.about-list li { padding: .5rem 0; color: var(--text-secondary); font-size: .9rem; border-bottom: 1px solid var(--glass-border); }
.about-list li:last-child { border-bottom: none; }
.about-list li::before { content: "→ "; color: var(--accent); font-weight: 700; }
.about-cv { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); text-decoration: none; font-weight: 600; margin-top: .5rem; }
.about-cv:hover { text-decoration: underline; }

/* ---- MODAL QUIEN SOY ---- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
}
.modal-content {
    background: var(--bg-2);
    position: relative;
    max-height: 90vh; overflow-y: auto;
}
.btn-close-modal {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: none; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; transition: color .2s;
}
.btn-close-modal:hover { color: var(--accent-red); }

/* ---- FOOTER ---- */
.site-footer {
    text-align: center; padding: 2rem 1.5rem; margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
}
.site-footer p { font-size: .8rem; color: var(--text-muted); margin-bottom: .4rem; }
.site-footer a { color: var(--primary-light); text-decoration: none; font-size: .8rem; }
.site-footer a:hover { text-decoration: underline; }

/* ---- HIDDEN ---- */
.hidden { display: none !important; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .5s var(--ease) both; }

/* ---- RESPONSIVE ---- */
@media (min-width: 768px) {
    .nav-tagline { display: block; }
    .hero h1 { font-size: 3rem; }
    .login-card { padding: 3rem; }
}
@media (max-width: 900px) {
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .resource-grid { grid-template-columns: 1fr; }
    .hero { padding: calc(var(--nav-height) + 1rem) 1rem 1rem; }
    .hero h1 { font-size: 1.75rem; }
    .navbar { padding: 0 1rem; }
    .contact-bar { flex-direction: column; text-align: center; }
    .resource-item { flex-direction: column; text-align: center; gap: .75rem; }
    .section-container { padding: 1.5rem 1rem; }
}

/* ---- FOCUS / A11Y ---- */
a:focus, button:focus { outline: 2px solid var(--primary-light); outline-offset: 2px; }
button, a { transition: all .3s var(--ease); }
