

body {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background: #ffffff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header img.logo {
  height: 120px;
}
header img.logo-extra {
  height: 80px;
  margin-left: 5rem;
}

.languages img {
  height: 70px;
  margin-left: 10px;
  cursor: pointer;
}


nav.navbar {
  background: #323333;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

nav.navbar a {
  color: #e2f0f7;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
  border-radius: 2rem;
}

nav.navbar a:hover,
nav.navbar a.active {
  background: #e2f0f7;
  color: #3a3f4b;
  border-radius: 2rem;
}

.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: #ffffff; 
  color: #000000;
}

body.dark .hero {
  background: #333; 
  color: #bfbfc0; 
}



.section {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

footer {
  background: #ffffff;
  padding: 1rem 2rem;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}
body.dark {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

body.dark header,
body.dark .section,
body.dark footer {
  background-color: #2c2c2c;
  color: #f1f1f1;
}

body.dark nav.navbar {
  background: #686868; 
}



body.dark nav.navbar a {
  color: #ddd;
}

body.dark nav.navbar a:hover,
body.dark nav.navbar a.active {
    border-radius: 2rem;
  background: #3a3f4b;
  color: #fff;
}
.social-icons {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;
  padding-left: 1rem;
}

.social-icons img.icono-red {
  height: 28px;
  width: auto;
  transition: transform 0.2s ease;
}

.social-icons img.icono-red:hover {
  transform: scale(1.1);
}
nav.navbar a:first-child {
  margin-left: 5rem;
}
.theme-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 1rem;
  font-size: 0.9rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-top: 4px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #777;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px; /* centrado vertical */
  background-color: rgb(255, 255, 255);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #606061;
}

input:checked + .slider:before {
  transform: translateX(24px);
}
.slider .icon {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  transition: 0.4s;
  justify-content: center;
  font-size: 14px;
  pointer-events: none;
}

body:not(.dark) .slider .icon::before {
  content: "🌙";
}

body.dark .slider .icon::before {
  content: "☀️";
}

input:checked + .slider .icon {
  transform: translateX(24px);
  transition: transform 0.4s;
}

.carousel-wrapper {
  display: flex;
  justify-content: center;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-height: 600px; /* Alto máximo aumentado */
  object-fit: contain;
}




.carousel-image-wrapper {
  position: relative; /* Asegúrate de que esto esté presente */
  width: 100%;
  max-width: 900px; /* Ancho máximo */
  margin: 0 auto;
}




.carousel-btn {
   background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn.left {
 margin-right: 10px;
}

.carousel-btn.right {
  margin-left: 10px;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
.carousel-caption {
  position: absolute;
  top: 10px; /* Distancia desde la parte superior */
  left: 50%;
  transform: translateX(-50%);
  color: #fff; /* Color del texto */
  background: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente */
  padding: 5px 10px; /* Espaciado interno */
  border-radius: 5px;
  white-space: nowrap; /* Mantener el texto en una sola línea */
  overflow: hidden; /* Ocultar el desbordamiento */
  text-overflow: ellipsis; /* Agregar puntos suspensivos si el texto es largo */
}
#carousel-counter {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #444;
  position: absolute;
  bottom: -2rem;
  width: 100%;
}
body.dark #carousel-counter {
  color: #e0e0ff; 
}

.clientes-lista {
  list-style: none;
  padding-left: 0;
  margin: 1em 0;
}

.cliente {
  font-size: 1rem;
  margin: 0.3em 0;
  padding: 0.2em;
  transition: background-color 0.3s, color 0.3s;
}

/* Estilo para los enlaces */
.cliente a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}
body.dark .cliente a {
  color: #e0e0ff;
  text-decoration: none;
  transition: color 0.3s;
}

.cliente a:hover {
  color: #0077cc;
  text-decoration: underline;
}
body.dark .cliente a:hover {
  color: #0077cc;
  text-decoration: underline;
}

.taller-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  padding: 2rem 1rem;
  flex-wrap: nowrap;
}

.imagen-lateral {
  width: 250px;
  text-align: center;
  font-size: 1rem;
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imagen-lateral img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.5rem;
}

body.dark .imagen-lateral p {
  color: #ccc;
}

