/* =========================
   DATAECO CSS
   Minimal low-carbon style
========================= */

/* general */
@font-face {
    font-family: "Archivo";
    src: url("../fonts/Archivo-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Typography */
    --font-body: "Archivo", sans-serif;
    --font-heading: "Archivo", sans-serif;

    /* Colors */
    --color-background: #F3F3F1;
    --color-text: #000;
    --color-border-light: #000;
    --color-accent: #10B981;
    --color-selected: #8B8B8B;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: #f7f7f5;
    line-height: 1.7;
}

a{
  color: var(--color-text);
}

a:visited {
  color: var(--color-text);
}

a.active, a:active, a:focus, a:hover {
    color: var(--color-selected);
text-decoration:none;
}

/* layout más amplio */
.container.grid-lg {
    max-width: 1440px;
}

/* aire lateral */
#body-wrapper .container {
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* lectura cómoda */
#body-wrapper p,
#body-wrapper li {
    max-width: 1280px;
}

/* títulos */
h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-top: 1rem;
}

/* quitar look recargado */
.card,
.frame-box,
pre,
code {
    border-radius: 0;
    box-shadow: none;
}

/* espaciado */
h1 {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

/* navegación más limpia */
#header .navbar-section a {
    font-weight: 500;
}

body.header-fixed.header-animated #header.scrolled{
    height: 3rem;
}

/* footer minimal */
.footer {
    border-top: 1px solid #ddd;
    margin-top: 4rem;
    padding-top: 2rem;
    color: #666;
    font-size: 14px;
}

#header {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e5e5e5;
    background: #f7f7f5;
}

/* navbar general */
#header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* logo */
#header .navbar-brand {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* imagen logo */
#header .logo img {
    height: 30px;
    width: auto;
}

/* navegación */
#header .navbar-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#header .desktop-menu {
    display: none;
}

.header-fixed .mobile-menu {
    position: static;
}

.mobile-menu .button_container {
    position: relative;
    top: auto;
    right: auto;
}

/* links menú */
#header .navbar-section a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
}

/* idiomas */
.langswitcher {
    display: flex;
    align-items: center;

    margin-left: 2rem;
    font-size: 0.9rem;
}

.menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-links {
    display: flex;
    align-items: center;
    gap: 2rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;

    font-size: 0.9rem;
}

.language-switcher a {
    color: #444;
    text-decoration: none;
}

/* HOME - EVENTOS */

.home-event {
    margin-bottom: 2rem;
}

.home-event .event-date {
    font-size: 0.9rem;
    color: #666;
}

.home-event .event-type {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-top: 0.25rem;
}

.home-event h3 {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

/* HOME - NOTICIAS */

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.home-news-card {
    flex: 1;
    border: 1px solid #333;
    padding: 1rem;
    scroll-margin-top:120px;
}

.home-news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.home-news-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-read-more {
    margin-top: auto;
    font-weight: 600;
    padding-top: 0.5rem;
    margin-bottom: 0;
}

.news-read-more a {
    text-decoration: none;
}

.news-page .home-news-card {

    display:grid;

    grid-template-columns:320px 1fr;

    gap:2rem;
}

.news-page .news-card-image {
    width: 100%;
    overflow: hidden;
}

.news-page .news-card-image img {
    width: 100%;
    height: 360px;
    object-fit:cover;
    display: block;
}

.news-page .news-card-content {
    display: flex;
    flex-direction: column;
}

.news-page .news-read-more-link {
    margin-top: auto;
}

.news-list{
    display:flex;

    flex-direction:column;

    gap:3rem;

}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 1rem;
}

.card-category {
    font-size: 0.95rem;
}

.card-arrow {
    font-size: 1.2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
}

.section-plus {
    margin-left: 0.5rem;
    color: #1ec78b;
}

.section-link {
    text-decoration: none;
    font-weight: 600;
}

.news-read-more-link {
    color: #000;
    text-decoration: none;
}

.news-read-more-link .arrow {
    color: #36c275;
}

.overlay.open {
    background: rgba(247,247,245,0.97);
    opacity: 1;
margin-top:3.2rem;
}

.mobile-menu .button_container.active .top,
.mobile-menu .button_container.active .bottom {
    background: #000;
}

.mobile-menu .button_container span {
background: var(--color-accent);
}

.mobile-logo {
    display: none;
}

.overlay{
background: var(--color-background);
    margin-top: 3rem;
}

.overlay nav{
text-align:left;
}

.overlay-content {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 52%;
    margin-left: auto;
}

