/* ============================================================
   main.css — estilos globales de CIBIOGEN
   Unifica prueba.css + fusion.css + estilos.css + login.
   Todos los colores salen de css/theme.css (3 temas).
   ============================================================ */

/* --reset-- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --base-- */
body {
    background: var(--bg-body);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    overflow-x: hidden;
    color: var(--text-hi);
    transition: background 0.4s ease, color 0.4s ease;
}

a { color: var(--accent-1); }

img { max-width: 100%; }

/* --cabecera (header) -- */
.cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 14px 40px;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 900;
}

.cabecera-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.cabecera-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
}

.cabecera-brand h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-hi);
    margin: 0;
    letter-spacing: 0.03em;
}

.cabecera-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.cabecera-nav a {
    color: var(--text-lo);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.cabecera-nav a:hover {
    color: var(--text-hi);
    border-bottom-color: var(--accent-1);
}

.cabecera-nav a[aria-current="page"] {
    color: var(--text-hi);
    border-bottom-color: var(--accent-1);
}

@media (max-width: 700px) {
    .cabecera {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 20px;
    }
    .cabecera-nav {
        gap: 16px;
    }
}

/* --acciones de cabecera (login + tema) --
   Viven dentro del header, no flotan sobre el contenido. */
.cabecera-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.top-right-login {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-hi);
    background: var(--btn-grad);
    border: 1px solid var(--accent-border);
    transition: background 0.2s ease, transform 0.2s ease;
}

.top-right-login:hover {
    background: var(--cta-grad);
    transform: translateY(-2px);
}

/* --botón de tema (en cabecera; variante flotante solo si no hay header) -- */
.theme-toggle {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--accent-border);
    background: var(--btn-grad);
    color: var(--text-hi);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.theme-toggle:hover {
    background: var(--cta-grad);
    transform: translateY(-2px);
}

.theme-toggle--float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
}

@media (max-width: 600px) {
    .theme-toggle--float { right: 12px; bottom: 12px; }
}

@media (max-width: 700px) {
    .cabecera-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* --main / hero sináptico -- */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
}

.arc-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 520px;
}

.arc-container::before,
.arc-container::after {
    content: "";
    position: absolute;
    top: 42%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed var(--line);
    pointer-events: none;
    z-index: 0;
}

.arc-container::before {
    width: 460px;
    height: 460px;
    transform: translate(-50%, -50%);
    animation: spin 100s linear infinite;
}

.arc-container::after {
    width: 680px;
    height: 680px;
    border-color: var(--line-soft);
    transform: translate(-50%, -50%);
    animation: spin 160s linear infinite reverse;
}

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

#synapse-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.main-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: var(--surface-b);
    box-shadow: var(--shadow-card), 0 0 90px var(--glow-faint);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 6px solid var(--ring);
    z-index: 10;
}

.main-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 11;
}

.main-logo::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--logo-halo), var(--glow-faint));
    filter: blur(18px);
    z-index: 9;
    pointer-events: none;
}

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

.child-logo {
    width: 140px;
    height: 140px;
    background: var(--cta-grad);
    border-radius: 50%;
    box-shadow: var(--shadow-card), inset 0 0 18px var(--glow-faint);
    cursor: pointer;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.child-logo:hover {
    transform: translateY(-4px) scale(1.09);
    filter: brightness(1.12) drop-shadow(0 0 28px var(--glow-soft));
}

.child-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.child-wrapper.child-1 { top: 28%; left: 15%; }
.child-wrapper.child-2 { top: 82%; left: 40%; }
.child-wrapper.child-3 { top: 82%; left: 60%; }
.child-wrapper.child-4 { top: 28%; left: 85%; }

.child-label {
    display: block;
    color: var(--accent-2);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
    text-align: center;
    text-shadow: var(--text-shadow);
    max-width: 160px;
    transform: translateY(4px);
}

/* --carrusel de servicios -- */
.carousel-section {
    width: 100%;
    padding: 2rem 0;
    background: var(--fade-top);
    border-top: 1px solid var(--line);
}

.carousel-container {
    display: flex;
    gap: 36px;
    padding: 1.5rem 2.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
    user-select: none;
}

.carousel-item {
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg, var(--accent-4), var(--accent-3));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card), inset 0 2px 4px rgba(255, 255, 255, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item-wrapper:hover .carousel-item {
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--shadow-hover), inset 0 2px 6px rgba(255, 255, 255, 0.03);
}

