/* Fuente principal */
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  background: #f0f0f0;
  color: #222;
  scroll-behavior: smooth;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 2rem;
  position: fixed;
  width: 97%;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 600;
  font-size: 1.5rem;
  color: #0056b3;
  letter-spacing: 2px;
}
.header img {
  width: 100px;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: #0056b3;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #0056b3;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0056b3 60%, #f0f0f0 100%);
  color: #fff;
  text-align: center;
  padding: 8rem 2rem 4rem 2rem;
  margin-top: 64px;
  animation: fadeIn 1.2s;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botones */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: inline-block;
}

.btn-primary {
  background: #0056b3;
  color: #fff;
}

.btn-primary:hover {
  background: #003d80;
}

.btn-secondary {
  background: #f0f0f0;
  color: #0056b3;
  border: 1px solid #0056b3;
}

.btn-secondary:hover {
  background: #e0e0e0;
  color: #003d80;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover, .btn-whatsapp-large:hover {
  background: #128c7e;
}
.modal-precio-o {
  display: block;
  text-align: center;
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #555;
}
.btn-whatsapp-large {
  background: #25d366;
  color: #fff;
  font-size: 1.2rem;
  padding: 1rem 3rem;
  border-radius: 40px;
  margin-top: 1rem;
  display: inline-block;
}

.btn-detalle {
  background: #fff;
  color: #0056b3;
  border: 1px solid #0056b3;
  margin-top: 0.5rem;
  width: 150px;
}

.btn-detalle:hover {
  background: #e0e0e0;
  color: #003d80;
}

/* Servicios */
.servicios {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.servicios h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0056b3;
}

.servicios-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #f0f0f0;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,86,179,0.08);
  padding: 2rem 1.5rem;
  width: 300px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1s;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,86,179,0.15);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card-precio {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0056b3;
  margin: 1rem 0;
}

/* Sobre nosotros */
.sobre-nosotros {
  background: #f0f0f0;
  padding: 3rem 2rem;
  text-align: center;
  color: #222;
}

.sobre-nosotros h2 {
  color: #0056b3;
  margin-bottom: 1rem;
}

/* Testimonios */
.testimonios {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.testimonios h2 {
  color: #0056b3;
  margin-bottom: 2rem;
}

.testimonio-container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 120px;
  position: relative;
}

.testimonio {
  background: #f0f0f0;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,86,179,0.08);
  padding: 2rem;
  font-size: 1.1rem;
  color: #222;
  animation: fadeIn 0.8s;
}

.testimonio-nombre {
  font-weight: 600;
  color: #0056b3;
  margin-top: 1rem;
}

/* CTA */
.cta {
  background: #0056b3;
  color: #fff;
  text-align: center;
  padding: 3rem 2rem;
  margin: 0;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Formulario de contacto */
.contacto {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.contacto h2 {
  color: #0056b3;
  margin-bottom: 2rem;
}

form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #222;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
  background: #f9f9f9;
  transition: border 0.2s;
}

input:focus, textarea:focus {
  border-color: #0056b3;
  outline: none;
}

#form-msg {
  margin-top: 1rem;
  font-size: 1rem;
  color: #0056b3;
}

/* Footer */
.footer {
  background: #f0f0f0;
  color: #222;
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  font-size: 1rem;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #0056b3;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #003d80;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Modal de detalles de servicio */
.modal-detalle {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
}

.modal-detalle.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 350px;
  box-shadow: 0 8px 32px rgba(0,86,179,0.18);
  position: relative;
  text-align: center;
  animation: fadeIn 0.4s;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #0056b3;
  cursor: pointer;
  font-weight: bold;
}

/* Estilos para la lista de detalles del servicio */
#modal-descripcion {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.2rem 0;
  text-align: left;
}

#modal-descripcion li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  color: #222;
  line-height: 1.5;
  background: none;
}

#modal-descripcion li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #25d366;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: bold;
}

#testimonio-link {
  color: #0056b3;
  text-decoration: underline;
}

/* Portafolio/Clientes */
.portafolio {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
  min-height: 70vh;
}

.portafolio h2 {
  color: #0056b3;
  margin-bottom: 2rem;
  font-size: 2rem;
  letter-spacing: 1px;
}

.portafolio-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.portafolio-card {
  background: #f9f9f9;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,86,179,0.08);
  padding: 1.5rem 1rem;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e0e0e0;
}

.portafolio-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,86,179,0.15);
}

.portafolio-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: #fff;
  border: 2px solid #e0e0e0;
}

/* Imagen placeholder para portafolio */
.portafolio-img.placeholder {
  background: #e0e0e0 url('https://avatar.iran.liara.run/public/15') center center no-repeat;
  background-size: cover;
  border: 2px dashed #bbb;
}

.portafolio-info h3 {
  margin: 0.5rem 0 0.2rem 0;
  color: #0056b3;
  font-size: 1.15rem;
  font-weight: 600;
}

.portafolio-info p {
  margin: 0 0 0.7rem 0;
  color: #444;
  font-size: 1rem;
}

.portafolio-info a.btn {
  margin-top: 0.5rem;
  width: auto;
  min-width: 120px;
  max-width: 90%;
  font-size: 0.95rem;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

/* Responsive para portafolio */
@media (max-width: 900px) {
  .portafolio-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .portafolio-card {
    width: 90%;
    max-width: 350px;
  }
}

@media (max-width: 600px) {
  .portafolio {
    padding: 2rem 0.5rem;
  }
  .portafolio-card {
    padding: 1rem 0.5rem;
  }
  .portafolio-img {
    width: 60px;
    height: 60px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .servicios-cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
    margin-bottom: 2rem;
  }
  input, textarea {
    width: 95%;
  }
}

@media (max-width: 700px) {
  .header {
    padding: 1rem;
  }
  .hero {
    padding: 6rem 1rem 2rem 1rem;
  }
  .servicios, .testimonios, .contacto, .cta, .sobre-nosotros {
    padding: 2rem 1rem;
  }
}

@media (max-width: 600px) {
  .nav ul {
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 64px;
    right: 0;
    width: 180px;
    box-shadow: 0 4px 16px rgba(0,86,179,0.08);
    display: none;
    padding: 1rem 0;
  }
  .nav ul.active {
    display: flex;
    padding-inline: 5px;
  }
  .nav-toggle {
    display: block;
  }
  
}