:root {
    --primary-color: #FEFBEA;
    --secondary-color: #E97100;
    --terciary-color: #F1CD89;
    --bg-color: #E97100;
    --tags-color: #fee3b0;
    --radius-lg: 1em;
    --hover-color: rgba(233, 113, 0, 0.1);
}

* {
    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 {
    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: 1000;
    will-change: transform;
}

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

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

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:hover:after {
    width: 0;
    left: 50%;
}

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;
}

/* 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-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    border-radius: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    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%;
    border-bottom: none;
}

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;
}

header nav ul li.dropdown .dropdown-menu li a.active {
    background-color: var(--hover-color);
    font-weight: 600;
}

/* Special styling for "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);
}

/* Active state line for Work dropdown */
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);
}

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);
}

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(255, 246, 220, 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;
    padding: 20px;
    border: solid 1px var(--secondary-color);
    border-radius: 500px;
    max-width: 600px;
}

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

#seccion-3 .video-content video {
    border-radius: 500px;
    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;
}

.parrafos ul {
    list-style: square inside url('../img/wtr/list.svg');
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 0;
}

.parrafos li {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Título de galería */
.gallery-title {
    text-align: center;
    color: var(--terciary-color);
    margin-bottom: 40px;
    padding: 0 20px;
}

.embed {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    padding: 20px;
}

.pdf {
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-lg);
}

@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;
    }
    .pdf {
        width: 100%;
        height: 400px;
    }
}

/* Slider */
#seccion-6 {
    max-width: 100%;
    overflow: hidden;
    padding: 40px 0 0 0;
}

.glide {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
}

.glide__slides {
    margin: 0;
    padding: 0;
}

.glide__slide  ul{
    list-style: none;
}

.glide__slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid var(--secondary-color);
}

.glide__arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
}

.glide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    background: transparent;
}

.glide__arrow img {
    width: 40px;
    height: auto;
}

.glide__arrow--left {
    left: 10px;
}

.glide__arrow--right {
    right: 10px;
}

.glide__arrow--left[disabled], .glide__arrow--right[disabled] {
    opacity: 0.2;
    pointer-events: none;
}

.glide__arrow:hover,
.glide__arrow:focus {
    opacity: 1;
}

.glide__arrow:focus {
    outline: none;
}

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

#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/wtr/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;
    }
  }

/* Menu responsive */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    display: block;
}

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

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

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

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1005;
    }
    
    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: 100px;
        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;
    }
    
    /* Mobile dropdown styles */
    header nav ul li.dropdown .dropdown-toggle:after {
        display: none;
    }
    
    header nav ul li.dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: 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 {
        border-bottom: none;
    }
    
    header nav ul li.dropdown .dropdown-menu li a {
        padding: 15px 30px;
        margin: 0;
        border-radius: 0;
        font-size: 0.9em;
        color: var(--secondary-color);
        opacity: 0.8;
    }
    
    header nav ul li.dropdown .dropdown-menu li a:hover {
        background-color: transparent;
        opacity: 1;
    }
    
    header nav ul li.dropdown .dropdown-menu li a.active {
        opacity: 1;
        font-weight: 600;
    }
    
    /* Hide active state line in mobile */
    header nav ul li.dropdown .dropdown-toggle.active:after {
        display: none;
    }
    
    /* Experience section mobile padding */
    #experience {
        padding-top: 20px;
    }
}

/* 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 */
