/* ============================================
           VARIABLES — Cibernarium / Barcelona Activa
           ============================================ */
:root {
    --ba-red: #E4002B;
    --ba-red-dark: #B8001F;
    --ba-red-light: #FF1A45;
    --ba-magenta: #D6006E;
    --ba-dark: #1D1D1B;
    --ba-grey-900: #2C2C2C;
    --ba-grey-700: #555555;
    --ba-grey-500: #888888;
    --ba-grey-300: #CCCCCC;
    --ba-grey-100: #F4F4F4;
    --ba-white: #FFFFFF;
    --ba-bg-warm: #FAF9F7;
    --ba-accent-teal: #00838F;
    --ba-accent-orange: #F57C00;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
    --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    color: var(--ba-dark);
    background: var(--ba-bg-warm);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ba-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ba-red-dark); }

img { max-width: 100%; display: block; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--ba-white);
    border-bottom: 3px solid var(--ba-red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-brand img {
    height: 40px;
    width: auto;
}

.header-brand .brand-sep {
    width: 1px;
    height: 30px;
    background: var(--ba-grey-300);
}

.header-brand .brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ba-dark);
    letter-spacing: -.01em;
}

.header-brand .brand-text span {
    color: var(--ba-red);
}

.header-nav {
    display: flex;
    gap: 6px;
}

.header-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    color: var(--ba-grey-700);
    transition: all var(--transition);
}

.header-nav a:hover {
    background: var(--ba-grey-100);
    color: var(--ba-red);
}

