/* =========================================================
   VARIABLES
========================================================= */
:root {
  --tipo-base: "Archivo Narrow", sans-serif;
  --tipo-titular: "Anton", sans-serif;
  --tipo-script: "Permanent Marker", cursive;

  --color-amarillo: #F6A300;
  --color-negro: #000;
  --blanco: #fff;

  --seccion-padding: 150px 5% 80px 5%;
  --ancho-maximo: 1400px;
}

/* =========================================================
   RESET / NORMALIZE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tipo-base), sans-serif;
  line-height: 1.4;
}

h1,
h2,
h3,
h4,
h5,
h6,
a {
  font-family: var(--tipo-titular), sans-serif;
  font-weight: 400;
}

h2 {
  font-size: 6em;
}

h3 {
  font-size: 2.5rem;
  line-height: 2.5rem;
}

h3 span {
  font-family: var(--tipo-script), sans-serif;
  font-size: 2.5rem;
  line-height: 2rem;
}

h6 {
  font-size: 1.4rem;
}

p {
  font-size: 1.2rem;
  line-height: 1.4;
}

a {
  color: var(--color-amarillo);
  text-decoration: none;
}

/* =========================================================
   HEADER CON ALINEACIÓN PERFECTA
========================================================= */
header {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 15px 5%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: all 0.3s ease;
}

.header-container {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

header.scrolled {
  background: var(--color-amarillo);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

header #logo,
footer #logo {
  display: block;
  width: 350px;
  height: 80px;
  background-image: url('img/logo.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position-y: center;
  text-decoration: none;
  flex-shrink: 0;
}

#logo span {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

header nav {
  display: flex;
  align-items: center;
}

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

header nav ul li a {
  color: var(--color-negro);
  text-decoration: none;
  font-size: 1.5rem;
  padding: 18px 8px;
  display: inline-flex;
  font-family: var(--tipo-titular), sans-serif;
  transition: all 0.3s ease;
}

header nav ul li a:hover {
  color: var(--blanco);
}

.btn-contacto {
  background: var(--color-negro);
  color: var(--color-amarillo);
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid var(--blanco);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tipo-titular), sans-serif;
  white-space: nowrap;
}

.btn-contacto .arrow {
  font-size: 1em;
  transition: transform 0.3s ease;
}

.btn-contacto:hover {
  color: var(--blanco);
  border-color: var(--blanco);
}

.btn-contacto:hover .arrow {
  transform: translateX(5px);
  color: var(--blanco);
}

.btn-contacto:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(246, 163, 0, 0.3);
}

/* =========================================================
   MENÚ HAMBURGUESA - ESTILOS GENERALES
========================================================= */
.menu-toggle {
  display: none;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1000;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-negro);
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* =========================================================
   HERO SECTION (PARALLAX)
========================================================= */
#hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--color-amarillo);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.layer-letters {
  z-index: 1;
  transform: rotate(-4deg) scale(1.3);
}

.layer-persona {
  z-index: 2;
  height: 85%;
  width: auto;
  object-fit: contain;
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  top: 20%;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#titular-hero {
  color: var(--blanco);
  line-height: 1;
  text-align: center;
  margin-bottom: 2rem;
}

h1 span#text1 {
  font-family: var(--tipo-titular);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  display: block;
}

h1 span#text2 {
  font-family: var(--tipo-titular);
  font-size: clamp(3.8rem, 7.5vw, 6.5rem);
  font-weight: 900;
  display: block;
  margin-top: 0.5rem;
}

h1 span#text3 {
  font-family: var(--tipo-script);
  font-size: clamp(5rem, 12vw, 12rem);
  display: block;
  margin-top: -1rem;
}

#continuar {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  text-decoration: none;
  cursor: pointer;
  color: var(--blanco);
  z-index: 30;
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0% {
    transform: translate(-50%, 0);
    opacity: .8;
  }
  50% {
    transform: translate(-50%, 8px);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: .8;
  }
}

/* =========================================================
   SEPARADORES DE SECCIÓN
========================================================= */
.diagonal-cut {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 20;
}

.diagonal-cut svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  transform: rotate(180deg);
}

#hero-section .diagonal-cut .shape-fill {
  fill: var(--color-negro);
}

#competencias .diagonal-cut .shape-fill {
  fill: var(--blanco);
}

#portafolio .diagonal-cut .shape-fill {
  fill: var(--blanco);
}

