/* ===============================
   Importación de fuentes
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap&font-display=swap');

/* ===============================
   Globales y Tipografía
=============================== */
body {
  font-family: "Poppins", sans-serif;
  background-color: #121212;
  padding: 50px;
}

h1, h2, .display-1 {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}

.dm-sans {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.dm-sans400{
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 50; 
    font-style:normal;
    font-size: 18px;
}

.animate__delay-0-2s {
  animation-delay: 0.2s;
}

.animate__delay-0-3s {
  animation-delay: 0.3s;
}

.animate__delay-0-4s {
  animation-delay: 0.4s;
}

.animate__delay-0-5s {
  animation-delay: 0.5s;
}

.animate__delay-0-7s {
  animation-delay: 0.7s;
}

.animate__delay-0-8s {
  animation-delay: 0.8s;
}
/* ===============================
   Utilidades varias
=============================== */
.fondo {
  background-image: url(imagenes/Diseño\ sin\ título\ \(2\)\ 1.webp);
}

.borde {
  border: 20px;
}

/* ===============================
   Footer
=============================== */
footer {
  background: linear-gradient(180deg, rgb(16, 197, 245) 0%, rgb(9.34, 49.44, 143) 200%) !important;
  border-radius: 20px;
}


.grid {
  column-count: 4;
  column-gap: 10px;
}

.grid img {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.grid-item {
  position: relative;
}

.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-item:hover .overlay-text {
  opacity: 1;
}
@media (max-width: 767.98px) {
  .trabajos-section .d-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  .grid {
    column-count: 2;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .grid {
    column-count: 3;
  }
}

@media (min-width: 992px) {
  .grid {
    column-count: 4;
  }
}
/* ===============================
   Botón con degradado
=============================== */
.btn-gradient {
  background: linear-gradient(180deg, rgb(16, 197, 245) 0%, rgb(9, 49, 143) 200%);
  border: none;
  color: #fff;
  transition: opacity 0.3s;
}

.btn-gradient:hover {
  opacity: 0.9;
}

/* ===============================
   Formularios
=============================== */
.form-control-dark {
  background-color: rgba(30, 30, 30, 1);
  color: #fff;
  border: 1px solid rgba(30, 30, 30, 1);
  border-radius: 25px;
}

.form-control-dark:focus {
  background-color: rgba(30, 30, 30, 1);
  color: #fff;
  border: 1px solid rgba(30, 30, 30, 1);
  box-shadow: none;
}

.form-control-dark::placeholder {
  color: #6d6363;
  opacity: 1;
}

/* ===============================
   Navbar
=============================== */
.navbar-dark {
  background-color: transparent !important;
}

.navbar-nav .nav-link {
  padding: 18px;
}

.navbar-toggler {
    z-index: 1050; /* Un valor alto para que esté sobre otros elementos */
  }
/* Establece altura mínima en móviles */
@media (max-width: 767.98px) {
  .navbar .container {
    min-height: 70px;
  }
}

/* ===============================
   Tipografía especial para títulos (final-section, trabajos, etc.)
=============================== */
.titulos {
  background: linear-gradient(180deg, #10c5f5, #09318f);
  background-clip: text;
  color: transparent;
  font-size: 64px;
}

@media (max-width: 767.98px) {
  .titulos {
    font-size: 32px;
  }
}

/* ===============================
   Texto con degradado (fade)
=============================== */
.fade {
  background: var(--Gradient, linear-gradient(180deg, #10c5f5 -20.14%, #09318f 242.87%));
  background-clip: text;
  -webkit-background-clip: text;
}

/* ===============================
   Cards
=============================== */
.card {
  background-color: black;
  border-radius: 20px;
}

/* ===============================
   Sección Trabajos (Grid Pinterest)
=============================== */
@media (max-width: 767.98px) {
  .trabajos-section .d-grid {
    grid-template-columns: 1fr !important;
  }

  .d-grid {
    grid-template-columns: 1fr; /* Cambia a una sola columna */
    gap: 16px; /* Mantén el espacio entre los elementos */
    justify-items: center; /* Centra los elementos horizontalmente */
}

.grid-item img {
    max-width: 100%; /* Asegúrate de que las imágenes no excedan el ancho del contenedor */
    height: auto; /* Mantén la proporción de las imágenes */
}
}

/* ===============================
   Sección Final
=============================== */
.final-text {
  font-size: 36px;
}

@media (max-width: 767.98px) {
  .final-text {
    font-size: 22px;
  }
}

/* ===============================
   Word Container para Headings
=============================== */
.word-container {
  white-space: nowrap;
}

.word {
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: 1200;
}

@media (max-width: 767.98px) {
  .word-container {
    white-space: normal;
  }
  .word {
    display: block;
    margin-right: 0;
  }
}

/* ===============================
   Sección Accordion / FAQ
=============================== */
.accordion-button {
  background-color: transparent !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 1.25rem;
}

.accordion-button::after {
  filter: invert(0) sepia(1) saturate(10) hue-rotate(180deg);
  color: #10C5F5;
}

.accordion-item {
  background-color: transparent;
  border: none;
  margin-bottom: 4rem;
}

.accordion-button:not(.collapsed) {
  border: 1px solid #10C5F5 !important;
  border-bottom: none !important;
  border-radius: 6px 6px 0 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.accordion-collapse.show {
  border: 1px solid #10C5F5 !important;
  border-top: none !important;
  border-radius: 0 0 6px 6px !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.accordion-body {
  color: #cfcfcf;
  line-height: 1.6;
  background-color: transparent;
}

/* ===============================
   Media Queries Globales
=============================== */

/* Ajustes para pantallas móviles y medianas */
@media (max-width: 767.98px) {
  .hero-content {
    padding-left: 0;
    margin-right: 70px;
    
  }
  
  .titulos {
    font-size: 32px;
  }
  
  .final-text {
    font-size: 22px;
  }
  
  .hero-content h1 {
    font-size: 40px !important; /* Ajusta según prefieras */
  }
  
  .hero-content p {
    font-size: 16px !important; /* Ajusta el tamaño del párrafo */
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .grid {
    column-count: 3;
  }
}

@media (min-width: 992px) {
  .grid {
    column-count: 4;
  }

}

.btn-responsive {
    padding: 0.5rem 1rem;
    font-size: 14px;
  }
  
  /* En pantallas medianas y superiores, aumentamos el tamaño de los botones */
  @media (min-width: 768px) {
    .btn-responsive {
      padding: 0.75rem 1.5rem;
      font-size: 16px;
      justify-content: center;
    }
  }

  .btn-responsive {
    font-size: 16px !important;
    padding: 0.75rem 1.5rem !important;
  }
  
  
  @media (max-width: 767.98px) {
    .contacto-section .position-absolute.start-0.h-100 {
      width: 100% !important;
      height: 300px;
      background-size: cover !important;
      border-radius: 20px !important;
    }
  
    .contact-form-wrapper {
      padding: 1.5rem;
      max-width: 100%;
      margin: 0 1rem;
    }
  
    .form-control-dark {
      font-size: 14px;
      padding: 0.75rem 1rem;
    }
  
    .form-control-dark::placeholder {
      font-size: 14px;
    }
  }
  
  .imagen-contacto {
    background: url('imagenes/Contact.webp') center/cover no-repeat;
    z-index: 1;
  }
  
  /* RESPONSIVE */
  @media (max-width: 767.98px) {
    .contacto-responsive .imagen-contacto {
      background-size: cover;
      background-position: center;
      border-radius: 0;
    }
  
    .contacto-responsive .col-12 {
      padding: 2rem 1rem;
    }
  
    .contacto-responsive form .form-control {
      font-size: 14px;
    }
  
    .contacto-responsive h2 {
      font-size: 28px;
    }
  }
  
  .background-contacto {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    background: url('imagenes/Contact.webp') center/cover no-repeat;
    border-radius: 30px;
    z-index: 1;
  }
  .centrarform {
    position: relative;
    left: -110px;
    top: 50px;
  }
  
  /* Responsive: en pantallas pequeñas, imagen ocupa todo el ancho */
  @media (max-width: 767.98px) {
    .background-contacto {
      width: 100%;
      height: 100%;
      border-radius: 30px;
    }
    .centrarform{
      left: 0;
      top: 50px;
      padding: 1.5rem 1rem; /* ajusta el padding para móvil */
    }
  }

  .parent {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 20px;
  } 

.parent div {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.parent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.parent div:hover .overlay {
  opacity: 1;
}

.parent div:hover .overlay {
  opacity: 1;
}



.div1 {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
}

.div2 {
  grid-row: span 2 / span 2;
  grid-column-start: 3;
}

.div3 {
  grid-column: span 3 / span 3;
  grid-row: span 2 / span 2;
  grid-column-start: 3;
  grid-row-start: 3;
}

.div4 {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
  grid-column-start: 6;
  grid-row-start: 1;
}

.div5 {
  grid-column: span 3 / span 3;
  grid-row: span 2 / span 2;
  grid-column-start: 1;
  grid-row-start: 5;
}

.div6 {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
  grid-column-start: 6;
  grid-row-start: 4;
}

.div7 {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 4;
  grid-row-start: 5;
}

.div8 {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 1;
  grid-row-start: 3;
}

.div9 {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 4;
  grid-row-start: 1;
}

.parent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
  .parent {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(9, 1fr);
  }

  .div1, .div2, .div3, .div4, .div5, .div6, .div7, .div8, .div9 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
  }
}

@media (max-width: 768px) {
  .parent {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(9, 1fr);
  }

  .div1, .div2, .div3, .div4, .div5, .div6, .div7, .div8, .div9 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
  }
}

@media (max-width: 480px) {
  .parent {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(9, 1fr);
  }

  .div1, .div2, .div3, .div4, .div5, .div6, .div7, .div8, .div9 {
    grid-column: span 1 / span 1;
    grid-row: span 1 / span 1;
  }
}

.overlay-image {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .overlay-image {
    transform: translate(-50%, -50%);
    width: 450px;
    height: 90%;
    object-fit: cover;
    top: 55%;
    border-radius: 20px;
  }
}

.evento-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0 0 30px 0; /* top right bottom left */
}

.evento-carousel-track {
  display: flex;
  gap: 80px;
  animation: eventoScroll 40s linear infinite;
  width: max-content;
}

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

.evento-img {
  height: 150px;
  flex-shrink: 0;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.evento-img:hover {
  transform: scale(1.05);
}
/* Responsive */
@media (max-width: 768px) {
  .evento-img {
    height: 150px;
  }
}

.animate__fadeInCustom {
  --animate-duration: 2.5s;
  --animate-delay: 1s;
}

.btn-ancho {
  padding: 28px 56px !important;
  font-size: 20px;
  font-weight: 600;
  border-radius: 50px;
  width: 231px;
}
.btn-ancho1 {
  padding: 28px 56px !important;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  width: 302px;
}


.mt{
  margin-top: -100px !important;
}