/* Para móviles: se apilan en columna */
@media (max-width: 1000px) {
  .taller-layout {
    flex-direction: column;
    align-items: center;
  }

  .imagen-lateral {
    width: 90%;
    max-width: 400px;
  }

  .section {
    width: 90%;
  }
}
/* Fondo blanco solo para la imagen de Gibson */
.fondo-blanco {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Borde para las descripciones debajo de las imágenes */
.imagen-lateral p {
  border: 1px solid #ccc;
  padding: 0.75rem;
  border-radius: 10px;
  margin-top: 0.5rem;
  background-color: rgba(255, 255, 255, 0.85);
}

body.dark .imagen-lateral p {
  background-color: rgba(40, 40, 40, 0.85);
  border-color: #444;
}

.taller-fondo {
  background-image: url('fondosGuit/fondo1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem 0;
}

body.dark .taller-fondo {
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.6);
}

.instalaciones-fondo {
  background-image: url('guitarras/Foto15G.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem 0rem;
}

body.dark .instalaciones-fondo {
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.6);
}
.local-fondo {
  background-image: url('fondosGuit/fondo2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem 0rem;
}

body.dark .local-fondo {
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.6);
}
.clien-fondo {
  background-image: url('fondosGuit/fondo3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem 0rem;
}

body.dark .clien-fondo {
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.6);
}
.galeria-section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.galeria-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #004085;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.galeria-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.galeria-item:hover {
  transform: scale(1.02);
}

.galeria-item img {
  width: 100%;
  height: auto;
  display: block;
}

.galeria-item p {
  padding: 0.75rem;
  font-size: 0.95rem;
  color: #333;
}

body.dark .galeria-item {
  background: rgba(44, 44, 44, 0.9);
}

body.dark .galeria-item p {
  color: #e0e0ff;
}

.galeria-fondo {
  background-image: url('fondosGuit/fondo5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem 0rem;
}

body.dark .galeria-fondo {
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.6);
}
.guitarra-fondo {
  background-image: url('fondosGuit/fondo4.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem 0rem;
}

body.dark .guitarra-fondo {
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.6);
}



/* Responsive adjustments (mobile only) */
@media (max-width: 1024px) {
  nav.navbar a:first-child {
    margin-left: 0;
  }

  header {
    padding: 1rem;
  }
}

@media (max-width: 820px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .logo-contenedor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  header img.logo {
    height: 88px;
  }

  header img.logo-extra {
    height: 58px;
    margin-left: 0;
  }

  .languages {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .languages img {
    height: 44px;
    margin-left: 0;
  }

  .theme-toggle {
    margin-left: 0;
  }

  nav.navbar {
    padding: 0.5rem;
    justify-content: center;
    gap: 0.25rem;
  }

  nav.navbar a {
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
  }

  .social-icons {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    justify-content: center;
  }

  .hero {
    padding: 2.25rem 1rem;
  }

  .hero h1:empty,
  .hero p:empty {
    display: none;
    margin: 0;
  }

  .section {
    width: auto;
    margin: 1rem 0.75rem 0;
    padding: 1.25rem;
  }

  .galeria-section {
    padding: 1.5rem 0.75rem;
  }

  .galeria-grid,
  .galeria-fondo .galeria-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .carousel {
    gap: 0.5rem;
  }

  .carousel-image-wrapper {
    max-width: 100%;
  }

  .carousel img {
    max-height: 380px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .carousel-btn.left {
    margin-right: 0;
  }

  .carousel-btn.right {
    margin-left: 0;
  }

  .carousel-caption {
    max-width: 85%;
    white-space: normal;
    text-align: center;
  }

  #carousel-counter {
    position: static;
    margin-top: 0.5rem;
  }

  .taller-layout {
    gap: 1.5rem;
    padding: 1.5rem 0.75rem;
  }

  .imagen-lateral {
    width: 100%;
    max-width: 360px;
  }

  .no {
    display: flex;
    justify-content: center;
  }

  .info-banner {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: inline-block;
    margin: 0.75rem auto 0;
  }

  .galeria-principal img#imagen-grande {
    width: 100% !important;
    max-width: 100% !important;
  }

  .miniaturas {
    gap: 0.5rem !important;
  }

  .miniaturas img {
    width: 92px !important;
    height: 64px !important;
  }

  .section iframe {
    height: 320px;
  }
}

@media (max-width: 520px) {
  header img.logo {
    height: 72px;
  }

  header img.logo-extra {
    height: 50px;
  }

  .languages img {
    height: 36px;
  }

  nav.navbar a {
    padding: 0.5rem 0.65rem;
    font-size: 0.86rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .section {
    margin: 1rem 0.5rem 0;
    padding: 1rem;
  }

  .cliente {
    font-size: 0.95rem;
  }

  .galeria-grid,
  .galeria-fondo .galeria-grid {
    grid-template-columns: 1fr;
  }

  .miniaturas img {
    width: 78px !important;
    height: 56px !important;
  }

  .carousel img {
    max-height: 280px;
  }

  .carousel-caption {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  nav.navbar a {
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
  }

  .social-icons {
    gap: 8px;
  }

  .social-icons img.icono-red {
    height: 26px;
  }
}
