/* Base */
:root {
  --morado: #6f2c91;
  --morado-oscuro: #4b007d;
}

* {
  box-sizing: border-box
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  background: #f7f3fd;
  margin: 0;
}

/* ===== NAVBAR ===== */
.btn-custom {
  background: #d493f8;
  color: #fff;
  border-radius: 20px;
  padding: 6px 20px;
  font-weight: 700;
  border: none;
  transition: .25s ease;
}

.btn-custom:hover {
  background: #b364d8;
}

.nav-link.active {
  border-bottom: 2px solid var(--morado);
}

/* ===== HERO ===== */
.hero-section {
  background: #caa0f5;
  position: relative;
}

.hero-section .carousel-inner {
  padding: 6rem 2rem;
  min-height: clamp(420px, 55vh, 720px);
  background-image: url('tannyAmiwis/assets/images/FONDO MARIPOSAS.png');
  border-radius: 20px;
}

.carousel-item {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  height: 800px;
  min-height: clamp(380px, 50vh, 680px);
}

.carousel-item.active {
  display: flex;
}

.hero-section .hero-content {
  padding: 3rem 1rem;
}

.hero-section h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
}

.hero-section .btn {
  padding: .6rem 1.5rem;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .15);
}

/* Indicadores */
.hero-section .carousel-indicators button {
  width: 450px;
  border-radius: 50px;
  background: #fff;
  opacity: 1;
  margin-bottom: 30px;
}

.hero-section .carousel-indicators .active {
  background: #692688;
}

@media (max-width:991.98px) {
  .hero-section .carousel-indicators button {
    width: 30%;
  }
}

/* Fondos */
.slide-bg-1 {
  background-image:
    linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url('../assets/images/amigurumis/18.jpg');
}

.slide-bg-2 {
  background-image:
    linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url('../assets/images/amigurumis/18.jpg');
}

.slide-bg-3 {
  background-image:
    linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url('../assets/images/amigurumis/18.jpg');
}

/* ===== HISTORY ===== */
.history-section {
  font-family: 'Croissant One', cursive;
  background: #edd1f5;
  padding: 12rem 2rem;
  overflow: hidden;
}

.tuerca {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .3;
  z-index: 0;
  animation: spin 20s linear infinite;
  will-change: transform;
}

@keyframes spin {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

.tuerca-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 5%;
  background-image: url('../assets/logos/Tuerca.svg');
}

.tuerca-2 {
  width: 50px;
  height: 50px;
  bottom: 20%;
  right: 5%;
  background-image: url('../assets/logos/Tuerca 2.svg');
}

.tuerca-3 {
  width: 100px;
  height: 100px;
  top: 35%;
  left: 10%;
  transform: translateY(-50%);
  background-image: url('../assets/logos/Tuerca 3.svg');
}

.tuerca-4 {
  width: 50px;
  height: 50px;
  top: 35%;
  right: 10%;
  transform: translateY(-50%);
  background-image: url('../assets/logos/Tuerca.svg');
}

.tuerca-5 {
  width: 100px;
  height: 100px;
  top: 60%;
  left: 30%;
  background-image: url('../assets/logos/Tuerca 2.svg');
}

.tuerca-6 {
  width: 50px;
  height: 50px;
  bottom: 40%;
  right: 20%;
  background-image: url('../assets/logos/Tuerca 3.svg');
}

.tuerca-7 {
  width: 50px;
  height: 50px;
  top: 40%;
  left: 20%;
  transform: translateY(-50%);
  background-image: url('../assets/logos/Tuerca.svg');
}

.tuerca-8 {
  width: 100px;
  height: 100px;
  top: 60%;
  right: 30%;
  transform: translateY(-50%);
  background-image: url('../assets/logos/Tuerca 2.svg');
}

.tuerca-9 {
  width: 50px;
  height: 50px;
  top: 80%;
  right: 40%;
  transform: translateY(-50%);
  background-image: url('../assets/logos/Tuerca 3.svg');
}

/* ===== FOOTER ===== */
footer {
  background: #c96bf4;
  color: #fff;
  padding: 2rem 2rem 0;
}

.footer-logo {
  height: 150px;
  width: 150px;
}

.footer-icons a,
.footer-contact a {
  color: #fff;
  margin: 0 .25rem;
  text-decoration: none;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Footer responsive */
@media (max-width:767.98px) {
  footer {
    padding: 1.75rem 1rem;
  }

  footer .col-lg-2,
  footer .col-lg-3,
  footer .col-lg-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
  }

  .footer-logo {
    width: 200px;
    height: 100px;
  }

  footer ul {
    padding: 0;
    margin: .25rem 0 .75rem;
  }

  footer ul li {
    margin: .15rem 0;
  }

  .footer-icons {
    gap: 10px;
    margin-bottom: .5rem;
  }

  .footer-icons img {
    height: 24px;
  }

  footer small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    line-height: 1.3;
    margin-bottom: .75rem;
  }

  .footer-contact p {
    margin: .25rem 0;
    font-size: .95rem;
  }
}

@media (min-width:992px) {
  footer .row {
    align-items: center;
  }
}

/* ===== NAV MÓVIL (empuja contenido) ===== */
@media (max-width:991.98px) {
  .navbar {
    height: auto;
  }

  .navbar-collapse--mobile {
    background: transparent;
    box-shadow: none;
    width: 100%;
  }

  .navbar-collapse--mobile .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .navbar-collapse--mobile .mobile-close {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .navbar-collapse--mobile .navbar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 8px 0 4px;
    padding: 0;
  }

  .navbar-collapse--mobile .navbar-nav .nav-link {
    display: block;
    padding: .75rem 0;
    font-weight: 700;
    color: var(--morado-oscuro);
  }

  .navbar-collapse--mobile .navbar-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
  }

  .mobile-contact {
    width: 100%;
    max-width: 480px;
  }
}

/* Oculta el panel móvil en desktop */
@media (min-width:992px) {
  #navbarResponsive {
    display: none !important;
  }
}