/* CSS */
.color-1 {
  color: #b9462d;
}
.color-2 {
  color: #e57c61;
}
.color-3 {
  color: #f1f4f8;
}
.color-4 {
  color: #2b2b2b;
}
.color-5 {
  color: #ffca61;
}

/* CSS Variables */
:root {
  --color-1: rgb(185, 70, 45);
  --color-2: #e57c61;
  --color-3: rgb(241, 244, 248);
  --color-4: #2b2b2b;
  --color-5: #ffca61;
}

* {
  margin: 0;
}


body {
  background-color: var(--color-3);
}

a {
  position: relative;
  color: var(--color-3); /* para mantener el color actual */
  text-decoration: none;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
  color: var(--color-5);
}



/* navbar */
.navbar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  overflow-x: hidden;

}


.nav-logo-name {
  grid-column: 1/3;
}

.nav-links {
  grid-column: 4/10;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--color-1);
  padding: 20px;
  border-radius: 10px;
  font-family: "Bitcount Prop Single", system-ui;
  font-size: 20px;
  background-color: rgba(185, 70, 45, 0.7); /* color semitransparente */
  backdrop-filter: blur(9px); /* desenfoque del fondo */
  -webkit-backdrop-filter: blur(9px); /* para Safari */
}

.logo-nav {
  max-height: 55px;
  min-height: 45px !important;
  border-radius: 50px;
  background-color: rgba(241, 244, 248, 0.3);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

@media (max-width: 1160px) {
  .nav-links {
    gap: 0.5rem;
    font-size: 16px;
    padding: 10px;
  }
}

/* AQUÍ VA LO DEL NAVBAR PARA MÓVILES */
/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
  display: none;
  background-color: rgba(185, 70, 45, 0.7);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: none;
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
  grid-column: 11 / 13; /* usa dos columnas finales */
  justify-self: end;
  z-index: 1001; /* encima del menú */
  color: var(--color-1);
}



/* Ocultar menú en móviles */
@media (max-width: 880px) {
  .nav-links {
    display: none;
    flex-direction: column;
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-logo-name {
    grid-column: 1/11;
  }
}





/*  footer */
.footer {
  background-color: var(--color-1);
  color: var(--color-3);
  padding: 3rem 1rem 1rem 1rem;
  font-family: "Bitcount Prop Single", system-ui;
  font-size: 18px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-5);
}

.footer-section img.footer-logo {
  max-width: 200px;
}

.footer-message {
  font-size: 1.1rem;
  line-height: 1.5;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}


.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 2rem;
  color: white;
}


/* Index */

/* H1 */
.we-cook {
  width: 80vw;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 150px;
}

/* slide infinito */
h2 {
  margin-left: 20px;
  text-align: left;
  font-family: "Bebas Neue";
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-4); /* Color de texto */
}

.clientes {
  background-color: var(--color-2); /* Ajusta a tu esquema de colores */
  padding: 2rem 1rem;
  text-align: center;
  max-height: 80px;
}

.slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slide-track {
  overflow: hidden;
  display: flex;
  animation: scroll 11s linear infinite;
  min-width: 200%;
}


.slide {
  flex: 0 0 auto;
  width: clamp(120px, 20vw, 250px); /* Escalable */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}


.slide img {
  height: auto;
  max-height: 80px; /* ajustable */
  width: auto;
  max-width: 100%; /* evita desbordes horizontales */
  opacity: 0.7;
  transition: all 0.3s ease-in-out;
}


.slide img:hover {
  filter: none;
  opacity: 1;
}




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



/* Nosotros */

.nosotros {
  background-color: var(--color-3);
  padding: 1rem 1rem;
  margin-top: 3rem;
  font-family: "Intel One Mono", monospace;
}

.container-nosotros {
  max-width: 90vw;
  margin: 0 auto;
}

