body {
  font-family: 'Montserrat', sans-serif;
  background: #EDEDED;
  margin: 0;
  padding-top: 80px;
  color: #222;
}

body.dark-mode {
  background: #6A2F91;
  color: #EDEDED;
}

header {
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #EDEDED;
  z-index: 1000;
  flex-wrap: nowrap;
}

body.dark-mode .navbar {
  background: #6A2F91;
}

.logo {
  height: 50px;
  cursor: pointer;
  padding-left: 2vh;
  padding-top: 1vh;
}

  body {
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE/Edge */
    user-select: none;          /* Estándar */
  }

  img {
    pointer-events: none;       /* Desactiva clic en imágenes */
    -webkit-user-drag: none;    /* Evita arrastrar en Safari */
  }

/* 🔥 Fondo SVG solo en modo claro */
body {
  background-color: #EDEDED;
  background-image: url('../img/fondos/bg-claro.svg');
  background-repeat: repeat;
  background-size: auto;
  background-position: center;
}

/* 🔥 En modo oscuro se desactiva el fondo SVG */
body.dark-mode {
  background-color: #6A2F91;
  background-image: none;
}

#form-calificanos {
  width: 70%;
  height: auto;
}

#form-contacto {
  width: 70%;
  height: auto;
}

#form-brief {
  width: 80%;
  height: auto;
}

#whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 28px;
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.3s, background-color 0.3s;
}

#whatsapp-button:hover {
  background-color: #1eb851;
  transform: scale(1.1);
}

#theme-toggle {
  margin-top: 1vh;
  margin-left: 2vh;
  display: flex;
  justify-content: center;
  width: 2%;
  background: none;
  border: none;
  color: #EDEDED;
  font-size: 1.2rem;
  cursor: pointer;
}

#theme-toggle:hover {
  background-color: #222;
  transform: scale(0.5);
}

footer {
  text-align: center;
  padding: 1rem;
  background: #EDEDED;
}

body.dark-mode footer {
  background: #6A2F91;
}

button, .btn {
  background: #6A2F91;
  color: #fff;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:active, .btn:active {
  transform: scale(0.95);
  background: #581d76;
}

form, section, .contenedor {
  margin: 0 auto;
  padding: 2rem 1rem;
}

input, textarea, select {
  display: block;
  width: 100%;
  margin-bottom: 1.2rem;
  padding: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

#floating-buttons {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
}

#floating-buttons button,
#floating-buttons a {
  width: 50px;
  height: 50px;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.estrellas {
  display: flex;
  gap: 0.5rem;
  font-size: 1.8rem;
  cursor: pointer;
  margin-bottom: 1.2rem;
}

button {
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  display: block;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* --- MODO OSCURO --- */

body.dark-mode {
  background: #6A2F91;
  color: #EDEDED;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p,
body.dark-mode label {
  color: #EDEDED;
}

body.dark-mode .navbar {
  background: #6A2F91; /* se mantiene lila */
}

/* ✅ Enlaces del menú en blanco */
body.dark-mode .navbar ul li a {
  color: #EDEDED !important;
}

/* ✅ Botón hamburguesa en blanco */
body.dark-mode .hamburger {
  color: #EDEDED;
}

/* ✅ Logo en blanco (por inversión) */
body.dark-mode .logo {
  filter: brightness(0) invert(1);
}

/* ✅ Carrusel de marcas con efecto blanco */
body.dark-mode .marcas-track img {
  filter: brightness(0) invert(1) grayscale(100%);
}

body.dark-mode .marcas-track img:hover {
  filter: brightness(1) invert(0) grayscale(0%);
}

/* ✅ Servicios */
body.dark-mode .servicio-title {
  color: #EDEDED;
}

body.dark-mode .overlay {
  color: #EDEDED;
  background: rgba(237, 237, 237, 0.1);
}

/* ✅ Calificaciones */
body.dark-mode .pastilla {
  background: #6A2F91;
  color: #EDEDED;
}

/* ✅ Footer */
body.dark-mode footer {
  background: #6A2F91;
  color: #EDEDED;
}

/* ✅ Enlaces generales */
body.dark-mode a {
  color: #EDEDED;
}

/* Collage slider responsive a pantalla completa */
.collage-slider {
  padding: 2rem;
  max-width: 96%;
  margin: 3rem auto;
}

.grid-collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.2rem;
  width: 100%;
}

/* Las imágenes ocupan todo su espacio */
.grid-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* Distribución adaptada según tu diseño */
.grid-collage img:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.grid-collage img:nth-child(2) {
  grid-column: span 2;
  grid-row: span 1;
}

.grid-collage img:nth-child(3) {
  grid-column: span 2;
  grid-row: span 1;
}

.grid-collage img:nth-child(4) {
  grid-column: span 2;
  grid-row: span 1;
}

.grid-collage img:nth-child(5) {
  grid-column: span 2;
  grid-row: span 2;
}

.grid-collage img:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}

.grid-collage img:nth-child(7) {
  grid-column: span 2;
  grid-row: span 1;
}

.grid-collage img:nth-child(8) {
  grid-column: span 2;
  grid-row: span 1;
}

