* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/*-----FONTS-----*/
@font-face {
  font-family: 'Inter-regular';
  src: url('../fonts/Inter-Regular.woff2') format('woff2'),
    url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-Light';
  src: url('../fonts/Inter-Light.woff2') format('woff2'),
    url('../fonts/Inter-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-Bold';
  src: url('../fonts/Inter-Bold.woff2') format('woff2'),
    url('../fonts/Inter-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-ExtraLight';
  src: url('../fonts/Inter-ExtraLight.woff2') format('woff2'),
    url('../fonts/Inter-ExtraLight.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}


body {
  font-family: 'Inter', sans-serif;
}

:root {
  --negro: black;
  --blanco: white;
  --azul: #2B49FF;
  --espaciado-base: 16px;

  /* Fuentes */
  --font-bold: 'Inter-Bold', sans-serif;
  --font-regular: 'Inter-regular', sans-serif;
  --font-light: 'Inter-Light', sans-serif;

  /* Tamaños de fuente */
  --font-size-title: 60px;
  --font-size-subtitle: 35px;
  --font-size-parrafo: 20px;
}

/*SELECCIÓN DE TEXTO*/
/* Cambiar color de selección de texto */
::selection {
  background: var(--azul);
  color: white;
}

/* Para compatibilidad con Firefox */
::-moz-selection {
  background: var(--azul);
  color: white;
}

/**************************
     ANCHO LAPTOP
***************************/
.ancho {
  box-sizing: border-box;
  height: 100%;
  margin: 0 auto;
  width: 100%;
  /*  padding: 0 15px; */
  min-width: 320px;
  max-width: 1600px;
}

@media (min-width: 1025px) {
  .ancho {
    width: 85%;
    min-width: 1025px;
  }
}

/**************************
     MENÚ
***************************/
header {
  font-family: var(--font-medium);
  font-weight: normal;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  background-color: var(--negro);
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

header.scroll {
  background-color: white;
  color: var(--negro);
  opacity: 90%;
}

header.scroll .logo img {
  content: url('../img/iconos/richard-leyva-azul.svg');
}

header .header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  transition: filter 0.3s ease;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul li {
  margin: 0 15px;
  position: relative;
}

nav ul li a,
.menu-mobile ul li a {
  position: relative;
  font-size: 18px;
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
  padding: 5px 0;
}

nav ul li a::after,
.menu-mobile ul li a::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  height: 2px;
  background-color: var(--azul);
  top: 55%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  border-radius: 1px;
}

nav ul li a:hover::after,
nav ul li.active a::after,
.menu-mobile ul li a:hover::after,
.menu-mobile ul li.active a::after {
  transform: translateY(-50%) scaleX(1);
}

header.scroll nav ul li a {
  color: var(--color-primario);
}

header.scroll nav ul li a::after {
  background-color: var(--azul);
}

.social-icons img {
  width: 25px;
  height: 25px;
  margin-left: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* HAMBURGUESA ANIMADA */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

header.scroll .hamburger.active .bar,
header.scroll .hamburger .bar {
  background-color: var(--azul) !important;
}

/* MENÚ MOBILE */
.menu-mobile {
  display: none; /* 🔹 Oculto por defecto en desktop */
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 250px;
  height: 100%;
  background-color: var(--negro);
  color: white;
  padding-top: 20px;
  transition: transform 0.3s ease;
  z-index: 1100;
}

.menu-mobile.active {
  transform: translateX(0);
}

.menu-mobile ul {
  list-style: none;
  padding-top: 120px;
  margin: 0;
}

.menu-mobile ul li {
  margin: 15px 0;
}

.menu-mobile ul li a {
  position: relative;
  font-size: 20px;
  text-decoration: none;
  color: white;
  padding: 10px 20px;
  display: inline-block;
  transition: color 0.3s ease;
}

.menu-mobile ul li a:hover,
.menu-mobile ul li.active a {
  color: white;
}

.menu-mobile ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background-color: var(--azul);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.menu-mobile ul li a:hover::after,
.menu-mobile ul li.active a::after {
  transform: translateX(-50%) scaleX(1);
}

.social-icons-mobile {
  display: flex;
  gap: 10px;
  padding-left: 20px;
}

.social-icons-mobile img {
  width: 45px;
  height: 45px;
  margin: 0 5px;
  transition: transform 0.3s ease, filter 0.3s ease;
  padding-left: 10px;
}

.social-icons-mobile img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.icon {
  width: 40px;
  height: 40px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

.icon.linkedin {
  background-image: url("../img/iconos/linkedin.svg");
}

.icon.facebook {
  background-image: url("../img/iconos/facebook.svg");
}

.icon.linkedin:hover {
  background-image: url("../img/iconos/linkedin-blanco.svg");
}

.icon.facebook:hover {
  background-image: url("../img/iconos/facebook-blanco.svg");
}

.menu-mobile .logo-circular-mobile {
  position: absolute;
  top: 50px;
  left: 25%;
  transform: translateX(-50%);
  z-index: 1201;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-mobile .logo-circular-mobile img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.6s ease-in-out;
}

.logo-circular-mobile img:hover {
  transform: rotate(360deg);
}


/* 🔹 RESPONSIVE */
@media (max-width: 768px) {
  .menu {
    display: none; /* Oculto menú de escritorio */
  }

  .hamburger {
    display: flex; /* Activo botón hamburguesa */
  }

  .menu-mobile {
    display: block; /* 🔹 Ahora sí aparece en mobile */
  }

  .logo img {
    height: 35px;
  }

  header .header-container {
    padding: 23px;
  }

  .logo-circular-mobile {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    z-index: 1300;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo-circular-mobile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
  }
}


/**************************
  SLIDER BANNER
***************************/
/* Contenedor del slider */
.slider-container {
  font-family: "Inter-Bold";
  position: relative;
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
}

/* Slider */
.slider {
  display: flex;
  transition: transform 0.7s ease-in-out;
}

/* Diapositiva */
.slide {
  min-width: 100%;
  height: 1000px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


/* Contenido de la diapositiva */
.slide-content {
  /*  background-color: rgba(67, 95, 58, 0.8);*/
  color: #fff;
  padding: 20px;
  text-align: left;
  /* Alinea el texto a la izquierda */
  max-width: 80%;
  border-radius: 5px;
  position: absolute;
  /* left: 40px;  Alinea el contenido a la izquierda */
  bottom: 50px;
  /* Coloca el contenido cerca de la parte inferior */
}

/* Título de la diapositiva */
.slide-content h2 {
  font-family: "Montserrat-Bold";
  font-size: 2em;
  margin: 0 0 10px 0;
  /* Espacio abajo */
}

/* Subtítulo de la diapositiva */
.slide-content p {
  font-size: 1.2em;
  margin: 0 0 20px 0;
  /* Espacio abajo */
}

/* Estilo del botón */
.btn {
  font-family: 'inter';
  display: inline-block;
  padding: 10px 20px;
  background-color: #36A400;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
}

.btn:hover {
  background-color: #435F3A;
  color: white;
}

/* Puntos de navegación */
.navigation-dots {
  text-align: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
}

.dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--azul);
}

/* Botones de navegación */
.nav-button-slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  transition: background-color 1s ease;
  z-index: 10;
  /* Asegura que el botón esté encima del slider */
}

.nav-button-slider img {
  width: 45px;
  height: 45px;
}

.nav-button-slider.left {
  left: 120px;
}

.nav-button-slider.right {
  right: 120px;
}

/* Responsivo */
@media (max-width: 768px) {
  .slide {
    height: 600px;
    background-position: 50% center;
  }

  .slide-content {
    /* background-color: rgba(67, 95, 58, 0.8); */
    color: #fff;
    padding: 20px;
    text-align: left;
    max-width: 80%;
    border-radius: 5px;
    position: absolute;
    /* left: 40px;*/
    bottom: 50px;
  }

  .slide-content h2 {
    font-family: "LTMuseum-Medium";
    font-size: 1.5em;
    line-height: 1;
  }

  .slide-content p {
    font-size: 0.9em;
  }

  .btn {
    font-size: 14px;
  }

  .nav-button-slider {
    padding: 8px;
  }

  .nav-button-slider img {
    width: 0px;
    height: 0px;
  }

  .nav-button-slider img {
    width: 40px;
    height: 40px;
  }

  .nav-button-slider.left {
    left: 10px;
  }

  .nav-button-slider.right {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .slide {
    height: 630px;
  }
}

/* Asegura que cada enlace cubra toda la diapositiva */
.slide-link {
  display: block;
  min-width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.slider {
  display: flex;
}

/**************************
        FOOTER
***************************/
.footer-cadeneta {
  position: relative;
  /* necesario para posicionar .footer-top */
  background: var(--negro);
  color: var(--blanco);
  padding: 2rem 1rem;
  font-family: 'Inter';
}

.container-cadeneta {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  align-items: start;
  text-align: left;
}

.footer-logo img {
  width: 80px;
  transition: transform 0.6s ease-in-out;
}

.footer-logo img:hover {
  transform: rotate(360deg);
}

.footer-column h4 {
  margin-bottom: 0.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.footer-column a:hover {
  transform: translateX(5px);
  color: var(--azul);
}

.icon-arrow {
  width: 14px;
  height: 14px;
}

.footer-top {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.back-to-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-decoration: none;
}

.icon-up {
  transition: transform 0.3s ease;
  width: 50px;
  height: 50px;
}

.back-to-top:hover .icon-up {
  transform: translateY(-5px);
}

hr {
  border: none;
  border-top: 1px solid white;
  margin: 2rem 0 1rem;
}

.copyright {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column a {
    justify-content: center;
  }

  .footer-top {
    position: static;
    margin-top: 2rem;
    align-items: center;
  }
}

.autor-link {
  color: var(--blanco);
  font-weight: normal;
  text-decoration: none;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.autor-link:hover {
  color: var(--azul);
  font-weight: bold;
}

/**************************
        WORKS
***************************/
.portfolio-container {
  margin-top: 100px;
  padding: 20px;
}

.filter-buttons {
  text-align: left;
  margin-bottom: 20px;
}

.filter-buttons button {
  background-color: transparent;
  font-size: 20px;
  margin: 15px;
  cursor: pointer;
  border: none;
  color: black;
  border-radius: 0px;
}

.filter-buttons button:hover {
  color: #0F3CEB;
  background-color: transparent;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.portfolio-item {
  position: relative;
  width: calc(33.333% - 20px);
}

.portfolio-image {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(15, 60, 235, 0.85);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-description {
  color: white;
  padding: 10px;
  border-bottom-right-radius: 5px;
  width: auto;
}

.portfolio-description h1,
.portfolio-description p {
  margin: 0;
}

.portfolio-description h1 {
  font-family: var(--font-regular);
  font-weight: normal;
  font-size: 35px;
}

.portfolio-description p {
  font-family: var(--font-light);
  font-weight: normal;
  font-size: 25px;
}

.portfolio-icon {
  width: 24px;
  height: auto;
  transition: transform 0.3s ease;
}

.portfolio-description:hover .portfolio-icon {
  transform: translateX(5px);
}


@media screen and (max-width: 768px) {
  .portfolio-item {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .portfolio-item {
    width: 100%;
  }

  .filter-buttons {
    text-align: center;
    margin-bottom: 20px;
  }

  .filter-buttons button {
    margin: 8px;
  }

  .portfolio-description h1 {
    font-size: 25px;
  }

  .portfolio-description p {
    font-size: 18px;
  }

}

/**************************
    PROYECTO-HOME
***************************/
.proyectos-home {
  width: 100vw;
  overflow: hidden;
}

.proyectos-home-titulo {
  font-family: var(--font-bold);
  padding: 35px 0px 35px 35px;
  font-size: 40px;
  color: #0F3CEB;
}

.proyectos-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100vw;
}

.proyectos-home-card {
  text-decoration: none;
  color: inherit;
  position: relative;
}

.proyectos-home-item {
  overflow: hidden;
  position: relative;
}

.proyectos-home-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.proyectos-home-item:hover img {
  transform: scale(1.1);
}

.ver-proyecto {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: transparent;
  color: var(--blanco);
  font-family: var(--font-regular);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ver-proyecto .flecha {
  opacity: 0;
  transform: translateX(-5px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.proyectos-home-item:hover .ver-proyecto {
  color: #0F3CEB;
  transform: translateX(5px);
}

.proyectos-home-item:hover .ver-proyecto .flecha {
  opacity: 1;
  transform: translateX(0);
}

/* Animación inicial */
.animar-img {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animar-img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .proyectos-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .proyectos-home-grid {
    grid-template-columns: 1fr;
  }

  .proyectos-home-titulo {
    padding: 25px 0px 25px 0px;
    text-align: center;
    font-size: 30px;
  }

  .ver-proyecto {
    font-size: 14px;
  }
}


/**************************
      MIS SERVICIOS
***************************/
.mis-servicios {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 50px 50px 50px;
  color: var(--azul);
}

.mis-servicios-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 100px;
  padding: 60px 0;
}

.mis-servicios-texto {
  flex: 1.5;
}

.mis-servicios-lista {
  flex: 1;
}

.mis-servicios-line {
  border: none;
  border-top: 1px solid var(--negro);
  margin-bottom: 20px;
}

.mis-servicios-tag {
  font-weight: bold;
  text-transform: uppercase;
  color: #0F3CEB;
  margin-bottom: 10px;
}

.mis-servicios-title {
  font-family: var(--font-bold);
  font-weight: normal;
  font-size: 50px;
  color: var(--negro);
  margin-bottom: 20px;
}

.mis-servicios-subtitle {
  font-family: var(--font-regular);
  font-size: 25px;
  color: var(--negro);
}

.mis-servicios-description {
  font-family: var(--font-regular);
  font-size: 35px;
  color: #0F3CEB;
}

.mis-servicios-lista ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mis-servicios-lista li {
  font-family: var(--font-regular);
  font-size: 30px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  color: var(--negro);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mis-servicios-lista a {
  text-decoration: none;
}

.mis-servicios-lista hr {
  border: none;
  border-top: 1px solid var(--negro);
  margin: 0;
}

.arrow {
  opacity: 0;
  margin-left: 5px;
  transition: all 0.3s ease;
  color: #0F3CEB;
}

.mis-servicios-lista li:hover {
  color: var(--azul);
}

.mis-servicios-lista li:hover .arrow {
  opacity: 1;
  color: var(--azul);
}

@media (max-width: 768px) {
  .mis-servicios-container {
    flex-direction: column;
    text-align: left;
    align-items: normal;
    gap: 30px;
    padding: 20px 0;

  }

  .mis-servicios {
    padding: 20px;
  }

  .mis-servicios-title {
    font-size: 30px;
  }

  .mis-servicios-subtitle {
    font-size: 20px;
  }

  .mis-servicios-description {
    font-size: 1rem;
  }

  .mis-servicios-lista li {
    font-size: 25px;
  }
}

/**************************
      INFO
***************************/
.infoyo {
  padding: 30px 0px 30px 0px;
  color: var(--negro);
  font-family: 'Inter';
}

.infoyo-line {
  border: none;
  border-top: 1px solid var(--negro);
  margin-bottom: 40px;
}

.infoyo-container {
  max-width: 1400px;
  padding: 0px 50px;
  margin: 0 auto;
}

.infoyo-tag {
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #0F3CEB;
}

.infoyo-title {
  font-family: var(--font-bold);
  font-weight: normal;
  font-size: 50px;
  line-height: 1.3;
  color: var(--negro);
  padding: 30px 0;
}

.subrayado {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .infoyo-title {
    font-size: 25px;
    padding: 0;
  }

  .infoyo-container {
    padding: 0px 30px;
  }

  .infoyo {
    padding: 0px;

  }

}


/**************************
      PROYECTO
***************************/
.container {
  font-family: 'Inter';
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

/* SECCIÓN SUPERIOR */
.top-section {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 130px 20px 50px 20px;
}

.left-col,
.right-col {
  flex: 1;
  min-width: 300px;
}

.project-title {
  font-family: var(--font-bold);
  font-size: 40px;
  color: var(--azul);
  font-weight: normal;
  margin-bottom: 10px;
}

.project-category {
  font-family: var(--font-regular);
  font-size: 25px;
  color: var(--negro);
}

.accordion-summary {
  font-family: var(--font-regular);
  font-size: 20px;
  color: var(--negro);
  margin-bottom: 10px;
  line-height: 1.3;
}

.accordion-toggle {
  font-family: var(--font-bold);
  font-weight: normal;
  font-size: 20px;
  cursor: pointer;
  color: var(--azul);
  transition: color 0.3s;
  margin-top: 10px;
}

.accordion-toggle:hover {
  color: var(--negro)
}

.accordion-content {
  font-family: var(--font-regular);
  display: none;
  margin-top: 10px;
  font-size: 20px;
  color: var(--negro);
  line-height: 1.3;
}

.accordion-content p {
  margin-top: 10px;

}

/* IMÁGENES */
.image-full {
  margin-bottom: 20px;
  width: 100%;
  height: auto;
  display: block;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.image-row img {
  width: 100%;
  flex: 1 1 48%;
  height: auto;
}

/* 2 IMÁGENES */
.fila-2imagenes {
  display: flex;
  flex-wrap: wrap;
  gap: 10;
  /* sin espacio entre imágenes, cámbialo si quieres */
}

.fila-2imagenes img {
  margin-bottom: 20px;
  width: 50%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .fila-2imagenes {
    flex-direction: column;
  }

  .fila-2imagenes img {
    width: 100%;
  }
}

/* TEXTO PROYECTO */
.text-proyecto {
  font-family: var(--font-regular);
  font-size: 20px;
  color: var(--negro);
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}

.title-page {
  font-family: var(--font-bold);
  font-weight: normal;
  font-size: 40px;
  color: var(--azul);
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.col-3,
.col-9,
.col-6 {
  padding: 0;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 10px 30px;
}

.box-stick {
  padding: 0 0 10px;
}

@media (max-width: 768px) {

  .col-3,
  .col-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-6 {
    font-size: 18px;
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }

  .title-page {
    font-size: 25px;
  }

  .text-proyecto {
    font-size: 16px;
    padding: 18px;
    line-height: 1.3;
  }

  .accordion-summary {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .accordion-content {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.3;
  }

  .accordion-content p {
    margin-top: 10px;
  }

  .accordion-toggle {
    font-size: 18px;
    margin-top: 10px;
  }

  .project-title {
    font-size: 35px;
  }

  .top-section {
    margin-top: 100px;
    padding: 20px;
  }

  .project-category {
    font-size: 18px;
  }

}

.imagen-video {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 20px;
  overflow: hidden;
}

.imagen-video video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/*SLIDER*/
.carrusel-proyectos-container {
  position: relative;
  width: 100vw;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 20px;
}

.carrusel-proyectos-slider {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carrusel-proyectos-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carrusel-proyectos-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.carrusel-proyectos-dots span {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.carrusel-proyectos-dots span.active {
  background: #0F3CEB;
}


/**************************
      MÁS PROYECTOS
***************************/
.mas-proyectos {
  font-family: 'Inter';
  background-color: #fff;
  padding: 40px 0;
  width: 100%;
}

.titulo-seccion h2 {
  text-align: left;
  color: var(--azul);
  font-size: 40px;
  margin: 0 0 30px 20px;
}

.proyectos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  width: 100%;
}

.proyecto {
  position: relative;
  overflow: hidden;
  flex: 1 1 50%;
  max-width: 50%;
}

.proyecto a {
  display: block;
  width: 100%;
  height: 100%;
}

.proyecto .contenido {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.proyecto img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.proyecto.anterior:hover img {
  transform: translateX(30px);
}

.proyecto.siguiente:hover img {
  transform: translateX(-30px);
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  background-color: #0F3CEB;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  z-index: 2;
}

.anterior .overlay {
  left: -100px;
}

.anterior:hover .overlay {
  left: 0;
}

.siguiente .overlay {
  right: -100px;
  left: auto;
}

.siguiente:hover .overlay {
  right: 0;
  left: auto;
}

.flecha {
  font-size: 30px;
  font-weight: bold;
  color: white;
}

.etiqueta {
  position: absolute;
  bottom: 10px;
  left: 10px;
  /* background: rgba(0, 0, 0, 0.75); */
  padding: 5px 10px;
  color: #fff;
  font-family: monospace;
  text-align: left;
  border-radius: 4px;
}

.etiqueta .tag {
  background: yellow;
  color: black;
  font-weight: bold;
  font-size: 14px;
  padding: 2px 4px;
}

.etiqueta .nombre {
  font-size: 16px;
  display: block;
  margin-top: 2px;
}

.volver {
  margin-top: 40px;
  text-align: center;
}

.volver a {
  font-family: var(--font-regular);
  color: var(--azul);
  font-weight: normal;
  text-decoration: none;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.flecha-volver {
  opacity: 0;
  margin-right: 5px;
  transition: opacity 0.3s ease, margin-right 0.3s ease;
}

.volver a:hover .flecha-volver {
  opacity: 1;
  margin-right: 10px;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .proyecto {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

@media screen and (max-width: 480px) {
  .etiqueta {
    font-size: 12px;
    padding: 4px 8px;
  }

  .etiqueta .nombre {
    font-size: 14px;
  }

  .flecha {
    font-size: 24px;
  }

  .volver a {
    font-size: 16px;
  }

  .titulo-seccion h2 {
    font-size: 25px;
  }
}

/**************************
     ARCHIVO
***************************/
.archivo .portfolio-container {
  margin-top: 100px;
  padding: 20px;
}

.archivo .filter-buttons {
  text-align: left;
  margin-bottom: 20px;
}

.archivo .filter-buttons button {
  background-color: transparent;
  font-size: 20px;
  margin: 15px;
  cursor: pointer;
  border: none;
  color: black;
  border-radius: 0px;
}

.archivo .filter-buttons button:hover {
  color: #0F3CEB;
  background-color: transparent;
}

.archivo .portfolio-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  /* 4 columnas base */
}

.archivo .portfolio-item {
  position: relative;
  width: 100%;
}

.archivo .portfolio-image {
  width: 100%;
  height: auto;
  display: block;
}

.archivo .portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background: #0F3CEB;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.archivo .portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.archivo .portfolio-description {
  color: white;
  padding: 10px;
  border-bottom-right-radius: 5px;
  width: auto;
}

.archivo .portfolio-description h1,
.archivo .portfolio-description p {
  margin: 0;
}

.archivo .portfolio-description h1 {
  font-size: 16px;
}

.archivo .portfolio-description p {
  font-size: 24px;
}

/* Responsivo: 3 columnas en tablets grandes */
@media screen and (max-width: 1024px) {
  .archivo .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsivo: 2 columnas en tablets */
@media screen and (max-width: 768px) {
  .archivo .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsivo: 1 columna en móviles */
@media screen and (max-width: 480px) {
  .archivo .portfolio-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .archivo .filter-buttons {
    text-align: center;
  }

  .archivo .filter-buttons button {
    margin: 8px;
  }

}

/*CONTÁCTAME*/
.contact-section {
  color: var(--azul);
  font-family: 'Inter';
  margin-top: 80px;
}

.container-contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.contact-section h2 {
  font-family: var(--font-bold);
  font-weight: normal;
  color: var(--negro);
  font-size: 35px;
  margin: 0.5rem 0 2rem;
}

.title {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 16px;
}

.divider {
  border-top: 1px solid var(--negro);
  margin: 2rem 0;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.label {
  font-family: var(--font-regular);
  font-weight: normal;
  font-size: 20px;
  margin-bottom: 0.5rem;
}

.contact-info a {
  font-family: var(--font-regular);
  font-size: 35px;
  margin: 0;
  color: var(--negro);
  text-decoration: none;
}

.contact-info p {
  margin: 0;
  color: var(--azul);
  text-decoration: none;
}

.social-icons-contactame img {
  width: 35px;
  margin-right: 0.5rem;
  margin-top: 10px;
}

.phone {
  font-family: var(--font-bold);
  font-weight: normal;
  font-size: 35px;
  color: var(--negro);
  margin-top: 1rem;
}

.phone a {
  font-family: var(--font-bold);
  font-weight: normal;
  font-size: 35px;
  color: var(--negro);
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone a:hover {
  color: var(--azul);
  text-decoration: none;
}

.contact-form {
  margin-top: 30px;
  margin-bottom: 30px;
}

.contact-form h3 {
  font-family: var(--font-bold);
  font-weight: normal;
  font-size: 25px;
  color: var(--negro);
  margin-bottom: 1rem;
}


.contact-form textarea {
  width: 100%;
  height: 150px;
  padding: 1rem;
  border: 2px solid var(--negro);
  margin-bottom: 1.5rem;
  font-family: inherit;
  color: var(--azul);
  font-size: 18px;
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-row input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-bottom: 2px solid var(--negro);
  color: #0F3CEB;
  font-size: 18px;
}

button[type="submit"] {
  background-color: var(--negro);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 30px;
}

button[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background-color: var(--azul);
  /* azul */
  z-index: -1;
  transition: width 0.4s ease;
  transform: translateX(-50%);
}

button[type="submit"]:hover::before {
  width: 200%;
}

input:focus,
textarea:focus,
button:focus {
  outline: none;
}

@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    gap: 1.5rem;
  }

  .input-row {
    flex-direction: column;
  }

  .contact-section h2 {
    font-size: 25px;
  }

  .contact-form {
    margin-top: 0px;
  }

  .contact-info a {
    font-size: 25px;
  }

  .phone {
    font-size: 30px;
  }

  .contact-info {
    padding-bottom: 30px;
  }

  .container-contact {
    padding: 30px 30px;
  }

}

/**************************
BOTONES LINKS INDEPENDIENTES
***************************/
.ley {
  font-family: var(--font-regular);
  font-size: 25px;
  color: var(--azul);
  margin: 30px auto;
  width: 100%;
  text-align: center;
}

.ley a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.ley-texto,
.ley-flecha {
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.ley-flecha {
  width: 1em;
  height: 1em;
  object-fit: contain;
  margin-left: 0.5em;
}

.ley-izquierda .ley-flecha {
  margin-left: 0;
  margin-right: 0.5em;
}

.ley-derecha a {
  flex-direction: row;
}

.ley-derecha:hover {
  color: black;
}

.ley-derecha:hover .ley-texto {
  transform: translateX(-5px);
}

.ley-derecha:hover .ley-flecha {
  transform: translateX(5px);
}

.ley-izquierda a {
  flex-direction: row-reverse;
}

.ley-izquierda:hover {
  color: black;
}

.ley-izquierda:hover .ley-texto {
  transform: translateX(5px);
}

.ley-izquierda:hover .ley-flecha {
  transform: translateX(-5px);
}

.ley.activo {
  color: var(--azul);
}

@media screen and (max-width: 768px) {
  .ley {
    font-size: 20px;
  }

  .ley a {
    flex-direction: row !important;
    justify-content: center;
    text-align: center;
  }

  .ley .ley-flecha {
    margin-left: 0.5em !important;
    margin-right: 0 !important;
  }

  .ley:hover .ley-texto,
  .ley:hover .ley-flecha {
    transform: none;
  }
}

/**************************
      CLIENTES
***************************/
.nuestros-clientes {
  font-family: 'Inter';
  font-size: 3rem;
  color: var(--azul);
  max-width: 1200px;
  margin: auto;
  margin-top: 50px;
}

.nuestros-clientes P {
  font-size: 1rem;
}

.nuestros-clientes H2 {
  font-size: 35px;
  font-weight: bold;
}


.clientes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* PC - 5 columnas */
  gap: 15px;
  justify-items: center;
}

/* Tablet */
@media (max-width: 1024px) {
  .clientes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nuestros-clientes {
    padding: 0px 20px 0px 20px;
  }

  .nuestros-clientes h2 {
    font-size: 25px;
  }
}

/**************************
      INFO INPENDIENTE
***************************/
.texcont {
  padding: 150px 0px 50px 0px;
  color: #0F3CEB;
  font-family: 'Inter';
}

.texcont-line {
  border: none;
  border-top: 1px solid #0F3CEB;
  margin: 40px 0px 0px 0px;
}

.texcont-container {
  max-width: 1400px;
  margin: 0 auto;
}

.texcont-tag {
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #0F3CEB;
}

.texcont-title {
  font-family: 'Inter';
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #0F3CEB;
}

.texcont-subtitle {
  font-family: 'Inter';
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #0F3CEB;
}

@media (max-width: 768px) {
  .texcont-title {
    font-size: 25px;
    padding-top: 90px;
  }

  .texcont {
    padding: 20px 20px;
    color: #0F3CEB;
    font-family: 'Inter';
  }

}

/**************************
      NOSOTROS
***************************/
.nosotros {
  max-width: 1400px;
  margin: 0 auto;
}

.nosotros__fila {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.fila-1 .nosotros__texto {
  order: 1;
}

.fila-1 .nosotros__foto {
  order: 2;
}

.fila-2 .nosotros__foto {
  order: 1;
}

.fila-2 .nosotros__texto {
  order: 2;
}

.nosotros__texto {
  flex: 0 0 70%;
  background-color: #0F3CEB;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.nosotros__texto h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.nosotros__texto h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

.nosotros__texto p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.nosotros__iconos a {
  margin-right: 1rem;
}

.nosotros__iconos img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.nosotros__iconos img:hover {
  transform: scale(1.1);
}

.nosotros__foto {
  flex: 0 0 30%;
  display: flex;
  align-items: stretch;
}

.nosotros__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: opacity 0.3s ease;
  display: block;
}

/* Estilo exclusivo para el texto de la fila 2 */
.fila-2 .nosotros__texto {
  background-color: #f2f2f2;
  /* Gris claro */
  color: #0F3CEB;
  /* Azul oscuro */
}

.fila-2 .nosotros__texto h3 {
  color: #0F3CEB;
}

/*   .fila-2 .nosotros__iconos img {
           filter: hue-rotate(180deg);
             Opcional: cambia ligeramente el tono de los íconos 
        }*/

/* Responsive */
@media (max-width: 768px) {
  .nosotros__fila {
    flex-direction: column;
  }

  .nosotros__foto,
  .nosotros__texto {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .nosotros__foto {
    order: 1 !important;
  }

  .nosotros__texto {
    order: 2 !important;
  }
}

/**************************
      LINEA DIVISORIA
***************************/
.linea-wrapper {
  padding: 0;
}

.linea-divisoria {
  border: none;
  border-top: 1px solid #0F3CEB;
  margin: 40px auto 0 auto;
  width: 100%;
  max-width: 1400px;
}

/* Media query para móviles */
@media (max-width: 768px) {
  .linea-wrapper {
    padding: 0 20px;
  }
}