.carousel-icon {
    width: 58px;
    height: 58px;
    stroke: rgba(255, 255, 255, 0.92);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.carousel-label {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-shadow: var(--text-shadow);
    color: var(--accent-4);
    text-align: center;
    max-width: 170px;
    font-family: var(--font-body);
}

/* --secciones generales -- */
.seccion {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    width: 100%;
}

.seccion h2 {
    text-align: center;
    margin-bottom: 20px;
}

.seccion hr {
    border: none;
    height: 0;
}

.tituloglobo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.tituloglobo h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-hi);
    margin: 0;
    padding-bottom: 16px;
    position: relative;
    text-align: center;
}

.tituloglobo h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 2px;
    background: var(--accent-1);
}

/* --tarjeta "Quiénes Somos" -- */
.grindgral {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: 20px;
}

.grindgral p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    text-align: justify;
    color: var(--text-lo);
}

.grindgral p strong {
    color: var(--text-hi);
}

.cartagral {
    background: var(--surface-a);
    color: var(--text-hi);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0;
    box-shadow: var(--shadow-card);
}

.cartagral img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
    border: none;
    filter: saturate(0.95) contrast(1.06) brightness(0.98);
    display: block;
}

.creative-card { display: flex; gap: 0; overflow: hidden; border-radius: 16px; }
.creative-card .card-media { flex: 0 0 44%; min-height: 220px; position: relative; }
.creative-card .card-media img { height: 100%; width: 100%; display: block; }
.creative-card .card-body { flex: 1; padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.card-title { font-family: var(--font-display); font-size: 1.25rem; margin: 0; color: var(--text-hi); letter-spacing: 0; -webkit-font-smoothing: antialiased; }
.muted { color: var(--text-lo); font-size: 0.98rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.card-meta .meta-item {
    background: var(--btn-grad);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-hi);
    font-size: 0.9rem;
    border: 1px solid var(--accent-tint);
}
.creative-card { transition: transform 0.28s ease, box-shadow 0.28s ease; }
.creative-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

/* --banner "Libros Gratis" -- */
.libros-banner {
    max-width: 1200px;
    margin: 28px auto;
    padding: 18px;
    border-radius: 12px;
    background: var(--btn-grad);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--accent-tint);
}
.libros-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.libros-inner h3 { margin: 0; color: var(--text-hi); font-family: var(--font-display); font-size: 1.2rem; }
.libros-inner p { margin: 0; color: var(--text-lo); flex: 1; padding-right: 12px; }
.libros-cta {
    display: inline-block;
    padding: 10px 16px;
    background: var(--cta-grad);
    color: var(--text-hi);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: var(--shadow-card);
}
.libros-cta:hover { transform: translateY(-3px); }

.libros-grid { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 0 6px 12px 6px; }
.libro-item {
    display: block;
    flex: 0 0 110px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.libro-item img { width: 100%; height: 150px; object-fit: cover; display: block; }
.libro-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* --asesores -- */
.gridasesores { display: grid; gap: 20px; }

.asesor {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    background: var(--surface-c);
    padding: 20px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.asesor img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent-tint);
    box-shadow: 0 0 0 6px var(--card-border);
}

.asesor h3 { font-family: var(--font-display); color: var(--text-hi); font-size: 1.15rem; }
.asesor p { color: var(--text-lo); font-family: var(--font-body); line-height: 1.6; }
.asesor:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.flecha { display: flex; justify-content: flex-end; padding: 4px 24px 12px; }
.flecha a {
    background: var(--btn-grad);
    color: var(--text-hi);
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    transition: background 0.2s ease, transform 0.2s ease;
}
.flecha a:hover { background: var(--cta-grad); transform: translateY(-2px); }

