:root {
    --color-dark: #1a1a1a;
    --color-light: #f5f5f5;
    --color-cream: #F5F5DC;
    --color-initial-text: #4a4a4a;
    --transition-duration: 0.3s;
    --orange: #FF5722; /* Definir --orange aquí */
    --color-p: #3d3d3d;
  }

  body {
   font-family: 'Tasa Explorer', sans-serif;
    background-color: var(--color-light);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.container {
    max-width: 80vw;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos de la barra de navegación */
#main-nav {
  position: fixed;
  top: 10px; 
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  padding: 10px 0;
  background-color: rgba(26, 26, 26, 0);
  backdrop-filter: blur(5px);
  z-index: 1000;
  transition: padding var(--transition-duration) ease-in-out, width var(--transition-duration) ease-in-out, background-color var(--transition-duration) ease-in-out;
  overflow: hidden;
  border-radius: 50px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* Estilos de los elementos de navegación */
.nav-left, .nav-right, .nav-center {
  display: flex;
  align-items: center;
}

.nav-left { flex: 1; justify-content: flex-start; }
.nav-right { flex: 1; justify-content: flex-end; }
.nav-center { flex: 1; justify-content: center; }

.nav-name, .nav-button {
  color: var(--color-initial-text);
  text-decoration: none;
  font-weight: bold;
  transition: color var(--transition-duration) ease;
}

.nav-name {
  font-family: 'Tasa Explorer', sans-serif;
  font-size: 1.5rem;
  transition: opacity var(--transition-duration) ease, color var(--transition-duration) ease;
}

.nav-button {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  padding: 10px 15px;
  border: none;
  margin: 0 5px;
  position: relative;
  transition: color var(--transition-duration) ease;
}

/* Subrayado animado para los botones */
.nav-button::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  background-color: var(--color-initial-text);
  transition: all var(--transition-duration) ease-in-out;
  transform: translateX(-50%);
}

.nav-button:hover::after {
  width: 100%;
}

.nav-button:hover {
    color: var(--color-dark);
}

.nav-button:hover::after {
    background-color:  #ff8c00;
}


/* Responsive design */
@media (max-width: 768px) {
  #main-nav {
    width: 95vw!important;
    border-radius: 50px;
    margin:0;
  }
	
	.nav-button {
  font-family: 'Roboto', sans-serif;
  font-size: 12px!important;
  padding: 10px 5px;
  border: none;
  margin: 0 5px;
  position: relative;
  transition: color var(--transition-duration) ease;
}
}



/* --- HERO SECTION STYLES --- */
.hero-section {
    position: relative;
    /* ---min-height: 160vh;--- */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    text-align: left;
    padding: 150px 5vw;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .hero-title {
    font-family: 'Tasa Explorer', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--color-dark);
    font-weight: 500;
      line-height: 1.1;
      margin: 0;
      letter-spacing: -0.05em;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    
  }
  
  .word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin: 0 0.5vw;
    height: 1.1em;
    padding: 0.5vh 0;
  }
  
  .hero-word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    will-change: transform, opacity;
  
  }
  
  .hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: var(--color-p);
    margin-top: 20px;
    line-height: 1.4;
    overflow: hidden;
    will-change: transform, opacity;
    padding:0 15px;
    max-width:60vw;
  }
  
  .line-wrapper {
    display: block;
    overflow: hidden;
  }
  
  .hero-line {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    will-change: transform, opacity;
  }
  
  /* Responsive adjustments for hero */
  @media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
        line-height: 1;
    }
    .word-wrapper {
        margin: 0 0.2em;
        height: 1em;
    }
     .hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: var(--color-p);
    margin-top: 20px;
    line-height: 1.4;
    overflow: hidden;
    will-change: transform, opacity;
    padding:0 15px;
    max-width:90vw;
  }
  }
