/* COLORES */
:root {
  --amarillo: #ffc300;
  --negro: #000;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--negro);
  scroll-behavior: smooth;
}

.navbar {
  background-color: #ffc300c7 !important;
  margin-top: 20px;
  max-width: 90%;
  text-align: center;
  margin-left: 5%;
  border-radius: 1500px;
  backdrop-filter: blur(10px);
}

@media (max-width: 767.98px) {
  .navbar {
    background-color: #ffc300c7 !important;
    margin-top: 20px;
    max-width: 90%;
    text-align: center;
    margin-left: 5%;
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* pantalla completa */
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta para llenar sin deformar */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  color: #fff;
}

.hero h1 span {
  color: #ffd700; /* ejemplo de color destacado */
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

.bg-yellow {
  /* background: var(--amarillo); */
}

.bg-negro {
  background: var(--negro);
}

section {
  padding-top: 140px !important;
  padding-bottom: 140px !important;
}

#nosotros h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 100px;
}

#nosotros h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 100px;
}

#nosotros {
  padding-left: 80px !important;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.sobre-nosotros {
  min-height: 100vh;
  overflow: hidden;
}

.sobre-nosotros p.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 540px;
}

.video_nosotros {
  width: 800px;
}

@media (max-width: 767.98px) {
  .video_nosotros {
    width: 454px;
  }

  .espacio-movil {
    margin-bottom: 50px;
  }
}

.img-svg3 {
  width: 600px;
}

@media (max-width: 767.98px) {
  .img-svg3 {
    width: 144%;
    margin-left: -50px;
    margin-right: 0px;
    margin-bottom: -40px;
  }
}

/* Botón circular con flecha */
.btn-circular {
  width: 60px;
  height: 60px;
  background-color: #ffb800;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.btn-circular:hover {
  transform: translateY(4px);
}

.btn-circular2 {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border: 2px solid white;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.btn-circular2:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) scale(1.1);
}

.btn-circular2 {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border: 2px solid white;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.btn-circular2:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) scale(1.1);
}

.btn-circular_position {
  margin-top: 50%;
}

@media (min-width: 360px) {
  .btn-circular_position {
    margin-top: 620px;
  }
}

/* ✨ Animación flotante ✨ */
@keyframes float {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* Imagen que cubre toda la columna */
.object-fit-cover {
  object-fit: cover;
  height: 100%;
}

/* Responsive */
@media (max-width: 767.98px) {
  .sobre-nosotros .col-md-6.bg-light {
    padding: 3rem 2rem;
  }

  .btn-circular {
    width: 50px;
    height: 50px;
  }

  #nosotros {
    padding: 100px 20px 1px 20px !important;
  }
}

@media (max-width: 360px) {
  section {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
}

.icono {
  width: 60px;
}

.titulos-img {
  width: 50%;
}

/* Responsive */
@media (max-width: 767.98px) {
  .titulos-img {
    width: 100%;
  }
}

#objetivo {
  padding-top: 140px !important;
  padding-bottom: 140px !important;
}

#objetivo p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 810px;
  margin: auto;
}

/* ===== SECCIÓN ¿CÓMO TE APOYAMOS? ===== */
.como-te-apoyamos {
  background-color: #ffb800;
  color: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.como-te-apoyamos h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}

/* CONTENIDO DERECHA */
.contenido-apoyamos {
  position: relative;
  padding-left: 3rem;
}

/* Línea vertical central */
.contenido-apoyamos::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 120px;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.2);
  height: 600px;
}

/* Cada item */
.contenido-apoyamos .item {
  position: relative;
  padding-bottom: 3rem;
  display: flex;
  align-items: flex-start;
}

/* Número centrado sobre la línea */
.contenido-apoyamos .numero {
  position: relative;
  z-index: 1;
  font-size: 6rem;
  font-weight: 800;
  color: #000;
  background-color: #ffb800;
  padding: 0 0.5rem;
  margin-right: 2rem;
  line-height: 1;
}

/* Texto */
.contenido-apoyamos .texto h5 {
  font-size: 24px;
  letter-spacing: 0.5px;
  color: #000;
}

.contenido-apoyamos .texto p {
  font-size: 0.95rem;
  color: #111;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

.como-te-apoyamos-space {
  padding-right: 3rem !important;
  padding-left: 3rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .como-te-apoyamos-space {
    padding-left: 0px;
    padding-right: 0px;
  }

  .como-te-apoyamos {
    flex-direction: column;
    text-align: left;
    padding: 3rem 2rem;
  }

  .contenido-apoyamos {
    margin-left: 0px;
    padding-left: 0px;
  }

  .contenido-apoyamos::before {
    left: 25px;
    height: 1100px;
  }

  .contenido-apoyamos .numero {
    font-size: 1.8rem;
    margin-right: 1.5rem;
  }

  /* Texto */
  .contenido-apoyamos .texto h5 {
    font-size: 18px;
    letter-spacing: 0.5px;
    color: #000;
  }

  .contenido-apoyamos .texto p {
    font-size: 0.95rem;
    color: #111;
    line-height: 1.6;
    margin: 0;
    max-width: 200px;
  }
}

/* ===== SECCIÓN CUENTAS ===== */
.cuentas-section {
  position: relative;
  background: url("../img/proyeectos@300x.png") center center/cover no-repeat;
  /* min-height: 0; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background-position: bottom;
  /* margin-bottom: 0px; */
}

/* Overlay para asegurar legibilidad si el fondo cambia */
.cuentas-section .overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 0 1rem; */
  padding-bottom: 300px;
}