#curriculum .diagonal-cut .shape-fill {
  fill: var(--color-negro);
}

#contacto .diagonal-cut .shape-fill {
  fill: var(--color-amarillo);
}

#hero-section,
#competencias,
#portafolio,
#curriculum {
  position: relative;
  overflow: hidden;
}

/* =========================================================
   COMPETENCIAS - 2 COLUMNAS
========================================================= */
#competencias {
  background-color: var(--color-negro);
  padding: var(--seccion-padding);
  height: 100vh;
  display: flex;
  align-items: center;
  background-image: url(img/yo-competencias.jpg);
  background-repeat: no-repeat;
  background-position-y: bottom;
  background-position-x: 20%;
}

#curriculum .contenedor-principal,
#competencias .contenedor-principal {
  max-width: var(--ancho-maximo);
  width: 100%;
  margin: 0 auto;
  padding: 0 5%;
}

.columnas {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
}

#competencias .columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  width: 100%;
}

#competencias article,
#competencias .areas-accion {
  margin: 0;
  padding: 0;
}

#competencias h2,
#competencias h3,
#competencias p {
  margin-left: 0;
  padding-left: 0;
}

section .columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

#competencias h2 {
  margin-bottom: 0;
  color: var(--blanco);
}

section h3 span {
  display: block;
  margin-bottom: 2rem;
  margin-top: -15px;
}

#competencias h3 span {
  color: var(--color-amarillo);
}

#competencias article p {
  color: var(--blanco);
}

/* LISTA DE COMPETENCIAS */
.areas-accion ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.areas-accion li {
  background: var(--color-negro);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.areas-accion li:hover {
  border-color: var(--color-amarillo);
  transform: translateY(-2px);
}

.areas-accion li>div {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  color: var(--blanco);
}

.areas-accion img {
  flex-shrink: 0;
  border-radius: 8px;
  width: 84px;
  height: auto;
}

.areas-accion h6,
.areas-accion p {
  margin: 0;
}

/* Enlaces como botones */
section a.btn {
  font-size: 0.9rem;
  font-family: var(--tipo-titular);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 5px;
}

section a.btn:hover {
  gap: 12px;
}

#competencias a.btn {
  color: var(--color-amarillo);
}

#competencias a.btn:hover {
  color: var(--blanco);
}

/* =========================================================
   ACORDEÓN MÓVIL PARA COMPETENCIAS
========================================================= */
.acordeon-checkbox {
  display: none;
}

.mobile-competencia {
  background: var(--color-negro);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.mobile-competencia-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
}

.mobile-competencia-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-competencia-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.mobile-competencia-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) saturate(100%) invert(67%) sepia(90%) saturate(1322%) hue-rotate(360deg) brightness(105%) contrast(101%);
}

.mobile-competencia-header h6 {
  flex: 1;
  color: var(--blanco);
  font-family: var(--tipo-titular);
  font-size: 1.1rem;
  margin: 0;
  text-align: left;
}

.mobile-arrow {
  color: var(--color-amarillo);
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.mobile-competencia-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--color-negro);
}

.mobile-competencia-content p {
  color: var(--blanco);
  font-size: 1rem;
  margin: 0 20px !important;
  padding: 0 20px 20px 75px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
}

.mobile-competencia-content ul {
  padding: 0 20px 20px 75px;
  color: var(--blanco);
}

.acordeon-checkbox:checked+.mobile-competencia-header+.mobile-competencia-content {
  max-height: 250px;
}

.acordeon-checkbox:checked+.mobile-competencia-header+.mobile-competencia-content p {
  opacity: 1;
}

.acordeon-checkbox:checked+.mobile-competencia-header .mobile-arrow {
  transform: rotate(90deg);
}

@media screen and (min-width: 768px) {
  .areas-accion-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  aside.areas-accion {
    display: none;
  }
}

/* =========================================================
   POPUPS SIN JAVASCRIPT
========================================================= */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.popup p {
  color: var(--blanco);
}

.popup:target {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--color-negro);
  border: 3px solid var(--color-amarillo);
  border-radius: 20px;
  padding: 50px 40px 40px 40px;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: popupAppear 0.4s ease-out;
}

@keyframes popupAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 2.5rem;
  color: var(--blanco);
  text-decoration: none;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  line-height: 2.5rem;
}

