* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

textarea {
    resize: none;
}

/* Contenedor general */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

/* Botón */
.btn-whatsapp {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-pulse 2s infinite;
}

/* Hover */
.btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}

/* Animación de pulsación */
@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
    }
}

/* Mensaje emergente */
.whatsapp-msg {
    position: absolute;
    right: 70px;
    bottom: 10px;
    background: #ffffff;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Cuando aparece */
.whatsapp-msg.mostrar {
    opacity: 1;
    transform: translateX(0);
}

/* Punta del globito */
.whatsapp-msg::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 16px;
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}




body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f8f8f8;
  color: #222;
}

.hero {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 80px 10%;
    background: linear-gradient(135deg, #0f2027, #203a43, #4facfe);
    color: white;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-texto {
  max-width: 500px;
  flex: 1;
  text-align: start;
}

.hero-texto h1 {
    text-align: start;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-texto p {
  font-size: 1.2rem;
  color: #b0c7d6;
  max-width: 700px;
  text-align: start;
  line-height: 1.6;
}


.btn-principal {
  font-size: 1.4rem;
  margin-top: 30px;
  background-color: rgba(0, 0, 0, 0.100);
  color: white;
  padding: 15px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s;
  border: 2px solid #1b2c31;
}

.btn-principal:hover {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.251);
}

.hero-img img {
  width: 350px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  border-radius: 10px;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
}







.quienes-somos {
  background: linear-gradient(135deg, #2c5364, #203a43, #0f2027);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quienes-contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}

.quienes-texto {
  flex: 1;
  min-width: 300px;
}

.quienes-texto h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  border-left: 6px solid #00bcd4;
  padding-left: 15px;
}

.quienes-texto p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.valores {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.valor {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.valor i {
  font-size: 1.8rem;
  color: #00bcd4;
  min-width: 35px;
}

.valor h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.valor p {
  font-size: 0.95rem;
  color: #ccc;
}

.quienes-imagen {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quienes-imagen img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  transition: transform 0.5s ease;
}

.quienes-imagen img:hover {
  transform: scale(1.03);
}











.info{
    padding: 50px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #0d1b2a;
    color: #ffffff;
    
}

.info .icono-info{
  color: #00bcd4;
}

.info ul{
    margin-top: 50px;
    list-style: none;
    width: 65vw;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 50px;
}

.servicios{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    transition: all 0.5s ease;
}

.titulo-servicios{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.parrafo-titulo{
    color: #d0d7e2;
    font-weight: bold;
    position: relative;
    display: inline-block;
    color: inherit; /* mantiene el color del texto */
    text-decoration: none; /* quitamos el underline nativo */
}

.sub-derecha::after {
    right: 0;
}

.sub-izquierda::after {
    left: 0;
}

.parrafo-titulo::after {
  content: "";
  position: absolute;
  bottom: -6px; /* equivale al text-underline-offset */
  width: 0;
  height: 3px; /* text-decoration-thickness */
  background-color: #d0d7e2; /* text-decoration-color */
  transition: width 0.35s ease;
}

/* Al pasar el mouse, se anima de izquierda a derecha */
.parrafo-titulo:hover::after {
  width: 100%;
}



.descripcion{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.descripcion.activa {
  max-height: 300px; /* o un valor suficiente para tu texto */
  opacity: 1;
}

.fondotexto{
    background-color: #203a43;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 5px 5px 12px black;
    transition: all 1s ease;
}



.izquierda{
    align-self: flex-start;
    justify-self: flex-start;
}

.derecha{
    align-self: flex-end;
    justify-self: flex-end;
}

.icono-info{
    font-size: 50px;
}

.disable{
    display: none;
}






.galeria {
  background-color: #0d1b2a;
  color: white;
  text-align: center;
  padding: 80px 5%;
  font-family: 'Montserrat', sans-serif;
}

.galeria h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.galeria .subtitulo {
  color: #ddd;
  margin-bottom: 50px;
}

/* Contenedor principal con flexbox */
.galeria-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

/* Cada tarjeta de imagen */
.galeria-item {
  flex: 1 1 250px; /* ancho mínimo 250px, se expande si hay espacio */
  max-width: 350px;
  height: 50vh;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

/* Imagen */
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Zoom al hacer hover */
.galeria-item:hover img {
  transform: scale(1.1);
}

/* Capa de texto */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 15px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

/* Aparece el overlay al hacer hover */
.galeria-item:hover .overlay {
  transform: translateY(0);
}


.ver-mas{
  width: 100%;
  display: none;
}



.btn-principal.modo-mas {
  background: rgba(0, 0, 0, 0.1);
}

.btn-principal.modo-mas:hover {
  background: rgba(0, 0, 0, 0.251);
}

.btn-principal.modo-menos {
  background: #ff00150c; /* rojo más vivo */
}

.btn-principal.modo-menos:hover {
  background: #a5000e1a; /* rojo más vivo */
}






.reseñas {
  background: linear-gradient(135deg, #203a43, #2c5364);
  color: white;
  text-align: center;
  padding: 80px 5%;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

.reseñas h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.reseñas .subtitulo {
  color: #ddd;
  margin-bottom: 50px;
}

.slider-contenedor {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-width: 80vw;
  margin: 0 auto;
}

.slider {
  display: flex;
  transition: transform 0.6s ease;
}

.reseña {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  min-width: 100%;
  box-sizing: border-box;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.reseña-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}



.reseña-header img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #2c5364;
}

.reseña h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.estrellas {
  color: #ffcc00;
  font-size: 1rem;
}

.reseña-texto {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Botones del slider */
.slider-controles {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.slider-controles button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 15px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-controles button:hover {
  background: rgba(255, 255, 255, 0.3);
}





/* ---------- BOTÓN ---------- */
.publicar-btn {
  display: inline-block;
}

/* ---------- BOTÓN PRINCIPAL ---------- */
.publicar-btn {
  background: linear-gradient(135deg, #2c5364, #203a43, #0f2027);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.publicar-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.eliminar{
  margin-left: auto;
  padding-right: 15px;
}


.btn-eliminar{
  color: rgb(240, 115, 115);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.btn-eliminar:hover{
  color: rgb(207, 89, 89);
}

/* ---------- MODAL ---------- */
.modal-reseña {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-reseña.activo {
  display: flex;
}

.modal-contenido {
  background: linear-gradient(135deg, #2c5364, #203a43, #0f2027);
  color: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s ease;
  font-family: 'Montserrat', sans-serif;
}

.modal-contenido h3 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

/* ---------- CAMPOS ---------- */
.campo {
  margin-bottom: 1.2rem;
}

.campo label {
  display: block;
  font-weight: 600;
  color: #eee;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 5px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px #00c3ff;
}

/* ---------- BOTONES ---------- */
.acciones {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.btn-enviar{
  margin-top: 0px;
  background: #2c5364;
}

.btn-secundario:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cerrar-modal{
  font-size: 1rem;
}

.publicar-btn{
  background: #2c5364;
}



.cerrar-modal, .btn-enviar{
  width: 100%;
  padding: 12px 18px;
}

.tacho{
  color: rgb(240, 115, 115);
  background: none;
  border: none;
  font-size: 20px;
}


p.exito{
  color: #2ecc71 !important;
  font-weight: bold;
}


.check{
  margin-top: 10px;
  color: #2ecc71 !important;
}



/* ---------- ANIMACIONES ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}








.contacto {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacto-contenedor {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}

.contacto-texto {
  flex: 1;
  min-width: 280px;
}

.contacto-texto h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  border-left: 6px solid #00bcd4;
  padding-left: 15px;
}

.contacto-texto p {
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.contacto-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
}

.contacto-info i {
  color: #00bcd4;
}

/* --- Formulario --- */
.contacto-form {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.input-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  background: rgba(255, 255, 255, 0.2);
}

.contacto-form .btn-principal {
  background: #00bcd4;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contacto-form .btn-principal:hover {
  background: #028da3;
  transform: translateY(-2px);
}


iframe{
  border-radius: 10px;
  margin-top: 30px;
  border: none;
  width: 100%;
  height: 100px;
  transition: all 1s ease;
}

iframe:hover{
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}



.contacto-blur{
  opacity: 0.6;
  pointer-events: none; /* bloquea clicks */
  transition: opacity 0.3s ease;
}

.spinnerContacto{
  font-size: 30px;
  margin: 20px auto;
  margin-top: 50px;
  text-align: center;
}

.checkContacto{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0px auto;
  margin-top: 50px;
  text-align: center;
  color: #2ecc71;
  font-size: 20px;
  font-weight: bold;
}

.checkContacto p{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 20px;
}

.checkContacto i{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}


.errorContacto{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0px auto;
  text-align: center;
  color: rgb(207, 89, 89);
  font-size: 20px;
  font-weight: bold;
  animation: vertical-shaking 0.4s;
}

.errorContacto i{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.errorContacto p{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 20px;
}


 .disabled{
    display: none !important;
  }

@keyframes vertical-shaking {
 0% { transform: translateY(0) }
 25% { transform: translateY(5px) }
 50% { transform: translateY(-5px) }
 75% { transform: translateY(5px) }
 100% { transform: translateY(0) }
}


@media (max-width: 768px) {
    .hero {
    flex-direction: column; /* apilamos todo verticalmente */
  }

  .hero-texto{
    text-align: center;
  }

  /* el título se mantiene arriba */
  .hero-texto h1 {
    text-align: center;
    order: 1;
  }

  /* la imagen va al medio */
  .hero-img {
    order: 2;
  }

  /* el párrafo pasa a estar debajo de la imagen */
  .hero-texto p {
    text-align: center;
    order: 3;
    margin-top: 15px;
  }


  .quienes-contenedor {
    flex-direction: column-reverse;
    text-align: center;
  }

  .quienes-texto h2 {
    border-left: none;
    border-bottom: 4px solid #00bcd4;
    padding-left: 0;
    padding-bottom: 10px;
  }

  .valor {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .valor i {
    margin-bottom: 10px;
  }



  .info ul{
    width: 95vw;
  }

  .info ul li{
    padding-left: 40px;
    padding-right: 40px;
  }



  .galeria-item {
    flex: 1 1 250px;
    height: 40vh;
  }

  .ver-mas{
  display: inline-block;
  }

  .galeria-item {
    display: none;
  }

  .galeria-item.visible {
    display: flex;
  }






 .reseña {
    min-width: 100%;
  }

  .disabled{
    display: none !important;
  }

p.exito {
  margin-bottom: 10px;
  color: #2ecc71 !important;
  font-weight: bold;
}

.error {
  margin-top: 10px;
  font-weight: bold;
  color: #e74c3c !important;
  animation: vertical-shaking 0.4s;
}





  .contacto-contenedor {
    overflow: hidden;
    flex-direction: column;
  }

  .contacto-texto{
    width: 100%;
  }

  .contacto-texto h2 {
    border-left: none;
    border-bottom: 4px solid #00bcd4;
    padding-left: 0;
    padding-bottom: 10px;
  }

  .contacto-form{
    width: 100%;
  }

  .input-group {
    flex-direction: column;
    width: 100%;
  }

  .input-group input {
    width: 100%;
  }

}