/* Responsive tablet */
@media (max-width: 1024px) {
  .grid-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto);
  }

  .grid-collage img {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* Responsive mobile */
@media (max-width: 600px) {
  .grid-collage {
    grid-template-columns: 1fr;
  }

  .grid-collage img {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* Slider botones clásicos */
.slider-btn {
  position: absolute;
  top: 50%;
  background: #6A2F91;
  color: #EDEDED;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

/* Hover efecto */
.slider-btn:hover {
  background: #581d76;
}

/* Posiciones */
.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

/* Carrusel de marcas */
.marcas-slider {
  display: flex;
  width: auto;
  overflow: hidden;
  border-radius: 1rem;
}

.marcas-track {
  display: flex;
  width: 100%;
  animation: scrollMarcas 8s linear infinite;
  justify-content: space-around;
}

.marcas-track img {
  height: 90px; /* aumentamos el tamaño de las marcas */
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.marcas-track img:hover {
  filter: grayscale(0%);
}

.marcas-section h2 {
  font-size: 6rem;
  color: #6A2F91;
  text-align: center;
  margin-bottom: 0rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.marcas-section p {
  text-align: center;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.calificaciones-track {
  display: flex;
  gap: 1rem;
  animation: scrollOpiniones 40s linear infinite;
}

.marcas-track img {
  height: 150px;
  padding: 2vh;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.marcas-track img:hover {
  filter: grayscale(0%);
}

@keyframes scrollMarcas {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pastillas de calificaciones */
.calificaciones-slider {
  display: flex;
  overflow: hidden;
  border-radius: 1rem;
}

.pastilla {
  flex: 0 0 100%;
  background: #EDEDED;
  color: #6A2F91;
  padding: 1rem;
  border-radius: 2rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 4rem;
}

body.dark-mode .pastilla {
  background: #6A2F91;
  color: #EDEDED;
}

@keyframes scrollOpiniones {
  0% { transform: translateX(0); }
  100% { transform: translateX(-800%); }
}

.servicio {
  text-align: center;
  width: 100%;
  max-width: 300px;
  position: relative;
}

.img-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 1rem;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
  filter: brightness(0.65); /* capa de transparencia */
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 1rem;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slider-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  height: 500px;
  border-radius: 1rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  background: #6A2F91;
  color: #EDEDED;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
}

.slider-btn:hover {
  background: #581d76;
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}


/* SERVICIOS GRID GENERAL */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-content: center;
  max-width: 96%;
  margin: 3rem auto;
}

/* Responsive para tablet y mobile */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 90%;
  }

  .marcas-track {
    display: flex;
    width: 100%;
    animation: scrollMarcas 8s linear infinite;
    justify-content: space-around;
  }

  .marcas-section h2 {
    font-size: 3rem;
    color: #6A2F91;
    text-align: center;
    margin-bottom: 0rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .marcas-section p {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
  }
}

.servicio {
  text-align: center;
  width: 100%;
  position: relative;
}

.img-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 1rem;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
  filter: brightness(0.65);
}

/* Nombre siempre visible sobre imagen */
.servicio-title {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #EDEDED;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  padding: 0 1rem;
}

/* Overlay animado */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: auto;
  height: 380px;
  background: rgba(106, 47, 145, 0.93);
  color: #EDEDED;
  padding: 2rem 1rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 1rem;
  font-size: 0.95rem;
}

.img-wrap:hover .overlay {
  transform: translateY(0%);
}

/* --- Esquinas redondeadas y corrección de bordes --- */

input,
textarea,
select {
  border-radius: 0.75rem;
  border: 1px solid #ccc; /* gris claro en modo claro */
  padding: 0.5rem 1rem;
  outline: none;
  font-family: 'Montserrat', sans-serif;
}

button,
input[type="submit"],
input[type="button"] {
  border-radius: 0.75rem;
}

/* Borde y color en modo oscuro */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background-color: #6A2F91;
  color: #EDEDED;
  border: 1px solid #EDEDED;
}

body.dark-mode .navbar {
  background: #6A2F91;
}

.navbar a {
  color: #6A2F91;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
}

body.dark-mode .navbar a {
  color: #EDEDED;
}

.logo {
  height: 50px;
  cursor: pointer;
}

body.dark-mode .hamburger {
  color: #EDEDED;
}
/* Overlay para cerrar el menú */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

#menu.menu-visible ~ #menu-overlay {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1025px) {
  #menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
  }

  #menu ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #menu ul li {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-right: 2vh;
  }

  #menu ul li a {
    display: flex;
    justify-content: center;
    color: #6A2F91;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
  }

  body.dark-mode #menu ul li a {
    color: #EDEDED;
  }

  .hamburger {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
    justify-content: center;
    z-index: 1100;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    position: relative;
    z-index: 1101;
    color: #6A2F91;
    width: 10%;
  }

  .navbar nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: #6A2F91;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1001;
    display: flex;
    justify-content: center;
  }

  .navbar nav.menu-visible {
    transform: translateX(0%);
  }

  .navbar nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  .navbar nav ul li a {
    color: #EDEDED;
    font-weight: bold;
    font-size: 1.2rem;
  }
}