.close-popup:hover {
  background: var(--color-amarillo);
  color: var(--color-negro);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(246, 163, 0, 0.3);
}

.popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
  align-items: start;
}

.popup h3 {
  color: var(--color-amarillo);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.popup h4 {
  color: var(--blanco);
  font-size: 1.4rem;
  margin: 0 0 10px 0;
}

.popup ul {
  list-style: none;
  margin-bottom: 20px;
}

.popup ul li {
  color: var(--blanco);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.popup ul li::before {
  content: "▸";
  color: var(--color-amarillo);
  position: absolute;
  left: 0;
}

.herramientas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.herramientas span {
  background: rgba(246, 163, 0, 0.2);
  color: var(--color-amarillo);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--color-amarillo);
}

.popup-resultados {
  padding: 0 20px 20px;
  border-left: 4px solid var(--color-amarillo);
  color: var(--blanco);
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */
section {
  padding: var(--seccion-padding);
}

/* =========================================================
   PORTAFOLIO - CARRUSEL PERFECTO
========================================================= */
#portafolio {
  background: var(--blanco);
  color: var(--color-negro);
  position: relative;
  padding-bottom: 0 !important
}

#portafolio .columnas {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 0 5% 20px 5%;
}

.carrusel-contenedor {
  position: relative;
  max-width: 0;
  margin: 0 0 100px 0;
  padding: 0 2%;
  width: 100%;
  max-width: none;
}

section.anchocompleto {
  padding: 0;
  margin: 0;
}

.proyectos {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.proyectos::-webkit-scrollbar {
  display: none;
}

.proyectos li {
  flex: 0 0 calc(25.333% - 20px);
  min-width: 350px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.proyectos li:hover {
  transform: scale(1.02);
}

.proyecto-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  height: 400px;
  width: 100%;
}

.proyectos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.proyecto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transition: all 0.3s ease;
}

.proyectos li:hover .proyecto-overlay {
  opacity: 1;
}

.proyectos li:hover img {
  transform: scale(1.05);
}

.proyecto-info {
  color: var(--blanco);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  width: 100%;
}

.proyectos li:hover .proyecto-info {
  transform: translateY(0);
}

.proyecto-info h5 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  font-family: var(--tipo-titular);
  color: var(--blanco);
  line-height: 1.2;
}

.proyecto-info p {
  font-size: 1rem;
  margin-bottom: 15px;
  opacity: 0.9;
  color: var(--blanco);
  line-height: 1.4;
}

.ver-proyecto {
  font-family: var(--tipo-titular);
  font-size: 0.9rem;
  color: var(--color-amarillo);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proyectos li:hover .ver-proyecto {
  gap: 12px;
  color: var(--blanco);
}

.carrusel-controles {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  max-width: none;
  margin: 0 auto;
  padding: 0 1%;
}

.carrusel-prev,
.carrusel-next {
  background: var(--color-negro);
  color: var(--color-amarillo);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carrusel-prev:hover,
.carrusel-next:hover {
  background: var(--color-amarillo);
  color: var(--color-negro);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(246, 163, 0, 0.3);
}

#portafolio h3 span {
  color: var(--color-amarillo);
}

.empresas {
  display: flex;
  gap: 40px;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: nowrap;
}

.empresas::-webkit-scrollbar {
  display: none;
}

.empresas li {
  flex: 0 0 120px;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  opacity: 0.5;
  transition: all 0.5s ease;
}

.empresas li:hover {
  transform: scale(1.08);
  opacity: 1;
}

.empresas img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(0.8);
  transition: all 0.3s ease;
}

.empresas li:hover img {
  filter: grayscale(0%) contrast(1);
}

/* POPUPS PARA PROYECTOS */
.popup-proyecto .popup-content {
  max-width: 1000px;
  padding: 0;
  overflow: hidden;
}

.popup-proyecto .proyecto-detalle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.popup-proyecto .proyecto-imagen {
  background: red;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
}

.popup-proyecto .proyecto-imagen img {
  max-width: 100%;
  object-fit: contain;
}

.popup-proyecto .proyecto-contenido {
  padding: 50px 40px;
  background: var(--color-negro);
  color: var(--blanco);
  overflow-y: auto;
}

