:root {
  --blue: #6579bc;
  --pink: #eac1e3;
  --white: #ffffff;
  --yellow: #f6e27a;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--blue);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
}

section {
  padding: 150px 0;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-icon {
  width: 120px;
  height: 120px;
  background-color: var(--yellow);
  margin: 0 auto 24px;
}

/* Posición del botón */
.btn-circular_position {
  margin-top: 50%;
}

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

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

.btn-circular:hover {
  transform: translateY(4px);
}

/* Botón circular flotante (blanco) */
.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%;
  animation: float 2.5s ease-in-out infinite;
  transition: background-color 0.3s ease;
}

/* Hover sin romper animación */
.btn-circular2:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.navbar {
  font-family: "Poppins", sans-serif;
  z-index: 10;
  position: fixed;
  background: #6579bca6;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 20px;
  letter-spacing: 0.5px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: #ffffff !important;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  color: #eac1e3 !important;
  font-weight: 400;
}

/* SOBRE NOSOTROS */
.about-box {
  background-color: #fff;
  color: #000;
  padding: 60px;
}

h2.nosotros {
  color: #6f82c4;
  font-size: 60px;
}

.icon-flotando {
  position: absolute;
  margin-left: 50px;
  width: 110px !important;
}

@media (max-width: 768px) {
  .about-box {
    background-color: #fff;
    color: #000;
    padding: 30px;
  }
  h2.nosotros {
    color: #6f82c4;
    font-size: 45px;
  }
  
  .icon-flotando {
  display: none
}
}

p.texto_nosotros {
  color: #6f82c4;
  font-size: 20px;
  font-weight: 200;
}

p.textobold_nosotros {
  color: #f3cfe3;
  font-size: 20px;
  font-weight: bold;
}

/* SECTION */
/* TIMELINE */
.services-timeline {
  position: relative;
}

.services-timeline h2 {
  margin-bottom: 100px;
}

.timeline-line {
  position: absolute;
  top: 120px;
  bottom: 40px;
  left: 50%;
  width: 2px;
  background-color: var(--pink);
  transform: translateX(-50%);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 22px;
  background-color: var(--pink);
  border-radius: 50%;
  transform: translateX(-50%);
}

.timeline-arrow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid var(--pink);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 120px;
}

.timeline-item.right {
  justify-content: flex-end;
  text-align: left;
}

.timeline-item.left {
  justify-content: flex-start;
}

.services-timeline {
  position: relative;
}

.services-timeline .timeline-line {
  position: absolute;
  top: 180px;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--pink);
  transform: translateX(-50%);
}

.service_img {
  width: 390px;
  margin-left: 190px;
  margin-top: -60px;
  position: absolute;
  z-index: -1;
}

@media (max-width: 768px) {
  .services-timeline .timeline-line {
    left: 20px;
    transform: none;
  }

  .services-timeline .text-end,
  .services-timeline .text-start {
    text-align: left !important;
  }

  .service_img {
    display:none
  }
  
  .timeline-dot, .timeline-line, .timeline-arrow {
    display: none
  }
}

.about-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.video_nosotros {
  margin-top: 40px;
  width: 430px;
  text-align: center;
  margin-left: 100px;
}

@media (max-width: 768px) {
  .video_nosotros {
    margin-top: 20px;
    width: 334px;
    text-align: center;
    margin-left: 0.5px;
  }
}

/* OBJETIVO */
.pink-section {
  background-color: var(--pink);
  color: #000;
}

/* SERVICIOS */
.service-number {
  font-size: 48px;
  opacity: 0.2;
  font-weight: 700;
}

.service-img {
  width: 100%;
  height: 300px;
  background: #ccc;
}

h2.marcas {
  color: #6579bc;
  font-size: 60px;
  width: 40%;
  margin: auto;
  text-align: center
}

.asterisco {
  width: 27%;
  margin: auto;
  margin-left: 350px;
}

.asterisco_img {
  width: 200px;
}

.texto_header {
  text-align: left;
  width: 35%;
  margin: auto;
}

@media (max-width: 768px) {
  h2.marcas {
    color: #6579bc;
    font-size: 50px;
    width: 100%;
    margin: auto;
    text-align: left
  }

  .asterisco_img {
    width: 70px;
  }

  .asterisco {
    width: 27%;
    margin: auto;
    margin-left: 30px;
  }

  .texto_header {
    text-align: left;
    width: 75%;
    margin: auto;
  }
}

.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: #fff;
  cursor: pointer;
  border-radius: 20px;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #6f82c4;
  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;
  }
}

p.marca_texto {
  text-align: center;
  margin: auto;
  margin-bottom: 60px;
  color: #6f82c4;
  font-size: 18px;
  font-weight: 200;
  max-width: 80%
}

/* MARCAS */
.brand-logo {
  background: #fff;
  height: 80px;
  border-radius: 12px;
}

/* PROYECTOS */
.project-img {
  background: #ccc;
  height: 280px;
  border-radius: 12px;
}

h2.proyectos_texto {
  text-align: left;

  margin: auto;
  margin-bottom: 60px;
  color: #000;
  font-size: 18px;
  font-weight: 200;
}

p.proyectos_texto {
  text-align: left;
  width: 640px;
  margin-left: 190px;
  margin-bottom: 60px;
  color: #000;
  font-size: 18px;
  font-weight: 200;
  left: 60px;
}

#showcase {
  position: relative;
}

#showcase h2 {
  letter-spacing: 1px;
  text-align: left;
  margin: auto;
  width: 70%;
  font-size: 40px;
}

#showcase p {
  width: 70%;
  margin: auto;
  text-align: left;
}

.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: rgba(255, 255, 255, 0.18) !important;
  display: block;
  border-radius: 50%;
  transition: background 0.3s;
}

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

/* CTA */
.cta {
  text-align: center;
}

footer {
  padding: 60px 0;
}

.footer-text {
  font-size: 60px;
  color: #6f82c4;
}

p.footer-text {
  text-align: center;
  color: #6f82c4;
}

.sticky-shape {
  position: absolute;
  right: 0px;
  width: 300px;
  z-index: 0;
  pointer-events: none;
  margin-top: -640px;
}

.sticky-shape img {
  width: 100%;
}

@keyframes floatSoft {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.sticky-shape img {
  animation: floatSoft 5s ease-in-out infinite;
}
@media (max-width: 768px) {
  .sticky-shape {
    display: none;
  }
  
  #showcase p {
  width: 100%;
  margin: auto;
  text-align: left;
}
  
  #showcase h2 {
    letter-spacing: 1px;
    text-align: left;
    margin: auto;
    width: 100%;
    font-size: 40px;
}
  
  p.marca_texto {
    text-align: left;
    margin: auto;
    margin-bottom: 60px;
    color: #6f82c4;
    font-size: 18px;
    font-weight: 200;
    max-width: 100%
}
  
}

.sticky-shape2 {
  position: absolute;
  left: -180px;
  width: 420px;
  z-index: 0;
  pointer-events: none;
  margin-top: -70px;
}

.sticky-shape2 img {
  width: 100%;
}

@keyframes floatSoft {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.sticky-shape2 img {
  animation: floatSoft 5s ease-in-out infinite;
}
@media (max-width: 768px) {
  .sticky-shape2 {
    display: none;
  }
}

.rotando {
  width: 80px; /* ajusta tamaño */
  animation: girar 20s linear infinite;
  transform-origin: center;
}

@keyframes girar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