/* --slider de artículos (portada) -- */
.slider {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface-a);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.track {
    display: flex;
    transition: transform 0.8s ease;
}

.slide {
    min-width: 33.333%;
    padding: 10px;
}

.slide a { display: block; }

.slide img {
    width: 100%;
    aspect-ratio: 210 / 297;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    filter: saturate(0.95) contrast(1.05);
}

/* --hero "Investigación y Futuro" -- */
.titulo-hero {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background: var(--fade-bottom);
    border-bottom: 1px solid var(--line);
}

.titulo-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-hi);
    margin: 0 0 12px;
    text-shadow: var(--text-shadow);
}

.titulo-hero h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-lo);
    margin: 0 0 16px;
}

/* --CTA (botón destacado) -- */
.tituloenlace {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cta-grad);
    padding: 11px 22px;
    border-radius: 50px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.tituloenlace a {
    color: var(--text-hi);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-body);
}

/* --sección "Únete" -- */
.titulo2 {
    text-align: center;
    padding: 50px 20px;
    background: var(--btn-grad);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.titulo2 h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--text-hi);
    margin: 0 0 10px;
}

.titulo2 h3 {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-lo);
    margin: 14px 0 0;
}

/* --asociados -- */
.tituloasociados {
    text-align: center;
    padding: 36px 20px 8px;
}

.tituloasociados h1 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-hi);
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.tituloasociados h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 2px;
    background: var(--accent-1);
}

.asociados {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 20px 20px 44px;
}