.popup-proyecto .proyecto-contenido h3 {
  color: var(--color-amarillo);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.popup-proyecto .proyecto-contenido h4 {
  color: var(--blanco);
  font-size: 1.4rem;
  margin: 30px 0 15px 0;
  border-left: 4px solid var(--color-amarillo);
  padding-left: 15px;
}

.popup-proyecto .proyecto-contenido ul {
  list-style: none;
  margin-bottom: 25px;
}

.popup-proyecto .proyecto-contenido ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.popup-proyecto .proyecto-contenido ul li::before {
  content: "▸";
  color: var(--color-amarillo);
  position: absolute;
  left: 0;
}

/* =========================================================
   INDICADORES CARRUSEL
========================================================= */
.carrusel-indicadores {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.indicador {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicador.activo {
  background: var(--color-amarillo);
  transform: scale(1.2);
}

.proyectos,
.testimonios {
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
}

.proyectos li,
.testimonios li {
  scroll-snap-align: start;
}

.separador-sencillo {
  display: block;
  height: 20px;
}

/* =========================================================
   FLECHA ANIMADA
========================================================= */
.flecha-contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: -230px;
  z-index: 20;
}

.flecha-animada {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: bounce-arrow 2s infinite;
  text-decoration: none;
}

.flecha-animada:hover {
  transform: scale(1.1);
}

.flecha-svg {
  width: 80px;
  transition: transform 0.3s ease;
}

.flecha-animada:hover .flecha-svg {
  transform: translateY(5px);
}

@keyframes bounce-arrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* =========================================================
   SOBRE MÍ
========================================================= */
#curriculum {
  height: 100vh;
  vertical-align: center;
  background: url(img/sobremi.jpg);
  background-repeat: no-repeat;
  background-position-y: bottom;
  background-position-x: center;
  background-size: 100%;
  align-items: center;
  display: flex;
}

#curriculum .caja-negra {
  background-color: var(--color-negro);
  padding: 30px 60px 60px 60px;
  border-radius: 15px;
  max-width: var(--ancho-maximo);
  margin: 20px auto 0 auto;
  color: var(--blanco);
}

#curriculum .caja-negra h2 {
  color: var(--blanco);
  text-align: center;
}

#curriculum .caja-negra h3 span {
  color: var(--color-amarillo);
  text-align: center;
}

#curriculum .caja-negra p {
  color: var(--blanco);
  text-align: center;
}

#curriculum .caja-negra article:first-child {
  max-width: 50%;
  margin: 0 auto;
  padding-bottom: 40px;
}

#curriculum .caja-negra article:last-child {
  text-align: center;
}

/* =========================================================
   BARRAS DE PROGRESO CON PORCENTAJE INTERNO
========================================================= */
.progress-container {
  position: relative;
  width: 100%;
  margin: 5px 0;
}

.progress-container progress {
  width: 100%;
  height: 30px;
  border: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.progress-container progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

.progress-container progress::-webkit-progress-value {
  background: var(--color-amarillo);
  border-radius: 15px;
  transition: all 0.5s ease-in-out;
}

.progress-container progress::-moz-progress-bar {
  background: var(--color-amarillo);
  border-radius: 15px;
}

.progress-percentage {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--color-negro);
  font-family: var(--tipo-titular);
  font-size: 1rem;
  z-index: 2;
}

.progress-container progress::-webkit-progress-value {
  position: relative;
}

.skills {
  list-style: none;
  width: 100%;
}

.skills li {
  margin-bottom: 20px;
}

.skills h6 {
  color: var(--color-amarillo);
  font-family: var(--tipo-titular);
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 500;
}

a.boton {
  background: var(--color-amarillo);
  color: var(--color-negro);
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
}

/* =========================================================
   CLIENTES - CARRUSEL AUTOMÁTICO
========================================================= */
#clientes,
#recomendaciones {
  background: var(--blanco);
  padding: 0 0 60px 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

#clientes {
  padding-bottom: 0;
  padding-top: 20px;
}

#recomendaciones .columnas,
#clientes .columnas {
  max-width: var(--ancho-maximo);
  margin: 0 auto 0px auto;
  padding: 0 5%;
  width: 100%;
  color: var(--color-negro);
  text-align: center;
  display: block;
}

#clientes .columnas,
#recomendaciones .columnas {
  align-items: center !important;
}

.rayas {
  grid-template-columns: 1fr 2fr 1fr !important;
  display: grid !important;
  gap: 20px !important;
}

#recomendaciones .rayas {
  grid-template-columns: 1fr 1fr 1fr !important;
}

