
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* =========================================
   VARIABLES GENERALES
========================================= */

:root {
    --navy: #102c50;
    --teal: #078b92;
    --aqua: #dff4f3;
    --ink: #203349;
    --muted: #64748b;
    --line: #e1e9ef;
    --paper: #fff;
    --bg: #f7fafc;
    --purple: #6755a6;
}

/* =========================================
   CONFIGURACION GENERAL
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   ENCABEZADO
========================================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 5;
}

.header-inner {
    max-width: 1180px;
    margin: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 270px;
    max-width: 390px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    display: inline-block;
    background: linear-gradient(
        145deg,
        #20c4b7 0%,
        #078bba 48%,
        #5542a2 75%,
        #763bb4 100%
    );
    flex-shrink: 0;
}

.brand-sun {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    top: 10px;
    left: 12px;
    box-shadow:
        0 -6px 0 -5px #fff,
        0 6px 0 -5px #fff,
        6px 0 0 -5px #fff,
        -6px 0 0 -5px #fff;
}

.brand-moon {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    bottom: 8px;
    right: 8px;
}

.brand-moon:after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #5446a4;
    top: -4px;
    left: 6px;
}

.brand-copy strong {
    display: block;
    font: 800 23px/1.15 Manrope, sans-serif;
    letter-spacing: -.8px;
    color: var(--navy);
}

.brand-copy em {
    font-style: normal;
    color: var(--teal);
}

.brand-copy small {
    display: block;
    font-size: 10px;
    color: #607184;
    letter-spacing: .05px;
    margin-top: 4px;
}

/* Logotipo adjunto */

.brand-logo {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

.brand-mark,
.brand-copy {
    display: none;
}

/* =========================================
   MENU DE NAVEGACION
========================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 600;
    color: #35475b;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--teal);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--navy);
    font: 600 14px inherit;
}

/* =========================================
   HERO PRINCIPAL
========================================= */

.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 66px 24px 58px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 44px;
    align-items: center;
}

.hero-copy {
    max-width: 610px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--teal);
}

h1,
h2,
h3 {
    font-family: Manrope, "DM Sans", sans-serif;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -.6px;
}

h1 {
    font-size: clamp(36px, 4.2vw, 56px);
    margin: 16px 0 18px;
    font-weight: 800;
}

.hero-copy > p {
    font-size: 17px;
    max-width: 570px;
    color: #516579;
    margin: 0 0 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================
   BOTONES
========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
    transition: transform .15s, background .15s;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--teal);
    color: #fff;
}

.button-outline {
    border: 1px solid #b8d8dc;
    color: var(--navy);
    background: #fff;
}

.button-light {
    background: #fff;
    color: var(--navy);
    white-space: nowrap;
}

.notice {
    font-size: 11px !important;
    color: #7b8997 !important;
    line-height: 1.55;
    margin-top: 24px !important;
}

/* =========================================
   ILUSTRACION HERO
========================================= */