.about-images {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.img-vertical {
    width: 450px;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

.img-square {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* Action Section */
.action-section {
    padding: 150px 0;
    background-color: #ffffff;
    height: 100%;
}

.action-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: auto;
}

.action-container p {font-size:20px;color: #3d3d3d !important;;}


.action-buttons {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
}

.action-btn {
    display: flex;
    padding: 20px 30px;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    text-decoration: none;
    color: var(--color-dark);
    box-shadow: none;
    transition: all ease-in-out 300ms;
}

/* Estilos para el nuevo contenido interno del botón */
.btn-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.btn-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.btn-top-row h4 {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    flex-grow: 1;
    margin-left: 10px;
}

.btn-paragraph {
    font-size: 14px!important;
    font-weight: 300;
    margin: 0;
    color: var(--color-p);
}

/* Estilos de los dots */
.dot-linkedin, .dot-email, .dot-cv {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-linkedin { background-color: #0A66C2; }
.dot-email { background-color: #E24838; }
.dot-cv { background-color: #4A4A4A; }

/* Estilos de los iconos */
.action-btn .icon {
    display: none;
}

.icon-external-link {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    margin-left: 10px;
}

/* Hover y efectos */
.action-btn:hover {
    border: 1px solid #ebebeb;
    box-shadow: 10px 10px 32px #0000001a;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .action-container {
        flex-direction: column;
        align-items: flex-start; /* Alinea el contenido a la izquierda */
        text-align: left;
    }
    
    .action-container p {
        max-width: 100% !important; /* El párrafo ocupa todo el ancho */
        text-align: left;
    }
    
    .action-buttons {
        gap: 10px;
        width: 100%; /* Los botones ocupan todo el ancho */
    }
    
    .action-btn {
        padding: 15px 20px;
        width: 80%; /* Cada botón individual ocupa todo el ancho */
    }
}

/* KPIs Section */


.work-title-image {
    font-family: 'Tasa Explorer', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.05em;
    color: var(--color-dark);}

.kpis-section {
    padding: 80px 0;
    text-align: left;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.kpi-card {
    padding: 20px;
    border-radius: 8px;
    background-color: #ffff;
}

.kpi-card h3 {
    font-size: 3.5rem;
    color: var(--color-dark);
    margin: 0 0 10px;
    font-weight: 400!important;
}

.kpi-card p {
    font-size: 1rem;
    color: var(--color-dark);
    font-weight: 300;
    margin: 0
}

/* Experience Section */
.experience-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    padding: 20px 0 0 50px;
    border-left: 2px solid var(--color-dark);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -59px;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: var(--color-dark);
    border-radius: 50%;
}

.timeline-content h3 {
    margin-top: 0;
}

.timeline-content .company {
    font-weight: bold;
    margin: 0;
}

.timeline-content .dates {
    font-style: italic;
    color: #777;
}

ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-title {
    opacity: 0;
    transform: translateY(50%);
}

.fade-in-paragraph {
    opacity: 0;
    transform: translateY(50%);
}

/* Responsive Design */
@media (max-width: 768px) {
    #main-nav {
        width: 90vw!important;
        border-radius: 50px;
        margin:0;
    }
    
    .about-content {
        max-width: 100%;
    }

    .about-images {
        flex-direction: column;
        align-items: center;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .action-container {
        flex-direction: column;
        text-align: center;
    }
}


/* --- Preloader --- */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4a4a4a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.loading-words {
    display: flex;
    align-items: center;
    font-size: 4rem;
    color: #fff;
    overflow: hidden;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

.word-enter {
    animation: word-fade-in 0.8s forwards;
}

.word-exit {
    animation: word-fade-out 0.8s forwards;
}

@keyframes word-fade-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes word-fade-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* FOOTER STYLES */
.main-footer {
    background-color: var(--color-cream)!important;
    color: var(--color-dark);
    padding: 100px 5vw;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-heading {
    font-family: 'Tasa Explorer', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    margin: 0 0 40px;
    line-height: 1.1;
    font-weight: 500;
}

.footer-cta-email {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 40px;
    display: inline-block;
}

.footer-cta-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff8c00!important;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-cta-email:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.footer-socials {
    margin: 0 0 50px;
}

.social-link {
    font-family: 'Roboto', sans-serif;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 10px;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #ff8c00!important;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: bottom left;
}

.social-link:hover::after {
    transform: scaleX(1);
}

.footer-copyright {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    color: rgba(26, 26, 26, 0.5);
    margin: 0;
}




/* FOOTER */
:root {
    --footer-bg-color: #f8f8f8;
    --footer-text-color: #4a4a4a;
    --footer-link-color: #4a4a4a;
    --footer-link-hover-color: --orange;
    --start-project-bg: #ff8c00;
    --start-project-text: #1a1a1a;
    --iaap-bg: #4c4c4c;
    --iaap-text: #4a4a4a;
  }
  
  
  /* Estilos generales del footer */
  .squee-footer {
    background-color: #ff8c00;
      color: black;
      font-family: 'Roboto', sans-serif;
      padding: 80px 5vw 0px 5vw;
      margin: 0 3vw;
      border-radius: 25px 25px 0 0;
  }
  
  .footer-container {
    max-width: 100%;
      margin: 0 auto;
      padding: 5vh 5vw 80px 5vw;
      height: auto;
      background-color: #f8f8f8;
  }
  
  .footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
  }
  
  /* Estilos de las columnas */
  .column-heading {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links li a {
    text-decoration: none;
    color: var(--footer-link-color);
    font-size: 0.9rem;
    line-height: 1.6;
    transition: color 0.3s ease;
  }
  
  .footer-links li a:hover {
    color: var(--orange);
  }
  
  .footer-column p,
  .footer-column address {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
    font-style: normal;
  }
  
  /* Estilos del botón y el badge */
  .start-project-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  
  .start-project-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--start-project-bg);
    color: var(--orange);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #b3b3b3;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .start-project-button:hover {
   
    color: var(--orange);
  }
  
  .iaap-badge-placeholder {
    width: 160px;
    height: 60px;
    background-color: var(--iaap-bg);
    border: 1px solid var(--footer-text-color);
    color: var(--iaap-text);
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
    text-align: center;
  }
  
  /* Estilos de la parte inferior */
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid #4a4a4a;
    font-size: 0.8rem;
  }
  
  .footer-copyright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  
  .footer-copyright a {
    text-decoration: none;
    color: var(--footer-link-color);
  }
  
  .footer-social-icons {
    display: flex;
    gap: 15px;
  }
  
  .social-icon {
    width: 24px;
    height: 24px;
    color: var(--footer-text-color);
    transition: color 0.3s ease;
  }
  
  .social-icon:hover {
    color: var(--footer-link-hover-color);
  }
  
  /* Diseño adaptable */
  @media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-copyright {
        flex-direction: column;
    }
  }
  
  @media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
  }
  
  
  /* Contenedor del carrusel */
  .infinite-carousel-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--footer-bg-color);
    padding: 20px 0;
    white-space: nowrap;
    box-sizing: border-box;
    border-radius: 25px 25px 0 0;
  }
  
  /* Pista de animación del carrusel */
  .infinite-carousel-track {
    display: inline-block; /* Permite que los elementos se posicionen uno al lado del otro */
    animation: scroll-left 60s linear infinite; /* Animación principal */
  }
  
  /* Animación del desplazamiento de izquierda a derecha */
  @keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Se desplaza la mitad del contenido duplicado */
    }
  }
  
  /* Estilo del texto */
  .carousel-text {
    font-family: 'Tasa Explorer', sans-serif; /* Puedes ajustar la fuente */
    font-size: clamp(2rem, 6vw, 4rem); /* Tamaño responsivo del texto */
    color: #e8e8e8; /* Color del texto */
   
    font-weight: bold;
    margin-right: 30px; /* Espacio entre las repeticiones de la frase */
    display: inline-block; /* Permite aplicar márgenes */
  }