.raya {
  display: inline-block;
  background-color: var(--color-amarillo);
  height: 5px;
}

#recomendaciones .columnas h3,
#clientes .columnas h3 {
  margin-bottom: 10px;
}

#recomendaciones article:first-child {
  margin-bottom: 20px;
}

#clientes .carrusel-contenedor {
  width: 100%;
  position: relative;
}

.empresas {
  display: flex;
  gap: 60px;
  padding: 10px 0;
  width: 100%;
  animation: scroll-automatico 80s linear 2s infinite;
}

.empresas li {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.empresas li:hover {
  transform: scale(1.08);
}

.empresas img {
  max-width: 120px;
  height: auto;
  filter: grayscale(100%) contrast(0.6);
  transition: all 0.4s ease;
}

.empresas li:hover img {
  transform: scale(1.05);
}

@keyframes scroll-automatico {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 30px));
  }
}

.empresas:hover {
  animation-play-state: paused;
}

/* =========================================================
   RECOMENDACIONES - CARRUSEL
========================================================= */
#recomendaciones {
  background: var(--blanco);
  padding-bottom: 82px;
}

#recomendaciones .columnas {
  max-width: var(--ancho-maximo);
  margin: 0 auto 60px auto;
  padding: 0 5%;
}

.testimonio-card {
  background: var(--blanco);
  border: 2px solid Gainsboro;
  border-radius: 15px;
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.testimonios li:hover {
  transform: none !important;
}

.testimonios li:hover img {
  transform: none !important;
}

.testimonio-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.testimonio-header img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-amarillo);
}

.testimonio-info h6 {
  color: var(--color-negro);
  font-family: var(--tipo-titular);
  font-size: 1.4rem;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.testimonio-info small {
  color: var(--color-amarillo);
  font-family: var(--tipo-base);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonio-texto p {
  color: var(--color-negro);
  font-family: var(--tipo-base);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
  position: relative;
}

.testimonio-texto p::before {
  content: "“";
  font-size: 3rem;
  color: var(--color-amarillo);
  position: absolute;
  top: -15px;
  left: -10px;
  font-family: serif;
  opacity: 0.3;
}

.testimonios li {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 380px;
  scroll-snap-align: start;
}

.testimonios .testimonio-card {
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =========================================================
   CONTACTO - ESTILOS ACTUALIZADOS
========================================================= */
#contacto {
  background-color: #000;
  color: var(--blanco);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding-bottom: 0;
}

#contacto .contenedor-principal {
  max-width: var(--ancho-maximo);
  width: 100%;
  margin: 0 auto;
  padding: 0 5%;
}

#contacto .columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

#contacto h2 {
  color: var(--blanco);
  margin-bottom: 0;
}

#contacto h3 {
  color: var(--blanco);
  margin-bottom: 1.5rem;
}

#contacto h3 span {
  color: var(--color-amarillo);
  display: block;
  margin-bottom: 0;
  margin-top: -15px;
}

#contacto p {
  color: var(--blanco);
}

#contacto .redes {
  list-style: none;
  margin-top: 2rem;
}

#contacto .redes li {
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 15px;
}

#contacto .redes a {
  text-decoration: none;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

#contacto .redes a:hover {
  color: var(--blanco);
}

#contacto .redes a i {
  padding-right: 5px;
}

#contacto form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input:valid,
textarea:valid {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-contacto:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#contacto input::placeholder,
#contacto textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--tipo-base);
  font-size: 1rem;
}

#contacto input:focus::placeholder,
#contacto textarea:focus::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#contacto form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#contacto form .columnas {
  gap: 30px;
}

#contacto form>div:not(.form-footer) {
  width: 100%;
  margin-bottom: 0;
}

.form-footer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: end;
  margin-top: 5px;
}

.checkboxes-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-amarillo);
  flex-shrink: 0;
}

.checkbox-item label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  color: var(--blanco);
  font-size: 0.85rem;
  line-height: 1.3;
  font-weight: normal;
}

.checkbox-item a {
  color: var(--color-amarillo);
  text-decoration: none;
  font-size: 0.9em;
}

.checkbox-item a:hover {
  color: var(--blanco);
}

#contacto .form-footer button[type="submit"] {
  padding: 12px 25px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--tipo-titular);
  letter-spacing: 0.5px;
  width: 100%;
  height: fit-content;
  margin-top: 0;
}

#contacto .form-footer button[type="submit"]:hover {
  transform: translateY(2px);
}

