/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
  padding: 0 20px;
}

/* Navigation Bar */
#main-nav {
  background: #fff;
  color: #333;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

#main-nav .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

#main-nav .logo svg {
  margin-right: 10px;
}

#main-nav .logo span {
  font-size: 1.5em;
  font-weight: bold;
}

#main-nav ul {
  padding: 0;
  list-style: none;
  display: flex;
}

#main-nav ul li a {
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
}

#main-nav ul li a:hover {
  background-color: #555;
  color: #fff;
}

#main-nav ul li a .nav-icon {
  margin-right: 5px;
}

#main-nav .btn-llamar {
  background-color: #e67e22;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#main-nav .btn-llamar:hover {
  background-color: #d35400;
}

/* Hero Section */
.hero {
  background: url('Cerrajerotrabajando.jpg.jpeg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent black overlay */
  z-index: 1;
  /* Place the overlay behind the content */
}

.hero-content {
  position: relative;
  /* Ensure content is above the overlay */
  z-index: 2;
  /* Ensure content is above the overlay */
  padding: 20px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.hero-buttons a {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #555;
}

.btn-info {
  background-color: #3498db;
  color: #fff;
}

.btn-info:hover {
  background-color: #2980b9;
}

.btn-call {
  background-color: #2ecc71;
  color: #fff;
}

.btn-call:hover {
  background-color: #27ae60;
}

/* Info Section */
.info {
  padding: 40px 0;
  background-color: #fff;
}

.info .container {
  text-align: center;
}

.info h2 {
  margin-bottom: 20px;
}

.info-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.info-cards .card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  margin: 20px;
  width: 300px;
  text-align: left;
  border-radius: 5px;
}

.info-cards .card h3 {
  margin-bottom: 10px;
}

/* Services Section */
.services {
  background-color: #f4f4f4;
  padding: 40px 0;
}

.services .container {
  text-align: center;
}

.services h2 {
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.service-list .service-item {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin: 20px;
  width: 300px;
  text-align: center;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.service-list .service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-list .service-item h3 {
  margin: 15px 0;
}

.service-icon {
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.1);
}

/* Contact/CTA Section */
.contact {
  background-color: #f4f4f4;
  padding: 60px 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-content h2 {
  color: #333;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: #e67e22;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #d35400;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
}

.phone-icon, .whatsapp-icon {
  margin-right: 10px;
  font-size: 1.2em;
}

.wa-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* Testimonials Section */
.testimonials {
  background-color: #f4f4f4;
  padding: 40px 0;
}

.testimonials .container {
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 20px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 5px;
  text-align: left;
}

.testimonial-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.testimonial-header .stars {
  color: #f39c12;
  margin-bottom: 5px;
}

.testimonial-header h3 {
  margin-bottom: 0;
}

.testimonial-header .date {
  font-size: 0.8em;
  color: #777;
}

/* FAQ Section */
.faq {
  background-color: #fff;
  padding: 40px 0;
}

.faq .container {
  text-align: center;
}

.faq h2 {
  margin-bottom: 20px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  width: 80%;
  margin: auto;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  padding: 15px;
  text-align: left;
  border-radius: 5px;
  width: 100%;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1em;
}

.faq-question .icon {
  font-size: 1.2em;
}

.faq-answer {
  padding: 15px;
  border: 1px solid #ddd;
  border-top: none;
  text-align: left;
  border-radius: 0 0 5px 5px;
  display: none;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0 0 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

.contact-info,
.footer-links {
  margin-bottom: 20px;
}

.subfooter {
  background-color: #222;
  padding: 10px 0;
  font-size: 0.8em;
  border-top: 1px solid #444;
}

.subfooter a {
  color: #fff;
  text-decoration: none;
  padding: 0 10px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.subfooter a:hover {
  opacity: 1;
}

/* Responsive updates for footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .subfooter {
    padding: 10px 20px;
  }
  
  .subfooter a {
    display: block;
    padding: 5px 0;
  }
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
  fill: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  #main-nav ul {
    flex-direction: column;
    text-align: center;
  }

  #main-nav ul li a {
    padding: 10px;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1em;
  }

  .info-cards,
  .service-list {
    flex-direction: column;
    align-items: center;
  }

  .info-cards .card,
  .service-list .service-item {
    width: 80%;
    margin: 10px;
  }

  .cta-content {
    padding: 20px;
  }

  .cta-content h2 {
    font-size: 2em;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary, .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 22px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}