/* =====================================================
   BUSHWICK GARMENT CARE
   CSS PRINCIPAL
===================================================== */

/* =====================================================
   GENERAL
===================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  background-color: #f2f2f2;
}

/* =====================================================
   HEADER
===================================================== */

header {
  background-color: rgb(50, 99, 87);
  padding: 1em;
  text-align: center;
  color: white;
}

header h1 {
  margin: 10px 0 5px;
}

/* =====================================================
   LOGO
===================================================== */

.logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 10px auto 0;
  animation: giro-reverso 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1) rotate(3deg);
}

/* ANIMACIÓN DEL LOGO */

@keyframes giro-reverso {
  0% {
    transform: rotate(0deg);
  }

  45% {
    transform: rotate(180deg);
  }

  50% {
    transform: rotate(180deg);
  }

  95% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* =====================================================
   PORTADA / HERO
===================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 450px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #111;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.8);
}

.hero-text {
  position: absolute;
  left: 5%;
  bottom: 30px;

  width: 90%;
  max-width: 650px;

  color: #fff;
  background-color: rgba(0, 0, 0, 0.45);

  padding: 15px 20px;

  border-radius: 6px;
}

.hero-text h2 {
  margin: 0;
  color: #fff;
  text-align: left;
  text-decoration: none;
  line-height: 1.25;
}

/* =====================================================
   SECCIONES
===================================================== */

section {
  padding: 2em;
  background-color: #fff;
  margin: 1em 0;
}

section:not(.hero) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  text-align: center;
  text-decoration: underline;
}

h3 {
  text-align: center;
}

/* =====================================================
   QUIÉNES SOMOS
===================================================== */

#quienes-somos p {
  max-width: 1000px;
  margin: 20px auto;
  line-height: 1.7;
}

/* =====================================================
   SUCURSALES
===================================================== */

.sucursal-card {
  max-width: 1000px;
  margin: 30px auto;
  padding: 25px;

  background-color: #f8f8f8;

  border-radius: 10px;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.sucursal-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #326357;
  font-size: 24px;
}

.sucursal-card p {
  margin: 4px 0;
  line-height: 1.4;
}

/* =====================================================
   MAPAS
===================================================== */

.mapa {
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

.mapa iframe {
  display: block;

  width: 100%;
  max-width: 900px;
  height: 300px;

  margin: 0 auto;

  border: 0;
  border-radius: 8px;
}

/* =====================================================
   WEBSITE + INSTAGRAM BUTTONS
===================================================== */

.branch-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  gap: 10px;

  margin: 15px 0 20px;

  flex-wrap: wrap;
}

.branch-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 9px 15px;

  border-radius: 6px;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.website-btn {
  background-color: #111;
  color: #fff;
}

.instagram-btn {
  background-color: #833ab4;
  color: #fff;
}

.branch-btn:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

/* =====================================================
   INSTAGRAM ANTIGUO
   Se conserva por compatibilidad
===================================================== */

.link-instagram {
  display: inline-block;
  margin-top: 10px;
}

.btn-instagram {
  display: inline-block;

  background-color: #e1306c;
  color: white;

  padding: 8px 15px;

  border-radius: 8px;

  text-decoration: none;
  font-weight: bold;

  margin-top: 10px;
}

.btn-instagram i {
  margin-right: 8px;
}

/* =====================================================
   SLIDER
===================================================== */