.header-nav a.active {
    background: var(--ba-red);
    color: var(--ba-white);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--ba-red) 0%, var(--ba-magenta) 100%);
    color: var(--ba-white);
    padding: 80px 24px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--ba-bg-warm);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,.25);
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.hero p {
    font-size: 1.15rem;
    opacity: .92;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-size: 2rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.hero-stat .label {
    font-size: .82rem;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 4px;
}

/* ============================================
   NAVIGATION PILLS
   ============================================ */
.section-nav {
    max-width: 1140px;
    margin: -28px auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.session2-nav{
    margin-top:2rem;
}

.section-nav-inner {
    background: var(--ba-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ba-grey-700);
    background: var(--ba-grey-100);
    border: 2px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
}

.nav-pill:hover {
    border-color: var(--ba-red);
    color: var(--ba-red);
    background: var(--ba-white);
    transform: translateY(-1px);
}

.nav-pill .pill-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-area {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.content-area-ia {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.section-block {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ba-grey-100);
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-icon.pptx { background: #FFF3E0; color: #E65100; }
.section-icon.docx { background: #E3F2FD; color: #1565C0; }
.section-icon.code { background: #E8F5E9; color: #2E7D32; }
.section-icon.tools { background: #FCE4EC; color: #C62828; }

.section-title h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ba-dark);
    line-height: 1.25;
}

.section-title h2 small {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .82rem;
    font-weight: 400;
    color: var(--ba-grey-500);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--ba-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,.04);
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--ba-grey-100);
}

.card-header .card-number {
    display: inline-block;
    background: var(--ba-red);
    color: var(--ba-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
    line-height: 28px;
    margin-bottom: 10px;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ba-dark);
    margin-bottom: 4px;
}

.card-header .card-desc {
    font-size: .88rem;
    color: var(--ba-grey-500);
    line-height: 1.5;
}

.card-body {
    padding: 16px 24px 20px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    transition: all var(--transition);
    margin-bottom: 6px;
}

.download-link:last-child { margin-bottom: 0; }

.download-link:hover {
    background: var(--ba-grey-100);
}

.download-link .dl-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.dl-icon.pptx { background: #FFF3E0; color: #E65100; }
.dl-icon.docx { background: #E3F2FD; color: #1565C0; }
.dl-icon.zip  { background: #E8F5E9; color: #2E7D32; }
.dl-icon.html { background: #F3E5F5; color: #7B1FA2; }
.dl-icon.pdf  { background: #FCE4EC; color: #C62828; }
.dl-icon.tool { background: #FFF8E1; color: #F57F17; }

.download-link .dl-info {
    flex: 1;
}

.download-link .dl-info .dl-name {
    color: var(--ba-dark);
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.download-link .dl-info .dl-meta {
    font-size: .78rem;
    color: var(--ba-grey-500);
    font-weight: 400;
}

.download-link .dl-arrow {
    color: var(--ba-grey-300);
    font-size: 1.2rem;
    transition: all var(--transition);
}

.download-link:hover .dl-arrow {
    color: var(--ba-red);
    transform: translateX(3px);
}

/* ============================================
   CODE SECTION — special layout with screenshot
   ============================================ */
.code-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.screenshot-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--ba-grey-100);
    font-size: .88rem;
    font-weight: 600;
    color: var(--ba-dark);
    transition: all var(--transition);
    border: 1px dashed var(--ba-grey-300);
}

.screenshot-link:hover {
    border-color: var(--ba-red);
    background: #FFF5F5;
}

/* ============================================
   TOOLS / MANUALS SECTION
   ============================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--ba-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,.04);
    transition: all var(--transition);
}

.tool-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.tool-card .tool-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.tool-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tool-card p {
    font-size: .85rem;
    color: var(--ba-grey-500);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tool-card .tool-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ba-red);
    padding: 6px 14px;
    border-radius: 50px;
    background: #FFF0F0;
    transition: all var(--transition);
}

.tool-card .tool-dl:hover {
    background: var(--ba-red);
    color: var(--ba-white);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--ba-dark);
    color: rgba(255,255,255,.6);
    padding: 40px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-inner .footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-inner .footer-brand img {
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: .7;
}

.footer-inner .footer-brand span {
    font-weight: 600;
    color: rgba(255,255,255,.8);
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,.5);
    font-size: .88rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--ba-white); }

.footer-copy {
    font-size: .82rem;
    opacity: .5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .hero { padding: 56px 20px 50px; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 1.5rem; }
    .section-nav-inner { padding: 12px 16px; gap: 6px; }
    .nav-pill { padding: 8px 14px; font-size: .82rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-block {
    animation: fadeUp .6s ease both;
}

.section-block:nth-child(1) { animation-delay: .1s; }
.section-block:nth-child(2) { animation-delay: .2s; }
.section-block:nth-child(3) { animation-delay: .3s; }
.section-block:nth-child(4) { animation-delay: .4s; }

hr{
    position: relative;
    margin-bottom: .1rem;
}

.titulo-seccion{
    position: relative;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    clear: both;
}

.document-conjuntos{
    position:relative;
    background: #fff;
    min-width:2rem;
    height:auto;
    margin-top:4rem;
}

.document-conjuntos h4{
    padding-left:1rem;
    padding-top:1rem;
}

.conjunto{
    position:relative;
    background: #fff;
    width: 30%;
    padding: 1rem;

}

/* tabla */
.responstable {
    margin: 1em 0;
    width: 100%;
    overflow: hidden;
    background: #FFF;
    color: #024457;
    border-radius: 10px;
    border: 1px solid var(--ba-red);
}
.responstable tr {
    border: 1px solid #D9E4E6;
}
.responstable tr:nth-child(odd) {
    background-color: #EAF3F3;
}
.responstable th {
    display: none;
    border: 1px solid #FFF;
    background-color: var(--ba-red);
    color: #FFF;
    padding: 1em;
    border-radius: 8px;
}
.responstable th:first-child {
    display: table-cell;
    text-align: center;
}
.responstable th:nth-child(2) {
    display: table-cell;
}
.responstable th:nth-child(2) span {
    display: none;
}
.responstable th:nth-child(2):after {
    content: attr(data-th);
}
@media (min-width: 480px) {
    .responstable th:nth-child(2) span {
        display: block;
    }
    .responstable th:nth-child(2):after {
        display: none;
    }
}
.responstable td {
    display: block;
    word-wrap: break-word;
    max-width: 7em;
}
.responstable td:first-child {
    display: table-cell;
    text-align: center;
    border-right: 1px solid #D9E4E6;
}
@media (min-width: 480px) {
    .responstable td {
        border: 1px solid #D9E4E6;
    }
}
.responstable th, .responstable td {
    text-align: left;
    margin: .5em 1em;
}
@media (min-width: 480px) {
    .responstable th, .responstable td {
        display: table-cell;
        padding: 1em;
    }
}

body {
    padding: 0 2em;
    font-family: Arial, sans-serif;
    color: #024457;
    background: #f2f2f2;
}

h1 {
    font-family: Verdana;
    font-weight: normal;
    color: #024457;
}
h1 span {
    color: #167F92;
}
