:root {
    --primary-color: #E3F8EE;
    --secondary-color: #067443;
    --terciary-color: #7FDAB0;
    --bg-color: #067443;
    --tags-color: #b5ffdd;
    --hover-color: rgba(6, 116, 67, 0.1);
    --radius-lg: 1em;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Syne', sans-serif;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accesibilidad - Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Accesibilidad - Visually hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* lennis */
html.lenis, html.lenis body {
    height: auto;
  }
  
  .lenis.lenis-smooth {
    scroll-behavior: auto !important;
  }
  
  .lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
  }
  
  .lenis.lenis-stopped {
    overflow: hidden;
  }
  
  .lenis.lenis-smooth iframe {
    pointer-events: none;
  }

  .container {
    width: 100%;
    background-color: var(--primary-color);
    position: relative;
    overflow-x: hidden;
}

h1 {
    font-size: 3.5em;
    font-weight: 800;
    margin: 0;
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 20px 80px;
    margin-bottom: 40px;
}
h2 {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--terciary-color);
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.3em;
    }
}

/* Header styles - Copiados del main.css */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1001;
}

header .logo {
    font-size: 1.5em;
    font-weight: bold;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1005;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--terciary-color);
}

.menu-toggle .hamburger-line {
    width: 22px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -3px);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

header nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    display: inline-block;
    position: relative;
    padding: 5px;
}

header nav ul li.contact-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    opacity: 1;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

header nav ul li.contact-item a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

header nav ul li.contact-item a:hover span,
header nav ul li.contact-item a:hover img {
    filter: brightness(0) invert(1);
}

header nav ul li.contact-item img {
    width: 18px;
    height: 18px;
}

header nav ul li.contact-item a:after {
    display: none;
}

header nav ul li a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

header nav ul li a:hover:after {
    width: 100%;
    left: 0;
}

header nav ul li a.active {
    opacity: 1;
    cursor: default;
}

header nav ul li a.active:after {
    width: 100%;
    left: 0;
}

/* Dropdown styles */
header nav ul li.dropdown {
    position: relative;
}

