/* Importa Montserrat desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
/* Importa la fuente desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif; /* Fuente profesional */
}

body {
  display: flex;
  flex-direction: column;
  color: #333;
  height: 100vh;
  background-color: #1a1a1a; /* Color de fondo del sidebar, para evitar gaps blancos */
  cursor: url('cursor.png') 0 0, auto;
}

/* Contenedor del header + logo */
.header-container {
  position: relative;
  width: 100%;
  height: 100px;
  margin-bottom: 0;
}

/* Logo flotando encima de las barras */
.logo-floating {
  position: absolute;
  top: -10px;
  left: 30px;
  z-index: 2;
}

.logo-floating img {
  height: 100px;
}

/* Top Bar: dividida en dos franjas */
.top-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 1;
}

.top-bar-top {
  background-color: #ffffff;
  height: 42px;
}

.top-bar-bottom {
  background-color: #2a2a2a;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 30px;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 0;
}

.social-icons img {
  height: 20px;
  margin-left: 15px;
}

/* Layout principal */
.main-container {
  display: flex;
  flex: 1;
  margin-top: 0;
  justify-content: center; /* Centrar el contenido horizontalmente */
  flex: 1 0 auto;
  display: flex;
  min-height: 0;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #000000 !important;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.sidebar ul {
  list-style: none;
  width: 100%;
}

.sidebar ul li {
  width: 100%;
}

.sidebar ul li a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  border-bottom: 1px solid #333;
  transition: color 0.3s ease;
  font-weight: 500; /* Más énfasis en los enlaces */
}

.sidebar ul li a:hover {
  background-color: #1a1a1a;
  color: #800080;
}

a:visited {
  color: #fff;
}

/* Contenido principal */
.content {
  flex: 1;
  background-color: #f5f5f5;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  text-align: justify; /* Ajustar el div content */
}

/* Slider */
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #fff;
  overflow: hidden;
  flex: 1;
  display: flex;
}

/* Estilos para controlar la visualización de imágenes según el tamaño de pantalla */
.slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}



.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}

.slide.active {
  opacity: 1;
  z-index: 1;
  position: absolute;
}

/* Imagen ocupa todo menos el caption */
.slide img {
  width: 100%;
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
  object-fit: cover;
  
  display: block;
}

/* Caption fijo abajo */
.slide-caption {
  width: 100%;
 /*  background: linear-gradient(90deg, #ff9900 0%, #800080 100%); */
 background: rgb(131, 130, 129, 0.8);
  color: rgb(222, 222, 221, 0.9);
  padding: 18px 0 10px 0;
  
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
  margin: 0;
  flex-shrink: 0;
}

/* Botones del slider */
.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30,30,30,0.7);
  color: #fff;
  border: none;
  font-size: 2.5rem;
  padding: 0 18px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  user-select: none;
}
.slider-button.left {
  left: 20px;
}
.slider-button.right {
  right: 20px;
}
.slider-button:hover {
  background: #800080;
  color: #fff;
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 18px 10px 16px 10px;
  font-size: 0.98rem;
  letter-spacing: 0.5px;
  margin-top: 0;
  width: 100%;
}

footer a,
footer a:visited {
  color: #fff !important;
  text-decoration: underline;
}

/* Extra Fixes */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sección de servicios */
.servicios-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px;
  background-color: #f5f5f5;
}

.servicio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #1a1a1a;
  padding: 15px;
  border: 1px solid #800080; /* Borde delgado y color púrpura */
  border-radius: 4px;        /* Más delgado que 8px */
  transition: transform 0.3s ease;
}

.servicio-item:hover {
  transform: translateY(-5px);
}

.servicio-item p {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
 /*  text-transform: uppercase; */
 font-family: 'Roboto', Arial, sans-serif;
}

/* Cambia el color de los títulos de cada servicio */
.servicio-item > p:first-of-type {
  color: #800080;
  font-weight: bold;
  background-color: white;
  border-radius: 4px;
}