.hero-art {
    min-height: 330px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 27% 25%, #c4f2e9 0, transparent 33%),
        linear-gradient(135deg, #eaf9f7, #e9effc 62%, #f3eafa);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(8, 139, 146, .16);
    border-radius: 50%;
    width: 280px;
    height: 280px;
}

.orbit-one {
    transform: translate(-20px, 18px);
}

.orbit-two {
    width: 220px;
    height: 220px;
    transform: translate(22px, -10px);
}

.sun {
    width: 125px;
    height: 125px;
    position: absolute;
    left: calc(50% - 100px);
    top: 75px;
    border-radius: 50%;
    background: linear-gradient(145deg, #25c9b3, #078db5);
    box-shadow: 0 20px 45px #159caa38;
}

.moon {
    width: 125px;
    height: 125px;
    position: absolute;
    right: calc(50% - 100px);
    bottom: 67px;
    border-radius: 50%;
    background: linear-gradient(145deg, #6454b3, #473c8e);
    box-shadow: 0 20px 45px #55439b35;
}

.moon:after {
    content: "";
    position: absolute;
    right: 26px;
    top: 15px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #eaf0fb;
}

.art-caption {
    position: absolute;
    bottom: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #425b79;
    line-height: 1.5;
}

/* =========================================
   SECCIONES
========================================= */

.section {
    max-width: 1180px;
    margin: auto;
    padding: 40px 24px 54px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: 30px;
    margin: 7px 0 0;
}

.section-heading > p {
    max-width: 390px;
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* =========================================
   TARJETAS DE TEMAS
========================================= */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.topic-card {
    display: block;
    padding: 23px 21px 21px;
    border: 1px solid var(--line);
    border-radius: 16px;
    min-height: 218px;
    transition: transform .18s, box-shadow .18s;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px #18314b0d;
}

.topic-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 27px;
    margin-bottom: 17px;
}

.topic-card h3 {
    font-size: 18px;
    margin: 0 0 9px;
}

.topic-card p {
    font-size: 13px;
    color: #607184;
    margin: 0 0 16px;
    line-height: 1.6;
}

.topic-blue {
    background: #f4fafc;
}

.topic-blue .topic-icon {
    background: #e1f2f8;
    color: #087fa1;
}

.topic-purple {
    background: #faf8ff;
}

.topic-purple .topic-icon {
    background: #eee9fb;
    color: #6553a7;
}

.topic-green {
    background: #f5fbf7;
}

.topic-green .topic-icon {
    background: #e3f4e9;
    color: #28734c;
}

.topic-amber {
    background: #fffbf4;
}

.topic-amber .topic-icon {
    background: #fff0d8;
    color: #a3651d;
}

.text-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
}

/* =========================================
   ARTICULOS RECIENTES
========================================= */

.latest {
    padding-top: 15px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.article-card {
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.article-category {
    font-size: 11px;
    color: var(--teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.article-card h3 {
    font-size: 19px;
    margin: 12px 0;
}

.article-card p {
    font-size: 13px;
    color: var(--muted);
}

/* =========================================
   ESTADO VACIO
========================================= */

.empty-state {
    padding: 28px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px dashed #cbd8e2;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* =========================================
   BANDA DE APOYO
========================================= */

.support-band {
    max-width: 1132px;
    margin: 10px auto 65px;
    border-radius: 22px;
    padding: 34px 38px;
    background: linear-gradient(110deg, #102c50, #164c69);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
}

.support-band .eyebrow {
    color: #8fe0d7;
}

.support-band h2 {
    color: #fff;
    font-size: 28px;
    margin: 8px 0;
}

.support-band p {
    color: #d5e4ed;
    margin: 0;
    font-size: 14px;
}

/* =========================================
   PIE DE PAGINA
========================================= */

.site-footer {
    background: #f4f7fa;
    border-top: 1px solid var(--line);
}

.footer-inner {
    max-width: 1180px;
    margin: auto;
    padding: 34px 24px 25px;
}

.footer-brand {
    font: 800 20px Manrope, sans-serif;
    color: var(--navy);
}

.footer-inner p {
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.footer-links a {
    font-size: 13px;
    color: #40556a;
}

.disclaimer {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 12px !important;
}

.footer-inner small {
    color: #8290a0;
    font-size: 11px;
}

/* =========================================
   SLIDER PRINCIPAL
========================================= */

.slider {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 62px 48px;
    overflow: hidden;
}

.slides {
    position: relative;
}

.slide {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 35px;
    min-height: 355px;
    animation: slideFade .35s ease;
}

.slide[hidden] {
    display: none;
}

.slide-copy {
    padding: 20px 0;
    max-width: 560px;
}

.slide h1 {
    font-size: clamp(34px, 4vw, 51px);
    margin: 15px 0 18px;
}

.slide-copy p {
    font-size: 16px;
    max-width: 530px;
    color: #516579;
    margin: 0 0 24px;
}

.slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.slide-image img {
    display: block;
    width: 100%;
    max-width: 510px;
    height: auto;
    max-height: 335px;
    object-fit: contain;
    border-radius: 22px;
}

/* =========================================
   FLECHAS DEL SLIDER
========================================= */

.slider-arrow {
    position: absolute;
    z-index: 2;
    top: 46%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #d6e3eb;
    background: #fff;
    color: var(--navy);
    font-size: 19px;
    cursor: pointer;
    box-shadow: 0 4px 16px #16334a12;
    display: grid;
    place-items: center;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

/* =========================================
   INDICADORES DEL SLIDER
========================================= */

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 16px 0 0;
}

.slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c6d5e1;
    cursor: pointer;
}

.slider-dot.is-active {
    width: 28px;
    border-radius: 8px;
    background: var(--teal);
}

.slider-notice {
    text-align: center;
    font-size: 11px;
    color: #7b8997;
    margin: 18px 0 0;
}

.slider .hero-actions {
    margin-top: 8px;
}

/* =========================================
   ANIMACION
========================================= */

@keyframes slideFade {
    from {
        opacity: .35;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   CARRUSEL DE ARTICULOS PUBLICADOS
========================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.homepage-main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.homepage-main .hero-slider {
    width: 100%;
    max-width: 100%;
    left: 0;
    transform: none;
}

.homepage-main .published-carousel {
    margin-top: 45px;
    padding: 30px;
    border-radius: 18px;
    background: #eaf2f6;
    position: relative;
}

.homepage-main .published-carousel h2 {
    text-align: center;
    margin: 0 0 25px;
    color: #183451;
}

.homepage-main .published-slide {
    display: none;
    min-height: 210px;
    padding: 30px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px #18345112;
}

.homepage-main .published-slide.active {
    display: block;
    animation: homeFade .5s ease;
}

.homepage-main .published-slide h3 {
    color: #183451;
    font-size: 1.5rem;
    margin: 12px 0;
}

.homepage-main .published-slide p {
    color: #536a7c;
    line-height: 1.7;
}

.homepage-main .published-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.homepage-main .published-controls button {
    cursor: pointer;
    border: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    background: #164e78;
    color: white;
    font-size: 20px;
}

.homepage-main .published-dots {
    display: flex;
    gap: 8px;
}

.homepage-main .published-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    background: #9aafbd;
}

.homepage-main .published-dots button.active {
    background: #164e78;
}

/* =========================================
   MARGEN GENERAL DE PAGINAS INTERIORES
========================================= */

main:not(.homepage-main) {
    width: 100%;
    max-width: 1180px;
    margin: 40px auto 60px;
    padding-left: 24px;
    padding-right: 24px;
}

/* La pagina de inicio conserva su diseño */

.homepage-main {
    margin-top: 0;
}

/* =========================================
   TABLETS
========================================= */

@media (max-width: 1020px) {

    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 0;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 10px 0;
        width: 100%;
        border-top: 1px solid var(--line);
    }

    .hero {
        gap: 25px;
        padding-top: 45px;
    }

    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand {
        min-width: 220px;
        max-width: 320px;
    }

    .brand-logo {
        max-height: 64px;
    }

    .slider {
        padding: 32px 52px 42px;
    }

    .slide {
        gap: 22px;
        min-height: 320px;
    }

    .slide h1 {
        font-size: clamp(30px, 4vw, 42px);
    }

}

/* =========================================
   CELULARES
========================================= */

@media (max-width: 680px) {

    .header-inner {
        padding: 12px 16px;
    }

    .brand {
        max-width: 245px;
        min-width: 0;
        gap: 9px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .brand-copy small {
        font-size: 9px;
    }

    .brand-logo {
        max-height: 58px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 38px 18px 25px;
        gap: 25px;
    }

    .hero-art {
        min-height: 260px;
    }

    .sun {
        width: 100px;
        height: 100px;
        left: calc(50% - 78px);
        top: 53px;
    }

    .moon {
        width: 100px;
        height: 100px;
        right: calc(50% - 78px);
        bottom: 57px;
    }

    .section {
        padding: 32px 18px 38px;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .section-heading > p {
        margin-top: 12px;
    }

    .topic-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .topic-card {
        min-height: 0;
    }

    .support-band {
        margin: 0 18px 38px;
        padding: 27px 23px;
        display: block;
    }

    .support-band h2 {
        font-size: 24px;
    }

    .support-band .button {
        margin-top: 20px;
    }

    .footer-inner {
        padding: 28px 18px 22px;
    }

    .slider {
        padding: 28px 42px 34px;
    }

    .slide {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
    }

    .slide-copy {
        padding: 8px 0 0;
    }

    .slide h1 {
        font-size: 34px;
        margin: 12px 0;
    }

    .slide-copy p {
        font-size: 15px;
    }

    .slide-image img {
        max-height: 220px;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }

    .slider-notice {
        font-size: 10px;
    }

    .slider-dots {
        margin-top: 12px;
    }

    /* Margenes de las paginas interiores */

    main:not(.homepage-main) {
        margin-top: 25px;
        margin-bottom: 40px;
        padding-left: 18px;
        padding-right: 18px;
    }
	
	.articulo-estadisticas {
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
}

.articulo-estadisticas span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =================================
   COMUNIDAD MUNDO BIPOLAR
================================= */

.comunidad-container {
    width: 100%;
    max-width: 760px;
    margin: 55px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.registro-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 5px 25px rgba(16, 44, 80, 0.10);
    border: 1px solid #e5eaf0;
}

.registro-card h1 {
    color: #102c50;
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
}

.registro-card > p {
    color: #526174;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 28px;
}

.registro-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.registro-card label {
    color: #102c50;
    font-weight: 600;
    margin-top: 12px;
}

.registro-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccd5df;
    border-radius: 7px;
    font-size: 16px;
    box-sizing: border-box;
}

.registro-card input:focus {
    outline: none;
    border-color: #608c05;
    box-shadow: 0 0 0 3px rgba(96, 140, 5, 0.12);
}

.registro-card .registro-aviso {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
    margin-top: 20px;
}

.registro-card button {
    background: #608c05;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
}

.registro-card button:disabled {
    background: #87977a;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .comunidad-container {
        margin: 25px auto;
        padding: 0 12px;
    }

    .registro-card {
        padding: 22px 17px;
    }

    .registro-card h1 {
        font-size: 23px;
    }
/* Imagen principal responsiva - Mundo Bipolar */
.mb-image-responsive {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 25px;
    text-align: center;
    overflow: hidden;
}

.mb-image-responsive img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 12px;
}

/* Adaptación para celulares */
@media (max-width: 768px) {
    .mb-image-responsive {
        width: 100%;
        margin-bottom: 18px;
    }

    .mb-image-responsive img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
}

}

/* =========================================
   FIN DEL ARCHIVO
========================================= */