header nav ul li.dropdown .dropdown-toggle {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

header nav ul li.dropdown .dropdown-toggle svg {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

header nav ul li.dropdown:hover .dropdown-toggle svg {
    transform: translateY(-50%) rotate(180deg);
}

header nav ul li.dropdown .dropdown-toggle:after {
    display: none;
}

/* Línea debajo para el dropdown cuando está activo */
header nav ul li.dropdown .dropdown-toggle.active:after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

header nav ul li.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    border-radius: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1003;
    list-style: none;
    margin: 0;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

header nav ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

header nav ul li.dropdown .dropdown-menu li {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

header nav ul li.dropdown .dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 0;
    font-size: 0.95em;
    line-height: 1.4;
    margin: 2px 0;
}

header nav ul li.dropdown .dropdown-menu li a:hover {
    background-color: var(--hover-color);
    opacity: 1;
}

/* Estilo especial para "All projects" */
header nav ul li.dropdown .dropdown-menu li:first-child a {
    font-weight: 600;
    border-bottom: 1px solid var(--secondary-color);
    margin-bottom: 8px;
    padding-bottom: 16px;
}

header nav ul li.dropdown .dropdown-menu li a:after {
    display: none;
}

/* Accesibilidad - Focus styles */
header nav ul li.dropdown .dropdown-toggle:focus {
    outline: none;
}

header nav ul li.dropdown .dropdown-menu li a:focus {
    outline: none;
    background-color: var(--hover-color);
}

/* Mejorar contraste y legibilidad */
header nav ul li.dropdown .dropdown-menu li a:hover,
header nav ul li.dropdown .dropdown-menu li a:focus {
    background-color: var(--hover-color);
    opacity: 1;
    color: var(--secondary-color);
}

header nav ul li a:active {
    text-decoration: underline;
}

header nav ul li a:visited {
    color: var(--secondary-color);
}

header nav ul li a:focus {
    outline: none;
}

header nav ul li a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
}

a:any-link {
    color: var(--secondary-color);
}

a:focus {
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.links {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.links:hover {
    cursor: pointer;
    opacity: 0.7;
}

.links:visited {
    color: var(--terciary-color);
}

/* Estilos específicos para el item activo de Sabadell */
header nav ul li.dropdown .dropdown-menu li a.active {
    background-color: var(--hover-color);
    font-weight: 600;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        border-left: 1px solid var(--secondary-color);
        transition: right 0.3s ease;
        padding-top: 80px;
        z-index: 1004;
    }
    
    header nav.active {
        right: 0;
    }
    
    header nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    header nav ul li {
        width: 100%;
    }
    
    header nav ul li a {
        display: block;
        padding: 15px 10px;
        width: 100%;
    }
    
    header nav ul li.contact-item a {
        justify-content: center;
    }
    
    /* Dropdown responsive styles */
    header nav ul li.dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--secondary-color);
        border-radius: 0;
        margin: 0;
        padding: 0;
        background-color: transparent;
        max-height: none;
        overflow: hidden;
        display: none;
    }
    
    header nav ul li.dropdown .dropdown-menu.active {
        display: block;
    }
    
    header nav ul li.dropdown .dropdown-toggle svg {
        transition: transform 0.3s ease;
    }
    
    header nav ul li.dropdown .dropdown-toggle.active svg {
        transform: translateY(-50%) rotate(180deg);
    }
    
    header nav ul li.dropdown .dropdown-menu li {
        width: 100%;
        display: block;
        margin: 0;
        padding: 0;
    }
    
    header nav ul li.dropdown .dropdown-menu li a {
        padding: 15px 30px;
        border-radius: 0;
        display: block;
        width: 100%;
        margin: 2px 0;
    }
    
    /* Estilo especial para "All projects" en móvil */
    header nav ul li.dropdown .dropdown-menu li:first-child a {
        font-weight: 600;
        border-bottom: 1px solid var(--secondary-color);
        margin-bottom: 8px;
        padding-bottom: 20px;
    }
    
    header nav ul li.dropdown .dropdown-toggle:after {
        display: none;
    }
    
    /* Quitar la línea debajo en móvil cuando Work está activo */
    header nav ul li.dropdown .dropdown-toggle.active:after {
        display: none;
    }
}

.links {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.links:hover {
    cursor: pointer;
    opacity: 0.7;
}

.links:visited {
    color: var(--terciary-color);
}

section {
    padding: 40px 20px;
}

section:first-of-type {
    padding-top: 100px;
}

.title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.keywords {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
}

.keywords span {
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 7px 15px;
    margin-right: 15px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.keywords .links {
    font-weight: 600;
    display: flex;
}

.keywords .links a {
    padding-right: 7px;
}

.sticky-buttons {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    z-index: 999;
    will-change: opacity;
    padding: 15px 20px;
    transition: backdrop-filter 0.3s ease;
}

.sticky-buttons.scrolled {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(227, 248, 238, 0.7);
}

.sticky-button {
    color: var(--secondary-color);
    padding: 8px 0;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.sticky-button:hover {
    opacity: 0.7;
}

.sticky-button img {
    height: 18px;
}

.sticky-button.next {
    margin-left: auto; 
}

@media (max-width: 768px) {
    .sticky-buttons {
        top: 48px;
        padding: 12px 15px;
    }
    
    .sticky-button {
        font-size: 0.8em;
        padding: 6px 0;
        gap: 6px;
    }
    
    .sticky-button span {
        display: none;
    }
    
    .sticky-button img {
        height: 16px;
    }
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; 
    justify-items: center;
    justify-content: center;
    align-items: center;
    max-width: 1280px;
    margin: 40px auto;
}

.content-section .img-content, .content-section .text-content {
    flex: 1 1 calc(50% - 20px);
    box-sizing: border-box;
}

.text-content {
    padding: 20px;
    max-width: 430px;
}

.text-content p {
    margin-bottom: 10px;
}

.text-content p:has(em strong) {
    margin-bottom: 3px;
    margin-top: 3px;
}

.text-content em {
    color: var(--secondary-color);
}

#seccion-1 .img-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: solid 1px var(--secondary-color);
    border-radius: 500px;
    max-width: 600px;
}
#seccion-3 .video-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#seccion-1 .img-content img {
    border-radius: 500px;
    max-width: 600px;
}

#seccion-3 .video-content video {
    max-width: 600px;
    width: 100%;
}

