/* Hero Section */
.hero {
	background-image: url('../../images/net_zero_banner.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	height: 390px;
	position: relative;
	overflow: hidden;
	left: 50%;
	border-radius: 10px;
	transform: translateX(-50%);
}

/* Net Zero Section */
.net-zero {
	padding: 80px 0;
	background-color: #f8f9fa;
}

.tabs-container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Tabs */
.tabs-selector {
	margin-bottom: 40px;
}

.tabs-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e0e0e0;
	overflow: hidden;
}

.tab-item {
	position: relative;
}

.tab-link {
	display: block;
	padding: 20px 24px;
	text-decoration: none;
	color: #A6A39C;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	transition: all 0.3s ease;
	position: relative;
}

.tab-link p {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.4;
	text-align: center;
	font-family: 'Diagramm', sans-serif;
}

.tab-item .tab-link {
	border-bottom: 4px solid transparent;
}

.tab-item.active .tab-link {
	color: var(--azul);
	border-bottom: 4px solid #124069;
}

.tab-item.active .tab-link::after {
	display: none;
}

.tabs-content {
	min-height: 400px;
}

.tab-content {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tab-content .title {
    margin-bottom: 60px;
}

.net-zero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.net-zero-small-card {
    background-color: #F5F5F5;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.net-zero-small-card__image {
    width: 100%;
}

.net-zero-small-card__image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.net-zero-small-card__content {
    padding: 20px;
}

.net-zero-small-card__title {
    color: #161933;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 10px 0;
}

.net-zero-small-card__description {
    color: #5f6368;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.net-zero-small-card__link {
    color: var(--azul);
    text-decoration: underline;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.net-zero-small-card__link:hover {
    color: #124069;
}

/* Hover de toda la tarjeta afecta al "Read more" */
.net-zero-small-card:hover .net-zero-small-card__link,
.net-zero-small-card:focus-visible .net-zero-small-card__link {
    color: #124069;
}

/* Large Card */
.net-zero-large-card {
    position: relative;
    background-color: transparent;
    overflow: hidden;
    width: 100%;
    grid-column: span 2;
}

.net-zero-large-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.net-zero-large-card__overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 24px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.8) 100%);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.net-zero-large-card:hover .net-zero-large-card__overlay,
.net-zero-large-card:focus-within .net-zero-large-card__overlay {
    transform: translateY(0);
}

.net-zero-large-card__title {
    margin: 0 0 10px 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.net-zero-large-card__description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.related-news {
	background-color: #F5F5F5;
}

.related-news .title {
    margin-bottom: 0;
}

.related-news .title-container {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 16px;
	margin-bottom: 50px;
}

.related-news .separator {
    border: none;
    height: 1px;
    background-color: #d8dbe0;
}

.related-news .navigation-container {
    display: flex;
    gap: 36px;
}

.related-news-button-prev,
.related-news-button-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.related-news-button-prev:hover svg path,
.related-news-button-next:hover svg path {
    stroke: #0d2f4c;
}


.net-zero-related-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 380px;
    min-height: 500px;
}

.net-zero-related-card__image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.net-zero-related-card__content {
    padding: 24px;
}

.net-zero-related-card__title {
    color: #161933;
    font-weight: 700;
    font-size: 1.375rem;
    margin: 0 0 12px 0;
}

.net-zero-related-card__description {
    color: #5f6368;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.net-zero-related-card__button {
    display: inline-flex;
	text-decoration: none;
}

/* Net Zero New (detalle) */
.net-zero-back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: #124069;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.net-zero-back-link:hover {
    text-decoration: underline;
}

.net-zero-new__title {
    color: #124069;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 0 16px 0;
}

.net-zero-new__image {
    width: 100%;
    margin-bottom: 24px;
}

.net-zero-new__image img {
    width: 100%;
    height: auto;
	max-height: 650px;
    display: block;
    border-radius: 12px;
}

.net-zero-new__content p {
    color: #242020;
    font-size: 1.3125rem;
    line-height: 1.875rem;
    margin: 0 0 18px 0;
}

/* Media Queries */
@media (max-width: 1024px) {

    .tabs-container {
        padding: 0 20px;
    }

    .net-zero-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .net-zero-small-card__image img {
        height: 180px;
    }

    .net-zero-small-card__content {
        padding: 16px;
    }

    .net-zero-related-card__image img {
        height: 210px;
    }

}

@media (max-width: 768px) {
	.hero {
		width: calc(100% - 25px);
	}

    .tabs-container {
        padding: 0 15px;
    }

	.tabs-selector {
		margin-bottom: 30px;
	}

	.tabs-list {
		flex-direction: column;
		border-bottom: none;
	}

	.tab-item {
		width: max-content;
	}

	.tab-link {
		border-right: none;
		border-bottom: 1px solid #e0e0e0;
		padding: 15px 20px;
	}

	.tab-link p {
		font-size: 1rem;
		text-align: start;
	}

    .tab-content {
        padding: 20px;
    }

	.tab-content h3 {
		font-size: 20px;
	}

	.tab-content .title {
		font-size: 1.5rem;
		margin-bottom: 20px;
	}

    .tabs-content {
        min-height: 300px;
    }

    .net-zero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .net-zero-small-card__image img {
        height: 160px;
    }

    .net-zero-small-card__title {
        font-size: 1.125rem;
    }

    .net-zero-small-card__content {
        padding: 16px;
    }

    /* Overlay siempre visible en móvil/tablet */
    .net-zero-large-card__overlay {
        transform: translateY(0);
    }

    .net-zero-large-card__image {
        height: 260px;
    }

    .net-zero-related-card__image img {
        height: 190px;
    }

    .net-zero-related-card__content {
        padding: 20px;
    }


}

@media (max-width: 480px) {

    .tabs-container {
        padding: 0 10px;
    }

	.tabs-selector {
		margin-bottom: 20px;
	}

	.tab-link {
		padding: 12px 15px;
	}

	.tab-link p {
		font-size: 0.9rem;
	}

    .tab-content {
        padding: 15px;
    }

	.tab-content .title {
		font-size: 1.3rem;
		margin-bottom: 15px;
	}

    .tabs-content {
        min-height: 250px;
    }

    .net-zero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .net-zero-small-card__image img {
        height: 140px;
    }

    .net-zero-small-card__title {
        font-size: 1rem;
    }

    .net-zero-small-card__description {
        font-size: 0.9rem;
    }

    .net-zero-small-card__content {
        padding: 14px;
    }

    .net-zero-large-card__image {
        height: 220px;
    }

    .net-zero-large-card {
        grid-column: 1 / -1;
    }

    .net-zero-small-card {
        grid-column: span 1;
    }



    .net-zero-related-card__image img {
        height: 170px;
    }

    .net-zero-related-card__title {
        font-size: 1.125rem;
    }

    .net-zero-related-card__content {
        padding: 16px;
    }

}