#contacto input[type="text"],
#contacto input[type="email"],
#contacto input[type="tel"],
#contacto textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--blanco);
  font-family: var(--tipo-base);
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

#contacto .diagonal-cut svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  transform: rotate(180deg);
}

#contacto .diagonal-cut .shape-fill {
  fill: var(--color-amarillo);
}

.form-message {
  transition: all 0.3s ease;
}

input.touched,
textarea.touched {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

input.error,
textarea.error {
  border-color: #F44336 !important;
}

input.success,
textarea.success {
  border-color: #4CAF50 !important;
}

/* =========================================================
   FOOTER INDEPENDIENTE - ESTILOS CORREGIDOS
========================================================= */
.footer-integrado {
  background-color: var(--color-negro);
  color: var(--blanco);
  padding: 0;
  position: relative;
  overflow: hidden;
  background-image: url(img/img-footer.jpg);
  background-repeat: no-repeat;
  background-position-y: top;
  background-position-x: center;
  background-size: cover;
}

.footer-integrado .contenedor-principal {
  position: relative;
  z-index: 2;
}

.footer-integrado .footer-container {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  width: 100%;
  padding: 0 5%;
}

.footer-image {
  background-image: url(img/yo-footer.png);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  min-height: 300px;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-specialization {
  font-family: var(--tipo-titular);
  font-size: 1.3rem;
  color: var(--color-amarillo);
  font-weight: 500;
}

.footer-location {
  font-family: var(--tipo-base);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-legal {
  text-align: right;
  padding-bottom: 14px;
}

.footer-copyright {
  font-family: var(--tipo-base);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 5px 0;
}

.footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.footer-legal li {
  border-right: solid gray 1px;
  padding-right: 15px;
  padding-left: 15px;
  list-style: none;
}

.footer-legal li:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 15px;
}

.footer-legal a {
  color: var(--color-amarillo);
  text-decoration: none;
  font-family: var(--tipo-titular);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-legal a:hover {
  color: var(--blanco);
}

/* =========================================================
   BANNER DE COOKIES - ESTILOS COMPLETOS
========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-negro);
  color: var(--blanco);
  padding: 25px 5%;
  border-top: 3px solid var(--color-amarillo);
  z-index: 10000;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
}

.cookie-content {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  flex-direction: row;
  align-items: center;
}

.cookie-text h4 {
  color: var(--color-amarillo);
  font-family: var(--tipo-titular);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.cookie-text h4 img {
  width: 20px;
  display: inline-block;
  margin: 0px;
}

.cookie-text p {
  color: var(--blanco);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.cookie-links {
  display: flex;
  gap: 20px;
}

.cookie-link {
  color: var(--color-amarillo);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--tipo-titular);
  transition: color 0.3s ease;
}

.cookie-link:hover {
  color: var(--blanco);
}

.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.cookie-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-family: var(--tipo-titular);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  flex-grow: 1;
}

.cookie-btn-accept {
  background: var(--color-amarillo);
  color: var(--color-negro);
}

.cookie-btn-accept:hover {
  background: var(--blanco);
  transform: translateY(-2px);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--blanco);
  border: 2px solid var(--blanco);
}

.cookie-btn-reject:hover {
  background: var(--blanco);
  color: var(--color-negro);
}

.cookie-btn-config {
  background: transparent;
  color: var(--color-amarillo);
  border: 2px solid var(--color-amarillo);
}

.cookie-btn-config:hover {
  background: var(--color-amarillo);
  color: var(--color-negro);
}

.cookie-config-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-config-content {
  background: var(--color-negro);
  border: 3px solid var(--color-amarillo);
  border-radius: 15px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-config-content h4 {
  color: var(--color-amarillo);
  font-family: var(--tipo-titular);
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
}

.cookie-category {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cookie-toggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--blanco);
  font-family: var(--tipo-base);
  font-size: 1.1rem;
}

.cookie-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-amarillo);
}

.cookie-required {
  color: var(--color-amarillo);
  font-size: 0.9rem;
  font-style: italic;
}

.cookie-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-config-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

/* =========================================================
   MEDIA QUERIES
========================================================= */

/* =========================================================
   TABLETAS GRANDES (1024px y menos)
========================================================= */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
  }

  header nav ul {
    gap: 15px;
  }

  header nav ul li a {
    font-size: 1.3rem;
    padding: 15px 6px;
  }

  header #logo {
    width: 200px;
    height: 60px;
  }

  #competencias .columnas {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  #competencias article {
    position: static;
  }

  .proyectos li {
    flex: 0 0 calc(50% - 15px);
    min-width: 300px;
  }

  .carrusel-controles {
    padding: 0 20px;
  }

  .carrusel-prev,
  .carrusel-next {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .testimonios li {
    flex: 0 0 calc(50% - 15px);
    min-width: 320px;
  }

  .testimonio-card {
    padding: 30px 25px;
  }

  .testimonios .testimonio-card {
    height: 300px;
  }

  #contacto .columnas {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  #contacto h2 {
    font-size: 4em;
  }

  #contacto h3 {
    font-size: 2rem;
  }

  .footer-integrado .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  .footer-legal ul {
    justify-content: center;
  }

  .cookie-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
}