.content-section .img-content video {
    width: 100%;
}

.content-section img {
    max-width: 550px;
    width: 100%;
}

/* Optimización de imágenes y videos */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Parallax optimización */
.parallax {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.parrafos {
    padding-bottom: 10px;
}

/* Key Outcomes Section */
#seccion-3-5 {
    display: flex;
    flex-direction: column;
    gap: 100px;
    max-width: 1280px;
    margin: 60px auto;
    padding: 40px 20px;
}

#seccion-3-5 .outcomes-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

#seccion-3-5 .outcomes-header .text-content {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    padding-top: 0;
}

.outcome-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--secondary-color);
    border-radius: 2em;
    padding: 30px 40px;
    width: fit-content;
    text-align: center;
    gap: 12px;
    max-width: 380px;
}

.outcome-box span {
    white-space: normal;
    word-wrap: break-word;
}

.outcome-number {
    font-size: 1em;
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary-color);
}

.outcome-box span:last-child {
    font-size: 0.95em;
    color: var(--secondary-color);
    line-height: 1.5;
}

/* Posicionamiento en cascada */
.outcome-box-2 {
    align-self: flex-start;
    margin-left: 300px;
}

.outcome-box-3 {
    align-self: center;
    margin-left: 100px;
}

.outcome-box-4 {
    align-self: flex-start;
    margin-left: 250px;
}

@media (max-width: 768px) {
    #seccion-3-5 {
        gap: 25px;
    }
    
    #seccion-3-5 .outcomes-header {
        grid-template-columns: 1fr;
    }
    
    .outcome-box {
        padding: 25px 30px;
    }
    
    .outcome-box-2,
    .outcome-box-3,
    .outcome-box-4 {
        align-self: center;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .content-section {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding-top: 0;
        margin-bottom: 0;
    }

    .content-section .img-content, .content-section .text-content {
        flex: 1 1 100%;
    }
    .keywords {
        justify-content: center;
    }
}

#seccion-4 {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    padding: 100px 20px;
    margin: 100px auto;
    text-align: center;
    max-width: 1024px;
}

#seccion-4 .img-row {
    width: 100%;
}

#seccion-4 .img-row img {
    width: 100%;
    display: block;
}

#seccion-4 .img-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media screen and (max-width: 768px) {
    #seccion-4 {
        padding: 50px 10px;
        margin: 50px auto;
    }
    
    #seccion-4 .img-row-double {
        grid-template-columns: 1fr;
    }
}

#seccion-6 {
    display: flex;
    justify-content: space-around;
    max-width: 1280px;
    margin: 100px auto;
    gap: 50px;
}


.boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.box-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.box {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 20px 60px;
    gap: 10px;
    text-align: center;
    background-color: var(--primary-color);
}

.box .number {
    font-size: 48px;
    font-weight: 800;
    line-height: normal;
}

.box span {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    #seccion-6 {
        flex-direction: column;
    }
}

@media (max-width: 490px) {
    .box-content {
        flex-direction: column;
    }
}

#seccion-8 {
    display: flex;
    flex-direction:row;    
    align-items: flex-start;
    justify-content: center;
    padding-top: 150px;
    padding-bottom: 150px;
}