.overlay-links {
    font-family: "Archivo", sans-serif; 
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    line-height: 1.1;
    font-weight: 400;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.overlay-languages {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: "Archivo", sans-serif;
}

.overlay-languages a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 2.2rem;
    height: 2.2rem;

    border-radius: 50%;

    text-decoration: none;

    color: #111;

    transition: all .2s ease;
}

.overlay-languages a.active {
    background: #3CCB7F;
    color: white;
}

.overlay-footer {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.theme-button {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;
    box-shadow: none;

    cursor: pointer;
}

.theme-icon {
    width: 2.2rem;
    height: 2.2rem;

    display: block;
}

.theme-icon-moon {
    display: none;
}

.overlay-clean-interface {
    display: flex;
    align-items: center;
    justify-content: left;
    gap:1rem;
    margin-top: 1rem;
}

.overlay-clean-text {
    display: flex;
    flex-direction: column;
}

.overlay-clean-text strong {
    font-family: "Archivo", sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.overlay-clean-text span {
    font-family: "Archivo", sans-serif;
    font-size: 1rem;
}


.clean-interface-toggle {

    width: 3.5rem;
    height: 2rem;

    border: 0;
    border-radius: 999px;

    background: #d8dde6;

    padding: .2rem;

    display: flex;
    align-items: center;

    cursor: pointer;
}

.clean-interface-thumb {

    width: 1.5rem;
    height: 1.5rem;

    border-radius: 50%;

    background: #36c275;
}

/* ---------- HOME HERO ---------- */

.home-hero{

    position: relative;

    max-width: 1400px;

    margin: 0 auto 3rem auto;

}

.home-hero-image{

    display:block;

    width:100%;
padding:0 2%;
    height:auto;

}

.home-hero-text{

    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    width:80%;
}

.home-hero-text h1{

    color: white;
    font-size: 4.5vw;
    line-height: 1.05;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

/* ---------- HOME INTRODUCTION ---------- */

.home-introduction{

    max-width: 1400px;
    margin: 0 auto 4rem auto;

}

.home-introduction-grid{

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 3rem;

    margin: 2rem 0;

}}

.home-introduction-column{

    line-height: 1.6;

}

.home-project-button{

    display:flex;

    justify-content:center;

    align-items:center;

    width:fit-content;

    margin:2rem auto 0;

    padding:1rem 2rem;

    border:2px solid #000;

    border-radius:999px;

    text-decoration:none;

    color:#000;

    font-size:1rem;

    font-weight:400;

    transition:.25s;

}

.home-project-button:hover{

    background:#000;

    color:#fff;

}
/* ---------- INFRASTRUCTURE ---------- */

.infrastructure{
    margin-top: 2rem;
}


/* ---------- PROJECT ---------- */

.project-hero{

    position:relative;

    margin-bottom:4rem;

}

.project-hero-image{

    width:100%;

    display:block;

    aspect-ratio:16/6;

    object-fit:cover;

}

.project-hero-title{

    position:absolute;

    left:8%;

    bottom:12%;

}

.project-hero-title h1{

    color:white;

    margin:0;

    font-size:4rem;

}

.project-page{

    width:100%;

    margin:0 auto;

}

.project-page h1{

    margin-bottom:3rem;

}

/* ==========================
   EVENTS
========================== */

.event-card{

    display:grid;
    grid-template-columns:110px 1fr;
    gap:2rem;

    border:1px solid #222;

    padding:2rem;

    margin-bottom:2rem;

    align-items:start;

}

.event-date{

    border:1px solid #222;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    aspect-ratio:1;

}

.event-day{

    font-size:3rem;

    font-weight:600;

    line-height:1;

}

.event-month{

    font-size:1.6rem;

    text-transform:uppercase;

    line-height:1;

}

.event-type{

    font-size:.95rem;

    margin-bottom:.5rem;

}

.event-content h3{

    font-size:2rem;

    line-height:1.1;

    margin:.4rem 0 1rem;

}

.event-content h3 a{

    color:inherit;

    text-decoration:none;

}

.event-meta{

    color:#666;

    margin-bottom:1.5rem;

}

.event-excerpt{

    line-height:1.6;

}

.event-more{

    display:inline-block;

    margin-top:1.5rem;

    color:#27d39f;

    text-decoration:none;

    font-weight:500;

}

.event-year {
    font-size: .85rem;
    line-height: 1;
}

@media (max-width: 700px) {

    .home-news-card {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
    }

    .news-card-image {
        width: 100%;
        overflow: hidden;
    }

    .news-card-image img {
        width: 100%;
        max-width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
    }

    .news-card-content {
        width: 100%;
        box-sizing: border-box;
	    overflow-wrap: anywhere;}
    }

    .event-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-date {
        width: 110px;
    }

}