.titulo-seccion {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.contenido-nosotros {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.subtitulo-nosotros {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.texto-nosotros p {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--color-4);
}


/* Responsivo */
@media (min-width: 768px) {
  .contenido-nosotros {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .texto-nosotros {
    flex: 1;
    padding-right: 2rem;
  }

  .imagen-nosotros {
    flex: 1;
  }
}



/* Nosotros: tarjetas */
.ecuacion-creativa {
  font-family: "Intel One Mono", monospace;
  text-align: center;
  padding: 1rem;
}

/* Escritorio: horizontal */
.grupo-horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.simbolo-inline {
  font-size: 2.5rem;
  color: var(--color-1);
}

/* Tarjetas base */
.tarjeta {
  background-color: var(--color-3);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 280px;
}

.tarjeta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px var(--color-5);
}

.icono {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  color: var(--color-4); /* Si quieres que tomen tu color 5 */
}

/* Móvil: vertical */
.grupo-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
}

.simbolo-mobile {
  font-size: 2.5rem;
  color: var(--color-1);
  margin: 0.5rem 0 1rem;
}

/* Responsive switch */
@media screen and (max-width: 768px) {
  .grupo-horizontal {
    display: none;
  }

  .grupo-mobile {
    display: flex;
  }

  .tarjeta {
    width: 90%;
  }
}


/* Servicios */
.servicios {
  font-family: "Intel One Mono", monospace;
  padding: 80px 20px;
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='70' height='8' patternTransform='scale(2) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%232d2d36ff'/><path d='M-.02 22c8.373 0 11.938-4.695 16.32-9.662C20.785 7.258 25.728 2 35 2c9.272 0 14.215 5.258 18.7 10.338C58.082 17.305 61.647 22 70.02 22M-.02 14.002C8.353 14 11.918 9.306 16.3 4.339 20.785-.742 25.728-6 35-6 44.272-6 49.215-.742 53.7 4.339c4.382 4.967 7.947 9.661 16.32 9.664M70 6.004c-8.373-.001-11.918-4.698-16.3-9.665C49.215-8.742 44.272-14 35-14c-9.272 0-14.215 5.258-18.7 10.339C11.918 1.306 8.353 6-.02 6.002' stroke-width='1' stroke='%23b9462dff' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");
}

.contenedor-servicios {
  max-width: 1200px;
  margin: 0 auto;
}

.titulo-servicios {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  color: var(--color-4);
}

.grid-servicios {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tarjeta-servicio {
  border: 5px solid var(--color-4);
  background-color: var(--color-3);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-servicio:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px var(--color-5);
}

.tarjeta-servicio h3 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 10px;
}

.tarjeta-servicio p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.icono-color {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  color: var(--color-5); /* Si quieres que tomen tu color 5 */
}

/* Colaboraciones */

.colaboraciones {
  padding: 4rem 2rem;
  text-align: center;
}

.colaboraciones__botones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 2rem auto;
}

.colab-btn {
  padding: 1rem;
  font-family: "Intel One Mono", monospace;
  font-size: 1rem;
  color: var(--color-1);
  border: 3px solid var(--color-4);
  border-radius: 0.75rem;
  cursor: pointer;
  min-height: 80px;
}

.colab-btn:hover{
  background-color: var(--color-1);
  border: 3px solid var(--color-4);
  color: var(--color-3);
}

/* TARJETAS DE COLABORACIONES */

.colaboraciones__tarjeta {
  font-family: "Intel One Mono", monospace;
  display: flex;
  flex-wrap: wrap;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid var(--color-5);
  background-color: var(--color-3);
  max-width: 60vw;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Para pantallas menores o iguales a 600px (móviles) */


.tarjeta__contenido {
  flex: 1 1 400px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tarjeta__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tarjeta__titulo {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-1);
}

.tarjeta__subtitulo {
  margin: 0;
  font-size: 1rem;
  color: gray;
}

.tarjeta__descripcion {
  font-size: 1rem;
  color: var(--color-4);
  text-align: justify;
}

.tarjeta__ideal {
  box-shadow: 2px 2px 5px rgba(0,0,0, 0.3);
  border: 1px solid var(--color-5);
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #f3efee;
  font-size: 0.9rem;
  color: var(--color-4);
  margin-top: auto;
  text-align: justify;
}

.tarjeta__visual {
  flex: 1 1 300px;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 2rem;
  background-size: cover;
  background-position: center;
}

.tarjeta__imagen-fondo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

.tarjeta__btn {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-3);
  color: var(--color-1);
  border: 1px solid var(--color-1);
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.2s ease;
  font-family: "Bitcount Prop Single", system-ui;
}

.tarjeta__btn:hover {
  background-color: var(--color-1);
  color: var(--color-3);
  border: 1px solid var(--color-3)
}

.colab-btn.activo {
  background-color: var(--color-5);
  color: var(--color-4);
  transition: background-color 0.3s ease;
}


/* PARA COLABORACIONES EN MÓVILES */
/* Solo mostrar el toggle en móvil */
.colaboraciones__toggle-movil {
  display: none;
  text-align: center;
  margin-bottom: 1rem;
}