/* =========================================================
   TABLETAS (768px y menos)
========================================================= */
@media (max-width: 768px) {
  header #logo {
    width: inherit;
    height: auto;
  }

  #competencias {
    height: auto;
    background: var(--color-negro);
  }

  .areas-accion li>div {
    flex-direction: column;
    gap: 15px;
  }

  .popup-content {
    padding: 25px;
    width: 95%;
  }

  .popup-proyecto .proyecto-detalle {
    grid-template-columns: 1fr;
  }

  .popup-proyecto .proyecto-imagen {
    max-height: 365px;
  }

  .popup-proyecto .proyecto-contenido {
    overflow-y: scroll !important;
    max-height: 300px;
  }

  section .columnas {
    grid-template-columns: inherit;
    gap: 20px;
  }

  #contacto .redes a {
    font-size: 1.5rem;
  }

  .carrusel-contenedor {
    padding: 0 20px;
  }

  .carrusel-controles {
    display: none;
  }

  .proyectos li {
    flex: 0 0 280px;
  }

  .proyecto-link {
    height: 350px;
  }

  .proyecto-info h5 {
    font-size: 1.4rem;
  }

  .empresas {
    gap: 20px;
    justify-content: flex-start;
  }

  .empresas li {
    flex: 0 0 100px;
    padding: 10px;
  }

  .testimonios li {
    flex: 0 0 320px;
  }

  .testimonio-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .testimonio-header img {
    width: 60px;
    height: 60px;
  }

  .testimonio-info h6 {
    font-size: 1.2rem;
  }

  .testimonio-info small {
    font-size: 0.9rem;
  }

  .testimonio-texto p {
    font-size: 1rem;
  }

  .testimonios .testimonio-card {
    height: auto;
    min-height: 280px;
  }

  #contacto form .columnas {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #contacto {
    padding: 100px 5% 60px 5%;
  }

  #contacto h2 {
    font-size: 4.6em;
  }

  #contacto h3 {
    font-size: 1.8rem;
  }

  .form-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #contacto .form-footer button[type="submit"] {
    order: -1;
    margin-bottom: 10px;
  }

  .footer-integrado {
    padding: 30px 5%;
  }

  .footer-image {
    min-height: 200px;
  }

  .footer-specialization {
    font-size: 1.1rem;
  }

  .progress-container progress {
    height: 25px;
  }

  .progress-percentage {
    font-size: 0.9rem;
    right: 12px;
  }

  .skills h6 {
    font-size: 1.1rem;
  }

  .cookie-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }

  .cookie-links {
    justify-content: center;
  }

  .cookie-config-content {
    padding: 25px 20px;
  }

  .cookie-config-buttons {
    flex-direction: column;
  }

  #clientes {
    padding: 60px 0;
  }

  .empresas {
    gap: 40px;
    animation-duration: 20s;
  }

  .empresas li {
    padding: 20px 30px;
  }

  .empresas img {
    max-width: 100px;
  }

  /* Menú hamburguesa en tabletas */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--color-amarillo);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .hamburger-menu {
    display: flex;
  }

  .menu-toggle:checked~.nav-menu {
    right: 0;
  }

  .menu-toggle:checked~.hamburger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

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

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

  .nav-menu li {
    width: 100%;
    margin: 0;
  }

  .nav-menu li a {
    display: block;
    padding: 15px 0;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .nav-menu li:last-child a {
    border-bottom: none;
  }

  .nav-menu .btn-contacto {
    margin-top: 20px;
    justify-content: center;
    width: 100%;
    text-align: left;
    padding-left: 15px;
  }

  .btn-contacto .arrow {
    padding-right: 10px;
  }

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

  header #logo {
    width: 200px;
    height: 50px;
  }

  /* Estilos específicos para tabletas */
  .rayas {
    grid-template-columns: 1fr !important;
    display: inherit !important;
    gap: 0 !important;
  }

  .raya {
    display: none;
  }

  .flecha-contenedor {
    margin-bottom: -180px;
    margin-top: -110px;
  }

  .contenedor-principal {
    padding: 0 !important;
  }

  #competencias h2,
  #curriculum h2 {
    font-size: 4.75rem;
  }

  .layer-persona {
    height: 88%;
    left: 53%;
  }

  #curriculum {
    background: var(--blanco);
  }

  #curriculum .caja-negra {
    padding: 20px;
  }

  #curriculum .caja-negra article:first-child {
    max-width: 100%;
  }

  #curriculum {
    height: auto;
  }

  section .columnas {
    gap: 0;
  }

  .footer-image {
    display: none;
  }

  #contacto form {
    margin-bottom: 30px;
  }

  .popup-grid {
    display: inherit;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
    align-items: start;
  }


  .popup-resultados {
    padding: 0;
    border-left:0;

  }
}