#seccion-8 h2 {
    color: var(--terciary-color);
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-top: 0;
}

#seccion-8 ul {
    margin-top: 0;
    list-style: square inside url('../img/sabadell/list.svg');
}

@media screen and (max-width: 490px) {
    #seccion-8 {
        flex-direction:column;
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

#seccion-9 {
    background-color: var(--secondary-color);
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

#seccion-9 p {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin: auto;
    max-width: 980px;
}

@media screen and (max-width: 490px) {
    #seccion-9 p {
        font-size: 16px;
        font-weight: 600;
        padding-left: 16px;
        padding-right: 16px;
    }
}

.redes img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
}

.redes a {
    display: inline-block;
    position: relative;
    margin-right: 4px;
}

.redes .imagen-normal {
    opacity: 1;
}

.redes a:hover .imagen-normal {
    opacity: 0;
}

.redes a:hover .imagen-hover {
    opacity: 1;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--secondary-color);
    padding: 20px;
    margin-bottom: 0;
}

.social-icons {
    margin-bottom: 40px;
}

footer .back-to-top a {
    text-decoration: none;
    color: var(--secondary-color);
    padding: 15px 20px;
    position: relative;
    text-transform: uppercase;
}

footer .back-to-top a:after {    
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    background: var(--secondary-color);
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
  }
  footer .back-to-top a:hover:after { 
    width: 100%; 
    left: 0; 
  }

  footer .back-to-top a:focus {
    outline: none;
  }
  
  footer .back-to-top a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
  }
  
  footer .back-to-top a:focus-visible:after {
    width: 100%; 
    left: 0; 
  }

  footer p {
    max-width: 300px;
  }

  @media screen and (max-width: 490px) {
    section {
        padding: 30px 10px;
    }
    footer {
        flex-direction: column;
    }
    .back-to-top {
        padding-top: 10px;
    }
  }


/* Codigo para la política de cookies */
 
/* CSS para la animación y localización de los DIV de cookies */
 
@keyframes desaparecer
{
0%		{bottom: 0px;}
80%		{bottom: 0px;}
100%		{bottom: -50px;}
}
 
@-webkit-keyframes desaparecer /* Safari and Chrome */
{
0%		{bottom: 0px;}
80%		{bottom: 0px;}
100%		{bottom: -50px;}
}
 
@keyframes aparecer
{
0%		{bottom: -38px;}
10%		{bottom: 0px;}
90%		{bottom: 0px;}
100%		{bottom: -38px;}
}
 
@-webkit-keyframes aparecer /* Safari and Chrome */
{
0%		{bottom: -38px;}
10%		{bottom: 0px;}
90%		{bottom: 0px;}
100%		{bottom: -38px;}
}
#cookiesms1:target {
    display: none;
}
.cookiesms{	
	width:100%;
	height:43px;
	margin:0 auto;
	padding-left:1%;
        padding-top:5px;
	clear:both;
        font-weight: strong;
color: var(--secondary-color);
bottom:-50px;
position:fixed;
left: 0px;
background-color: var(--tags-color);
opacity:0.7;
filter:alpha(opacity=70); /* For IE8 and earlier */
transition: bottom 1s;
-webkit-transition:bottom 1s; /* Safari */
z-index:999999999;
}
 
.cookiesms:hover{
bottom:0px;
}
.cookies2{
background-color: var(--tags-color);
display:inline;
opacity:0.95;
filter:alpha(opacity=95);
position:absolute; 
left:1%; 
top:-30px;
font-size:15px;
height:30px;
padding-left:25px;
padding-right:25px;
-webkit-border-top-right-radius: 15px;
-webkit-border-top-left-radius: 15px;
-moz-border-radius-topright: 15px;
-moz-border-radius-topleft: 15px;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
padding-top: 5px;
}
 
/* Fin del CSS para cookies */