.asociado {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    max-width: 820px;
    width: 100%;
    background: var(--surface-a);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.asociado:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.asociado-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.asociado-logo {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-c);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.asociado a:hover .asociado-logo {
    transform: scale(1.04);
}

.asociado-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.asociado-body h3 {
    font-family: var(--font-display);
    color: var(--text-hi);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.asociado-role {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-1);
    margin-bottom: 12px;
}

.asociado-body p {
    color: var(--text-lo);
    font-family: var(--font-body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.asociado-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.asociado-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-hi);
    background: var(--btn-grad);
    border: 1px solid var(--accent-border);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.asociado-links a:hover {
    background: var(--cta-grad);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 600px) {
    .asociado { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .asociado .card-meta { justify-content: center; }
    .asociado-links { justify-content: center; }
    .asociado-logo { width: 120px; height: 120px; }
}

/* --panel admin -- */
.admin-main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-seccion {
    width: 100%;
    max-width: 980px;
}

.admin-intro {
    color: var(--text-lo);
    line-height: 1.6;
    margin-bottom: 20px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.admin-upload {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--text-hi);
    background: var(--cta-grad);
    border: 1px solid var(--accent-border);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.admin-reset {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-lo);
    background: var(--surface-c);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-reset:hover {
    background: var(--danger-tint, rgba(255, 80, 80, 0.15));
    color: var(--danger, #ff6b6b);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.admin-card {
    background: var(--surface-a);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.admin-card img {
    width: 100%;
    aspect-ratio: 210 / 297;
    object-fit: cover;
    display: block;
    background: var(--surface-c);
}

.admin-card-actions {
    padding: 10px;
}

.admin-remove {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-lo);
    background: var(--surface-c);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-remove:hover {
    background: var(--danger-tint, rgba(255, 80, 80, 0.15));
    color: var(--danger, #ff6b6b);
}

.admin-empty {
    text-align: center;
    color: var(--text-lo);
    padding: 30px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--surface-a);
}

@media (max-width: 600px) {
    .admin-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* --footer -- */
.site-footer {
    width: 100%;
    background: var(--surface-glass);
    border-top: 1px solid var(--line);
    color: var(--text-lo);
    padding: 48px 20px 18px;
    margin-top: auto;
    box-shadow: inset 0 1px 0 var(--line-soft);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 28px;
    align-items: start;
}

.site-footer-section h3 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-hi);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer-section p,
.site-footer-section li,
.site-footer-section a {
    color: var(--text-lo);
    font-family: var(--font-body);
    font-size: 0.96rem;
    line-height: 1.7;
}

.site-footer-section p {
    margin: 0;
}

.site-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.site-footer-section a {
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.site-footer-section a:hover,
.site-footer-section a:focus-visible {
    opacity: 1;
    color: var(--text-hi);
}

.contact-list {
    display: grid;
    gap: 10px;
}

.dev-list {
    display: grid;
    gap: 12px;
}

.dev-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface-b);
    border: 1px solid var(--line-soft);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dev-card:hover {
    background: var(--accent-tint);
    transform: translateY(-2px);
}

.dev-card img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-tint);
}

.dev-card span {
    color: var(--text-hi);
    font-weight: 600;
    font-family: var(--font-display);
}

.footer-bottom {
    max-width: 1200px;
    margin: 22px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-lo);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .site-footer {
        padding-top: 36px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-footer-section h3 {
        font-size: 0.96rem;
    }
}

/* --grid de artículos (página Artículos) -- */
.gridarticulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 20px;
}

.carta {
    background: var(--surface-a);
    color: var(--text-hi);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 15px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carta img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.carta h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-align: left;
    color: var(--text-hi);
    margin: 12px 0 4px;
}

.carta time {
    color: var(--text-lo);
    font-size: 0.85rem;
}

.carta p {
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: justify;
    color: var(--text-lo);
    margin-top: 8px;
}

.carta:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* --página "en progreso" -- */
.chamba {
    text-align: center;
    padding: 40px 20px;
}

.chamba h1 {
    font-family: var(--font-display);
    color: var(--text-hi);
    margin-bottom: 16px;
}

.chamba img {
    max-width: 260px;
    border-radius: 12px;
}

/* --responsive: hero sináptico y carrusel -- */
@media (max-width: 900px) {
    .arc-container { height: 420px; }
    .arc-container::before { width: 340px; height: 340px; }
    .arc-container::after { width: 500px; height: 500px; }
    .main-logo { width: 180px; height: 180px; }
    .child-logo { width: 110px; height: 110px; }
    .carousel-item { width: 120px; height: 120px; }
    .carousel-icon { width: 42px; height: 42px; }
    .carousel-label { font-size: 0.9rem; }
    .child-label { font-size: 0.9rem; }
    .creative-card { flex-direction: column; }
    .creative-card .card-media { flex-basis: 42%; min-height: 160px; }
    .creative-card .card-media img { border-radius: 8px 8px 0 0; }
    .creative-card .card-body { padding: 18px; }
    .libros-inner { flex-direction: column; align-items: flex-start; }
    .libros-inner p { padding-right: 0; }
    .libros-cta { margin-top: 10px; }
}

@media (max-width: 768px) {
    .slide { min-width: 50%; }
}

@media (max-width: 700px) {
    .libros-grid { flex-wrap: wrap; }
    .libro-item { flex: 0 0 44%; height: auto; }
    .libro-item img { height: 140px; }
}

@media (max-width: 600px) {
    .arc-container { height: 320px; }
    .arc-container::before { width: 240px; height: 240px; }
    .arc-container::after { width: 340px; height: 340px; }
    .main-logo { width: 140px; height: 140px; }
    .child-logo { width: 80px; height: 80px; }
    .carousel-item { width: 90px; height: 90px; }
    .carousel-icon { width: 32px; height: 32px; }
    .carousel-label { font-size: 0.8rem; }
    .child-label { font-size: 0.8rem; }
    .asesor { grid-template-columns: 1fr; text-align: center; }
    .asesor img { margin: auto; }
}

@media (max-width: 480px) {
    .slide { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .child-logo,
    .arc-container::before,
    .arc-container::after {
        animation: none !important;
    }
}