/* Texto */
.cuentas-section .subtitulo {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cuentas-section .titulo {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cuentas-section .titulo span {
  display: block;
  font-weight: 900;
}

.cuentas-section .descripcion {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .cuentas-section {
    min-height: 80vh;
  }

  .cuentas-section .titulo {
    font-size: 2rem;
  }

  .cuentas-section .descripcion {
    font-size: 0.9rem;
  }

  .cuentas-section .overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 0 1rem; */
    padding-bottom: 140px;
  }
}

.galeria-section {
  position: relative;
  background: url("../img/fondo@300x.png") center center/cover no-repeat;
  /* min-height: 0; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background-position: bottom;
  /* margin-bottom: 0px; */
}

.portfolio {
  padding: 9rem;
  /* max-width: 1200px; */
  margin: auto;
  /* background: url("../img/fondo@300x.png") center center/cover no-repeat; */
  /* background-position: top; */
  background-color: #ffa903;
}

@media (max-width: 789px) {
  .portfolio {
    padding: 3rem;
    /* max-width: 1200px; */
    margin: auto;
    /* background: url("../img/fondo@300x.png") center center/cover no-repeat; */
    /* background-position: top; */
    background-color: #ffa903;
  }
}

.portfolio-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  background-color: rgba(221, 221, 221, 0.65);
  cursor: pointer;
  border-radius: 20px;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #000;
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* Fila doble: ocupa 6 columnas = mitad */
.fila-una {
  grid-column: span 1;
}

/* Fila doble: ocupa 6 columnas = mitad */
.fila-doble {
  grid-column: span 6;
}

/* Fila triple: ocupa 3 columnas = 4 por fila */
.fila-triple {
  grid-column: span 4;
}

/* Fila cuadruple: ocupa 3 columnas = 4 por fila */
.fila-cuadruple {
  grid-column: span 3;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .fila-doble,
  .fila-cuadruple .fila-triple {
    grid-column: span 12 !important;
  }
}

.portfolio-item video {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

.portfolio-item {
  border-radius: 12px;
  transition: 0.3s ease;
  background: none;
  transform: scale(1);
}

/* Ocultar */
.portfolio-item.hide {
  display: none;
}

/* Mostrar con animación */
.portfolio-item.show {
  animation: fadeZoom 0.4s ease;
}

@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fila-doble {
  grid-column: span 6;
}

.fila-cuadruple {
  grid-column: span 3;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .fila-doble {
    grid-column: span 6;
  }

  .fila-cuadruple {
    grid-column: span 3;
  }
}

.portfolio-item img,
.portfolio-item video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .portfolio-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .portfolio-item {
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
  }

  .portfolio-item video,
  .portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
  }
}
.portfolio-grid::-webkit-scrollbar {
  height: 6px;
}

.portfolio-grid::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 10px;
}

.swipe-hint {
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 1rem;
  display: none;
}

@media (max-width: 768px) {
  .swipe-hint {
    display: block;
  }
}

.swipe-hint::after {
  content: "➡️";
  animation: moveArrow 1.5s infinite ease-in-out;
  margin-left: 6px;
  display: inline-block;
}

@keyframes moveArrow {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .portfolio-grid.modo-todo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .portfolio-grid.modo-todo .portfolio-item {
    width: 100% !important;
    flex: unset !important;
    scroll-snap-align: unset !important;
  }
}

#showcase {
  position: relative;
}

#showcase h2 {
  letter-spacing: 1px;
}

#showcase p {
  width: 70%;
  margin: auto;
}

.showcase-carousel .item img {
  transition: transform 0.4s ease;
  border-radius: 20px;
}

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

.owl-dots {
  text-align: center;
  margin-top: 20px;
}

.owl-dot span {
  width: 12px;
  height: 12px;
  margin: 5px 7px;
  background: #555 !important;
  display: block;
  border-radius: 50%;
  transition: background 0.3s;
}

.owl-dot.active span {
  background: #ffb800 !important;
}

.contacto {
  background: url("../img/header.png") center center/cover no-repeat;
  color: #000;
  text-align: center;
  padding: 100px 20px;
}

.cta p {
  width: 70%;
  margin: auto;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .cta h3 {
    width: 80%;
    margin: auto;
    margin-bottom: 40px;
  }
  
  
  .cta p {
    width: 100%;
    margin: auto;
    margin-bottom: 40px;
  }
}

footer {
  background-color: #111;
}

img.rounded-circle {
  border: 3px solid var(--amarillo);
  transition: transform 0.3s ease;
}

img.rounded-circle:hover {
  transform: scale(1.05);
}