/* =========================================================
   MÓVILES GRANDES (640px y menos)
========================================================= */
@media (max-width: 640px) {
  header {
    padding: 10px 0;
  }

  .header-container {
    flex-direction: inherit;
    gap: 10px;
    padding: 0 15px;
  }

  header #logo {
    width: 200px;
    height: 50px;
  }

  header nav ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  header nav ul li a {
    font-size: 1rem;
    padding: 8px 4px;
  }

  .btn-contacto {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  #competencias h2,
  #curriculum h2 {
    font-size: 3.8rem;
  }
}

/* =========================================================
   MÓVILES PEQUEÑOS (480px y menos)
========================================================= */
@media (max-width: 480px) {
  .proyectos li {
    flex: 0 0 260px;
  }

  .proyecto-link {
    height: 300px;
  }

  .proyecto-overlay {
    padding: 20px;
  }

  h2 {
    font-size: 4em;
  }

  h3 span {
    font-size: 2rem;
  }

  .testimonios li {
    flex: 0 0 280px;
  }

  .testimonio-card {
    padding: 25px 20px;
  }

  .testimonio-header img {
    width: 50px;
    height: 50px;
  }

  .testimonio-info h6 {
    font-size: 1.1rem;
  }

  .testimonio-texto p {
    font-size: 0.95rem;
  }

  .progress-container progress {
    height: 22px;
  }

  .progress-percentage {
    font-size: 0.8rem;
    right: 10px;
  }

  .cookie-banner {
    padding: 20px 15px;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-links {
    flex-direction: column;
    gap: 10px;
  }

  .empresas {
    gap: 30px;
    animation-duration: 15s;
  }

  .empresas li {
    padding: 15px 25px;
  }

  .empresas img {
    max-width: 80px;
  }

  #contacto .contenedor-principal {
    padding-bottom: 50px;
    padding-top: 50px;
  }

  .footer-integrado {
    padding-bottom: 0;
  }

  #contacto .contenedor-principal {
    padding-bottom: 0;
  }

  .footer-image {
    display: none;
  }

  #contacto {
    background: var(--color-negro);
    padding-bottom: 0;
  }

  .footer-legal ul {
    display: inline-block;
  }

  .footer-legal li {
    border: 0;
    padding: 0;
  }

  .layer-persona {
    height: 82%;
    top: 19%;
  }

  .hero-layer {
    width: 100%;
  }

  header #logo {
    width: 360px;
    height: 50px;
  }

  /* Acordeón móvil para competencias */
  .mobile-competencia-header {
    padding: 15px;
    gap: 12px;
  }

  .mobile-competencia-icon {
    width: 40px;
    height: 40px;
  }

  .mobile-competencia-icon img {
    width: 40px;
    height: 40px;
  }

  .mobile-competencia-header h6 {
    font-size: 1.1rem;
  }

  .mobile-competencia-content p {
    font-size: 0.95rem;
  }

  /* Menú hamburguesa en móviles pequeños */
  .nav-menu {
    width: 100%;
  }

  header #logo {
    width: 180px !important;
    height: 45px;
  }
}