.slider {
  position: relative;

  width: 100%;
  max-width: 600px;
  height: 400px;

  margin: 20px auto;

  overflow: hidden;

  border-radius: 10px;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.slides {
  display: flex;

  width: 100%;
  height: 100%;

  transition: transform 0.5s ease-in-out;
}

.slides img {
  flex: 0 0 100%;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* =====================================================
   BOTONES SLIDER
===================================================== */

button.prev,
button.next {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 42px;
  height: 42px;

  background-color: rgba(50, 99, 87, 0.85);
  color: white;

  border: none;
  border-radius: 50%;

  cursor: pointer;

  z-index: 10;

  font-size: 1.2em;

  display: flex;
  align-items: center;
  justify-content: center;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

button.prev:hover,
button.next:hover {
  background-color: rgba(50, 99, 87, 1);
}

/* =====================================================
   GALERÍA
===================================================== */

#galeria {
  text-align: center;
}

/* =====================================================
   BLOG
===================================================== */

#blog p,
#blog ul {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#blog ul {
  line-height: 1.8;
}

/* =====================================================
   CONTACTO
===================================================== */

#contacto {
  text-align: center;
}

#contacto a {
  color: #326357;
  font-weight: bold;
}

#contacto a:hover {
  text-decoration: none;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
  text-align: center;

  padding: 1.5em;

  background-color: #1a1a1a;
  color: #fff;
}

footer p {
  margin: 7px 0;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {
  .hero {
    height: 380px;
  }

  section {
    padding: 1.5em;
  }

  .sucursal-card {
    padding: 20px;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {
  /* HEADER */

  header {
    padding: 15px 10px;
  }

  .logo {
    width: 110px;
  }

  header h1 {
    font-size: 24px;
  }

  /* HERO */

  .hero {
    width: 100%;
    height: 280px;
  }

  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-text {
    left: 5%;
    bottom: 15px;

    width: 90%;

    padding: 10px 12px;
  }

  .hero-text h2 {
    font-size: 21px;
  }

  /* SECCIONES */

  section {
    padding: 20px 15px;
    margin: 10px 0;
  }

  h2 {
    font-size: 24px;
  }

  /* SUCURSALES */

  .sucursal-card {
    width: 100%;

    margin: 20px auto;

    padding: 18px 15px;
  }

  .sucursal-card h3 {
    font-size: 22px;
  }

  .sucursal-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* BOTONES */

  .branch-links {
    gap: 8px;
  }

  .branch-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* MAPAS */

  .mapa {
    margin-top: 15px;
  }

  .mapa iframe {
    width: 100%;
    height: 250px;
    border-radius: 6px;
  }

  /* =====================================================
   SLIDER GALERIA
===================================================== */

  /* =====================================================
   SLIDER GALERÍA
===================================================== */

  .slider {
    position: relative;
    width: 88%;
    max-width: 480px;
    height: 360px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  }

  .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
  }

  .slides img {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  /* =====================================================
   BOTÓN REGRESAR AL DIRECTORIO
===================================================== */

  .center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 15px;
    background-color: #fff;
  }

  .back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background-color: #326357;
    color: #fff;

    padding: 12px 22px;

    border-radius: 8px;

    text-decoration: none;
    font-size: 15px;
    font-weight: 700;

    transition:
      transform 0.2s ease,
      background-color 0.2s ease;
  }

  .back-button:hover {
    background-color: #244b42;
    transform: translateY(-2px);
    text-decoration: none;
  }

  @media (max-width: 600px) {
    .center-container {
      padding: 20px 15px;
    }

    .back-button {
      width: 100%;
      max-width: 300px;
      padding: 12px 18px;
    }
  }
  /* MOBILE */

  @media (max-width: 600px) {
    .slider {
      width: 92%;
      max-width: 420px;
      height: 320px;
    }
  }

  /* CELULARES PEQUEÑOS */

  @media (max-width: 400px) {
    .slider {
      width: 94%;
      height: 280px;
    }
  }
}

/* =====================================================
   CELULARES PEQUEÑOS
===================================================== */

@media (max-width: 400px) {
  .hero {
    height: 240px;
  }

  .hero-text h2 {
    font-size: 18px;
  }

  .branch-links {
    flex-direction: column;
    align-items: stretch;
  }

  .branch-btn {
    width: 100%;
  }

  .slider {
    height: 260px;
  }

  .mapa iframe {
    height: 220px;
  }
}