/* Ajuste para el botón Ver todos los proyectos */
.view-all-button {
    font-family: 'Tasa Explorer', sans-serif;
    font-size: 1.2rem;
    color: var(--color-dark);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Estilos del círculo con flecha */
  .arrow-circle {
    width: 50px;
    height: 50px;
    background-color: #ff8c00!important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .arrow-icon {
    width: 20px;
    height: 20px;
    color:#ffffff!important;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .view-all-button:hover .arrow-circle {
    transform: translateX(5px);
  }
  
  .view-all-button:hover .arrow-icon {
    transform: translateX(2px);
  }
  
  /* El underline naranja del botón */
  .view-all-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff8c00;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .view-all-button:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
  /* Inversión de colores para el nuevo texto y botón en modo oscuro */
  body.dark-bg .view-all-button {
    color: var(--color-light);
  }
  
  body.dark-bg .view-all-button .arrow-circle {
    background-color: var(--color-light);
  }
  
  body.dark-bg .view-all-button .arrow-icon {
    color: #4a4a4a;
  }
  
  body.dark-bg .view-all-button::after {
    background-color: var(--color-light);
  }
  
  /* Inversión de colores para el nuevo texto y botón en modo oscuro */
  body.dark-bg .work-description,
  body.dark-bg .view-all-button {
    color: var(--color-light);
  }
  
  body.dark-bg .view-all-button::after {
    background-color: #ff8c00;
  }



/* Estilos base del cursor personalizado */
.custom-cursor {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(26, 26, 26, 0.1); 
    position: fixed;
    pointer-events: none; 
    z-index: 99999; /* Asegura que esté por encima de todo */
    transform: translate(-50%, -50%); 
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

/* CLASE CRÍTICA: Efecto de hover (cursor agrandado) - Usado por el JS */
.custom-cursor.is-hovering {
    width: 80px;
    height: 80px;
    background-color: rgba(26, 26, 26, 0.3); 
}

/* Adaptación a Modo Oscuro */
body.dark-bg .custom-cursor {
    background-color: rgba(245, 245, 245, 0.5); 
}

body.dark-bg .custom-cursor.is-hovering {
    background-color: rgba(245, 245, 245, 0.8); 
}