/* IGED CMS - Estilos públicos */
:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --secondary: #2ecc71;
    --accent: #e74c3c;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }

/* Skip link */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { top: 0; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { line-height: 1.3; margin-bottom: 0.5em; color: var(--primary); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1em; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-link { background: none; padding: 0; color: var(--primary); }
.btn-link:hover { color: var(--secondary); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Top Bar */
.topbar { background: var(--primary); color: #fff; font-size: 0.875rem; padding: 8px 0; }
.topbar-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar-contact { display: flex; gap: 20px; }
.topbar-contact span { display: flex; align-items: center; gap: 5px; }
.topbar-nav ul { display: flex; list-style: none; gap: 15px; }
.topbar-nav a { color: #fff; opacity: 0.9; }
.topbar-nav a:hover { opacity: 1; color: #fff; }

/* Header */
.header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; gap: 20px; }
.logo img { height: 50px; width: auto; }
.main-nav ul { display: flex; list-style: none; gap: 5px; }
.main-nav a { padding: 10px 15px; font-weight: 500; border-radius: var(--radius); transition: background 0.2s; }
.main-nav a:hover { background: var(--bg-light); }
.header-search { display: flex; }
.header-search input { padding: 8px 15px; border: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); width: 200px; }
.header-search button { padding: 8px 15px; background: var(--primary); color: #fff; border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 3px; background: var(--primary); margin: 5px 0; transition: 0.3s; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 100px 0; text-align: center; }
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--primary); }

/* Sections */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

/* Page Header */
.page-header { background: var(--primary); color: #fff; padding: 60px 0 40px; }
.page-header h1 { color: #fff; margin-bottom: 10px; }
.breadcrumb { display: flex; gap: 10px; font-size: 0.9rem; opacity: 0.8; }
.breadcrumb a { color: #fff; }

/* About cards */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.about-card { background: var(--bg-light); padding: 40px 30px; border-radius: var(--radius); text-align: center; }
.about-icon { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }
.about-card h3 { margin-bottom: 15px; }

/* Content blocks */
.content-grid { display: grid; gap: 40px; }
.content-block { background: var(--bg-light); padding: 40px; border-radius: var(--radius); border-left: 4px solid var(--secondary); }
.content-icon { font-size: 2rem; color: var(--secondary); margin-bottom: 15px; }

/* Programs grid */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.program-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.program-card:hover { transform: translateY(-5px); }
.program-image { height: 200px; overflow: hidden; }
.program-image img { width: 100%; height: 100%; object-fit: cover; }
.program-image-placeholder { background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--text-light); }
.program-content { padding: 25px; }
.program-level { display: inline-block; background: var(--secondary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; margin-bottom: 10px; }
.program-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.program-modalidad { display: inline-block; background: var(--bg-light); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; }
.program-duration { color: var(--text-light); font-size: 0.9rem; margin: 10px 0; }

/* News grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-image { height: 200px; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-content { padding: 25px; }
.news-content time { color: var(--text-light); font-size: 0.85rem; }
.news-content h3 { margin: 10px 0; }
.news-content h3 a { color: var(--text); }
.news-content h3 a:hover { color: var(--primary); }

/* Quick links */
.quicklinks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.quicklink-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: all 0.2s; }
.quicklink-card:hover { transform: translateY(-5px); background: var(--primary); color: #fff; }
.quicklink-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.quicklink-card:hover i { color: #fff; }
.quicklink-card h3 { margin-bottom: 10px; }
.quicklink-card:hover h3 { color: #fff; }
.quicklink-card p { font-size: 0.9rem; color: var(--text-light); }
.quicklink-card:hover p { color: rgba(255,255,255,0.8); }

/* CTA Section */
.section-cta { background: var(--primary); color: #fff; text-align: center; }
.cta-content h2 { color: #fff; }
.cta-content p { opacity: 0.9; margin-bottom: 25px; }

/* Program detail */
.program-detail-header { margin-bottom: 40px; }
.program-meta-row { display: flex; gap: 20px; color: var(--text-light); margin-top: 15px; }
.program-detail-content { display: grid; grid-template-columns: 1fr 350px; gap: 40px; }
.program-main { min-width: 0; }
.program-featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.program-featured-image img { width: 100%; }
.program-curriculum { margin-top: 30px; }
.curriculum-list { list-style: none; }
.curriculum-list li { padding: 15px 20px; background: var(--bg-light); margin-bottom: 10px; border-radius: var(--radius); border-left: 3px solid var(--secondary); }
.sidebar-card { background: var(--bg-light); padding: 25px; border-radius: var(--radius); margin-bottom: 20px; }
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 15px; }
.info-list { list-style: none; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }
.coordinator-card { display: flex; align-items: center; gap: 15px; }
.coordinator-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.coordinator-info span { display: block; color: var(--text-light); font-size: 0.9rem; }

/* Article */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.article-header time { color: var(--text-light); }
.article-header h1 { margin: 15px 0; }
.article-author { color: var(--text-light); }
.article-featured-image { margin: 30px 0; border-radius: var(--radius); overflow: hidden; }
.article-featured-image img { width: 100%; }
.article-content { line-height: 1.8; }
.article-content img { max-width: 100%; border-radius: var(--radius); }
.article-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.tag { display: inline-block; background: var(--bg-light); padding: 4px 12px; border-radius: 20px; margin: 5px 5px 0 0; font-size: 0.85rem; }
.article-share { margin-top: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share-btn { padding: 8px 15px; border-radius: var(--radius); font-size: 0.85rem; }
.share-facebook { background: #3b5998; color: #fff; }
.share-twitter { background: #1da1f2; color: #fff; }
.share-whatsapp { background: #25d366; color: #fff; }
.sidebar-widget { background: var(--bg-light); padding: 25px; border-radius: var(--radius); margin-bottom: 20px; }
.related-list { list-style: none; }
.related-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { display: block; }
.related-title { display: block; margin-bottom: 5px; }
.related-date { font-size: 0.8rem; color: var(--text-light); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 400px; gap: 50px; }
.contact-form-wrapper h2 { margin-bottom: 10px; }
.contact-form { margin-top: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.contact-info { background: var(--bg-light); padding: 30px; border-radius: var(--radius); height: fit-content; }
.contact-card { margin-bottom: 30px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-item i { font-size: 1.5rem; color: var(--primary); }
.contact-item strong { display: block; margin-bottom: 5px; }
.social-links-large { display: flex; gap: 15px; }
.social-links-large a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 1.2rem; }
.social-links-large a:hover { background: var(--secondary); color: #fff; }

/* Resources */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.resource-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 25px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: all 0.2s; }
.resource-card:hover { transform: translateY(-5px); }
.resource-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.resource-card h3 { margin-bottom: 10px; color: var(--text); }
.resource-card p { font-size: 0.9rem; color: var(--text-light); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 15px; }
.faq-question { padding: 20px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-question::marker { display: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 20px 20px; line-height: 1.7; }

/* Policies */
.policies-list { display: flex; flex-direction: column; gap: 20px; }
.policy-card { display: flex; align-items: center; gap: 25px; background: #fff; padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); }
.policy-icon { font-size: 2.5rem; color: var(--accent); }
.policy-content { flex: 1; }
.policy-type { display: inline-block; background: var(--bg-light); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; margin-bottom: 10px; }
.policy-content time { display: block; color: var(--text-light); font-size: 0.85rem; margin-top: 10px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.team-photo { height: 250px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder { background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--text-light); }
.team-content { padding: 25px; }
.team-role { display: block; color: var(--secondary); font-weight: 500; margin-bottom: 10px; }
.team-social { margin-top: 15px; }
.team-social a { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; background: var(--bg-light); border-radius: 50%; margin: 0 5px; color: var(--text-light); }
.team-social a:hover { background: var(--primary); color: #fff; }

/* Search */
.search-form-large { display: flex; max-width: 600px; margin: 0 auto 40px; }
.search-form-large input { flex: 1; padding: 15px 20px; border: 2px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); font-size: 1.1rem; }
.search-form-large .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.search-info { margin-bottom: 30px; color: var(--text-light); }
.results-list { display: flex; flex-direction: column; gap: 25px; }
.result-item { background: var(--bg-light); padding: 25px; border-radius: var(--radius); }
.result-type { display: inline-block; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; margin-bottom: 10px; }
.result-item h3 a { color: var(--text); }
.result-link { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--secondary); }

/* 404 */
.section-404 { min-height: 60vh; display: flex; align-items: center; }
.error-page { text-align: center; }
.error-code { font-size: 8rem; font-weight: 700; color: var(--primary); opacity: 0.2; line-height: 1; }
.error-page h1 { margin-top: -30px; }
.error-actions { margin-top: 30px; display: flex; gap: 15px; justify-content: center; }

/* Filters */
.section-filters { background: var(--bg-light); padding: 20px 0; }
.filters-form { display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group label { font-size: 0.85rem; font-weight: 500; }
.filter-group select { padding: 10px 15px; border: 1px solid var(--border); border-radius: var(--radius); min-width: 180px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 40px; }
.pagination a { padding: 8px 15px; background: var(--primary); color: #fff; border-radius: var(--radius); }
.pagination-info { color: var(--text-light); }

/* Account options */
.account-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 40px; }
.account-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 50px 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: all 0.2s; }
.account-card:hover { transform: translateY(-5px); background: var(--primary); }
.account-card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.account-card:hover i { color: #fff; }
.account-card h3 { margin-bottom: 10px; }
.account-card:hover h3 { color: #fff; }
.account-card p { color: var(--text-light); }
.account-card:hover p { color: rgba(255,255,255,0.8); }

/* Alerts */
.alert { padding: 15px 20px; border-radius: var(--radius); margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state i { font-size: 4rem; opacity: 0.3; }
.empty-state h3 { margin: 20px 0 10px; color: var(--text); }

/* Footer */
.footer { background: var(--primary-dark); color: #fff; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { max-width: 150px; margin-bottom: 15px; }
.footer-col h3 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,0.7); margin-bottom: 10px; font-size: 0.9rem; }
.social-links { display: flex; gap: 10px; }
.social-links a { 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.1rem; }
.social-links a:hover { background: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* Content body */
.content-body { line-height: 1.8; }
.content-body h2, .content-body h3 { margin-top: 30px; }
.content-body img { max-width: 100%; border-radius: var(--radius); }
.content-body ul, .content-body ol { margin-left: 20px; margin-bottom: 1em; }
.content-body blockquote { border-left: 4px solid var(--secondary); padding-left: 20px; margin: 20px 0; font-style: italic; color: var(--text-light); }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 30px; }
.mt-5 { margin-top: 40px; }
.mb-5 { margin-bottom: 40px; }
.lead { font-size: 1.2rem; }

/* Icons (placeholder - usar iconos reales) */
[class^="icon-"]::before { content: "◆"; margin-right: 5px; }

/* Responsive */
@media (max-width: 992px) {
    .program-detail-content { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .article-sidebar { order: 2; }
}

@media (max-width: 768px) {
    .topbar-content { justify-content: center; }
    .topbar-contact { display: none; }
    .header-content { flex-wrap: wrap; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); padding: 20px; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; }
    .menu-toggle { display: block; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .header-search { display: none; }
    .hero h1 { font-size: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    .section { padding: 50px 0; }
}