.colaboraciones__toggle {
  background-color: var(--color-3);
  color: var(--color-1);
  border: 2px solid var(--color-4);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 1.1rem;
  font-family: "Intel One Mono", monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Oculta los botones por defecto en móvil */
@media (max-width: 768px) {
  .colaboraciones__toggle-movil {
    display: block;
  }

  .colaboraciones__botones {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .colaboraciones__botones.activo {
    display: flex;
  }
}



/*COMPROMISO*/

.tarjeta-compromiso {
  font-family: "Intel One Mono", monospace;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid var(--color-5);
  background-color: var(--color-3);
  max-width: 45vw;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-align: center;
  padding: 1.1rem;
}


/*EQUIPO*/
.equipo {
  padding: 4rem 2rem;
  background-color: var(--color-4)
}

.carrusel-equipo {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: center; /* ✅ Esto centra horizontalmente las tarjetas */
}


.tarjeta-equipo {
  font-family: "Intel One Monospace", monospace;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.tarjeta-equipo.activo {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 10;
}


.tarjeta-equipo h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.tarjeta-equipo p {
  font-size: 1rem;
  color: #555;
}

/*este soy yo*/
.equipo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 350px;
  padding: 2rem;
}

.equipo-foto img {
  width: 120px;
  height: 120px;
  border-radius: 100%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.equipo-nombre {
  font-family: "Bitcount Prop Single", system-ui;
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.equipo-cargo {
  color: #666;
  margin-bottom: 1rem;
}

.equipo-frase {
  font-style: italic;
  margin-bottom: 1.2rem;
}

.equipo-redes a {
  color: #0073e6;
  text-decoration: none;
  margin: 0 0.3rem;
}

.tarjeta-equipo {
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.tarjeta-equipo.activo {
  transform: scale(1.06);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
  z-index: 2;
}


.tarjeta-imagen {
  width: 100%;
  margin-top: 1rem;
  height: 280px;
  overflow: hidden;
  border-radius: 0.5rem;
}

.magic {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
}

.tarjeta-equipo.activo .magic {
  max-height: 1000px; /* más grande que lo que puede contener */
  opacity: 1;
}


.tarjeta-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Contacto ===== */
.seccion-contacto {
  padding: 4rem 2rem;
  background-color: var(--color-3);
  color: var(--color-1);
}

.seccion-contacto .contenedor {
  font-family: "Intel One Monospace", monospace;
  max-width: 1000px;
  margin: 0 auto;
}

.descripcion-seccion {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-4);
}

.formulario-cotizacion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .formulario-cotizacion {
    grid-template-columns: 1fr 1fr;
  }

  .formulario-cotizacion .campo-formulario:nth-child(7),
  .formulario-cotizacion .campo-formulario:nth-child(8) {
    grid-column: span 2;
  }
}

.campo-formulario {
  display: flex;
  flex-direction: column;
}

.campo-formulario label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-4);
}

.campo-formulario input,
.campo-formulario select,
.campo-formulario textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-3);
  border-radius: 8px;
  background-color: var(--color-4);
  font-size: 1rem;
  color: var(--color-3);
  transition: border-color 0.3s ease;
}

.campo-formulario input:focus,
.campo-formulario select:focus,
.campo-formulario textarea:focus {
  outline: none;
  border-color: var(--color-5);
}

.boton-enviar {
  background-color: var(--color-1);
  color: var(--color-3);
  margin: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton-enviar:hover {
  background-color: var(--color-4);
}



.input-error {
  border: 2px solid red;
  background-color: #fff0f0;
}

.mensaje-error {
  font-size: 0.9rem;
  color: red;
  margin-top: 0.3rem;
  display: none;
}
.mensaje-error.activo {
  display: block;
}


.my-swal-font {
  font-family: 'Intel One Monospace', monospace !important;
}


/* Responsive */
@media (max-width: 768px) {
  .colaboraciones__tarjeta {
    flex-direction: column;
  }

  .tarjeta__visual {
    min-height: 200px;
    padding: 1rem;
  }

  .colaboraciones__tarjeta {
    max-width: 90vw; /* o 95vw, para que ocupe casi todo el ancho */
  }

  .tarjeta-compromiso {
    max-width: 80vw;
    flex-direction: column;
  }
  .titulo-seccion {
    margin-bottom: 0.5rem;
    margin-top: 1.9rem;
    font-size: 2.2rem;
  }
  
  .slide-track {
    animation: scroll 10s linear infinite;
    min-width: 600%;
  }

  .nosotros-escritorio {
    display: none;
  }
  .nosotros-movil {
    display: block !important;
  }
}


.colaboraciones-wrapper {
  position: relative;
}

.overlay-pendiente {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo negro con transparencia */
  color: white;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900; /* Encima de todo */
  text-align: center;
  backdrop-filter: blur(4px); /* Opcional: efecto blur */
  pointer-events: none; /* Para evitar clics en la capa */
}