/* Imagen de servicio en blanco y negro con efecto hover */
/* Imagen de servicio en blanco y negro con efecto hover */
.imagen-servicio {
    width: 100%;
    height: 100%; /* Asegura que ocupe el alto del contenedor */
    overflow: hidden;
    border-radius: 4px;
    display: flex; /* Para estirar la imagen */
    align-items: stretch; /* Que la imagen tome todo el alto disponible */
  }
  
  .imagen-servicio img {
    width: 100%;
    height: 100%; /* Esto fuerza que tome el alto completo del div */
    object-fit: cover; /* Cubre todo el espacio sin deformarse */
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
  }
  
  .servicio-item:hover .imagen-servicio img {
    filter: grayscale(0%);
    transform: scale(1.05);
  }
  

  .servicio-item .detalle {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    /* transition: max-height 0.5s ease, opacity 0.5s ease; */
    
    color: #fff;
    font-size: 14px;
    text-align: justify;
    margin-top: 10px;
    line-height: 1.5;
  }
  
  
  
  .servicio-item:hover .detalle {
    opacity: 1;
    max-height: 2000px; /* Usa un valor mucho mayor */
    color: #f8f8f8;
  }

  .servicio-item:hover .imagen-servicio {
    height: 120px; /* Ajusta este valor según lo que necesites */
    transition: height 0.5s ease;
}

.servicio-item .imagen-servicio {
    transition: height 0.5s ease;
}

