/* ===============================
   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');


/* ===============================
   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: 400; 
    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 (GalerÃƒÂ­a estilo Pinterest)
=============================== */
.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;
}

/* ===============================
   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-negro{
  background: #121212;
  border: none;
  color: #fff;
  transition: none;
}

.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;
}

/* ===============================
   Imagen Overlay
=============================== */
.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;
  }
}

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

/* ===============================
   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: 600;
}

@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;
  }
  
  .titulos {
    font-size: 32px;
  }
  
  .final-text {
    font-size: 22px;
  }
  
  .grid {
    column-count: 2;
  }
  .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;
  }
  
  .carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding: 30px 0;
  }

  .carousel-item:hover {
    transform: scale(1.05);
  }

  /* Ocultar scrollbar */
  .carousel-container::-webkit-scrollbar {
    display: none;
  }

  .carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .hero-section h1 {
      font-size: 48px !important;
    }

    .hero-section p {
      font-size: 18px !important;
    }
  }

  .carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  .evento-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 30px 0;
  }
  
  .evento-carousel-track {
    display: flex;
    gap: 20px;
    animation: eventoScroll 30s linear infinite;
    width: max-content;
  }
  
  .evento-img {
    height: 420px;
    flex-shrink: 0;
    border-radius: 20px;
    transition: transform 0.3s ease;
  }
  
  .evento-img:hover {
    transform: scale(1.05);
  }
  
  @keyframes eventoScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .evento-img {
      height: 280px;
    }
  }
/* ===============================
   Ajustes responsive para secciÃ³n de contacto
=============================== */
@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 */
  }
}

.imagenes-hero {
  margin-top: -80px; /* este valor define cuánto sobresalen */
}

@media (max-width: 768px) {
  .img-down {
    margin-top: 0 !important;
  }
}