/* Estilo profesional para la lista de clientes */
.clientes-lista {
  list-style: none;
  padding: 0;
  margin: 30px 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.clientes-lista li {
  background: #f5f5f5;
  border-left: 5px solid #800080;
  padding: 14px 18px;
  font-size: 1.08rem;
  color: #222;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(128,0,128,0.06);
  transition: background 0.2s, box-shadow 0.2s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

.clientes-lista li:hover {
  background: #ede7f6;
  box-shadow: 0 4px 16px rgba(128,0,128,0.12);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  background: #25d366;
  border-radius: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 8px 18px 8px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  animation: whatsapp-bounce 1.2s infinite alternate;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.whatsapp-float img {
  width: 38px;
  height: 38px;
  display: block;
}
.whatsapp-text {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin-left: 2px;
  white-space: nowrap;
}
.whatsapp-float:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  transform: scale(1.04) translateY(-2px);
  background: #1ebe57;
}
@keyframes whatsapp-bounce {
  0% { transform: translateY(0);}
  100% { transform: translateY(-6px);}
}

/* Formulario de contacto profesional */
.form-contacto {
  max-width: 440px;
  margin: 0 auto;
  background: #faf7fd;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(128,0,128,0.07);
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-contacto label {
  font-weight: 600;
  color: #800080;
  margin-bottom: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.form-contacto input[type="text"],
.form-contacto input[type="email"],
.form-contacto input[type="number"],
.form-contacto textarea {
  border: 1px solid #d1b3e0;
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  transition: border 0.2s;
}
.form-contacto input:focus,
.form-contacto textarea:focus {
  border: 1.5px solid #800080;
  outline: none;
}
.form-contacto button {
  background: linear-gradient(90deg, #800080 60%, #a259c6 100%);
  color: #fff;
  padding: 12px 0;
  border: none;
  border-radius: 5px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}
.form-contacto button:hover {
  background: linear-gradient(90deg, #a259c6 0%, #800080 100%);
}
.form-msg {
  margin-top: 10px;
  color: #800080;
  font-weight: 500;
  min-height: 22px;
}

/* --- Responsive styles --- */

/* Ajusta el sidebar y el main-container en pantallas pequeñas */
@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    justify-content: space-around;
    padding: 0.5em 0;
  }
  .sidebar ul {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .sidebar li {
    margin: 0 0.5em;
    list-style: none;
  }
  .sidebar a {
    padding: 0.5em 1em;
    font-size: 1em;
  }
  .content {
    width: 100%;
    padding: 0.5em;
  }
}

/* Slider responsivo */
@media (max-width: 600px) {
  .slider-container {
    width: 100vw;
    min-width: 0;
    padding: 0;
    margin: 0;
    height: 420px;         /* Aumenta el alto aquí */
    max-height: 80vh;      /* O ajusta según prefieras */
    background: #fff;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
  }
  .slide,
  .slide.active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
  }
  .slide img {
    width: 100vw;
    height: 350px;        /* Aumenta el alto aquí */
    max-height: 70vh;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    background: #fff;
  }
  .content {
    padding: 0;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
  }
}

/* WhatsApp flotante y footer */
@media (max-width: 600px) {
  .whatsapp-float {
    right: 10px;
    bottom: 60px; /* Antes: 10px. Ahora más arriba en móvil */
    font-size: 0.9em;
  }
  footer {
    font-size: 0.9em;
    padding: 0.5em;
    text-align: center;
  }
}

/* Logo flotante and top-bar */
@media (max-width: 600px) {
  .header-container {
    height: 150px; /* Aumenta el alto para el logo grande */
    display: block;
    position: relative;
    background: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .logo-floating {
    position: absolute;
    left: 50%;
    top: -20px; /* Sube el logo más arriba */
    transform: translateX(-50%);
    margin: 0;
    width: auto;
    z-index: 2;
    background: none;
    display: block;
  }
  .logo-floating img {
    width: 260px;
    max-width: 98vw;
    height: auto;
    max-height: 140px;
    display: block;
    margin: 0 auto;
  }
}

/* Botón hamburguesa oculto en escritorio */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 18px;
  right: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  background: #333;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Sidebar responsivo */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 18px;
    right: 18px;
    background: #fff;
    border: 2px solid #800080;
    box-shadow: 0 2px 8px rgba(128,0,128,0.08);
  }
  .sidebar {
    position: fixed;
    top: 0;
    right: -100vw;
    left: auto;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 16px rgba(128,0,128,0.13);
    transition: right 0.3s;
    z-index: 1000;
    padding-top: 20px; /* Antes: 70px. Baja el padding para subir todo el contenido */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 4px solid #800080;
  }
  .sidebar.open {
    right: 0;
  }
  .sidebar ul {
    flex-direction: column;
    width: 100%;
    padding: 0 1.5em;
  }
  .sidebar li {
    margin: 0.7em 0;
    text-align: left;
  }
  .sidebar a {
    font-size: 1.15em;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 0.7em 0.5em;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    display: block;
  }
  .sidebar a.active,
  .sidebar a:hover {
    color: #fff !important;
    background: #800080;
  }
  .sidebar .social-icons.responsive {
    display: flex;
    gap: 1.2em;
    margin: 0.5em 1.5em 1em 1.5em; /* Usa un margen superior pequeño y positivo */
    justify-content: flex-start;
  }
  .sidebar .social-icons.responsive img {
    height: 28px;
    filter: grayscale(0%);
    transition: filter 0.2s;
  }
  .sidebar .social-icons.responsive a:hover img {
    filter: brightness(1.2);
  }
  .top-bar-bottom .social-icons {
    display: none !important;
  }
  .main-container {
    flex-direction: column;
  }
}

/* Oculta los iconos sociales del menú responsivo por defecto */
.sidebar .social-icons.responsive {
  display: none;
}

/* Solo muestra los iconos sociales dentro del menú cuando es responsivo */
@media (max-width: 900px) {
  .sidebar .social-icons.responsive {
    display: flex;
    gap: 1.2em;
    margin: 0.5em 1.5em 1em 1.5em; /* Usa un margen superior pequeño y positivo */
    justify-content: flex-start;
  }
}

/* Oscurecer fondo cuando menú abierto */
@media (max-width: 900px) {
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
  }
}

@media (max-width: 900px) {
  .whatsapp-text {
    display: none;
  }
  .whatsapp-float img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    object-fit: cover;
  }
}

/* Ajustes finales para WhatsApp flotante en móvil */
@media (max-width: 900px) {
  .whatsapp-float {
    padding: 0 !important;
    width: 55px;
    height: 55px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    gap: 0;
  }
  .whatsapp-float img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }

.slide-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.slider-button {
  display: none;
}
.slide-2 {
  width: 100%;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.slide-2 img {
  width: 100%;
  height: auto; /* Clave para mostrar toda la imagen sin recorte */
  display: block;
  object-fit: contain; /* Muestra toda la imagen sin recorte */
}
}