/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Fixed Navigation Bar */
.navbar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #003366;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar .nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.navbar li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar li a:hover,
.navbar li a:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

.navbar li a.active {
  background-color: rgba(255, 255, 255, 0.3);
  color: #cceeff;
}

/* Skip Space for Fixed Navbar */
#quienes-somos,
#por-que-elegirnos,
#servicios,
#fallas-comunes,
#contacto,
#trabajos {
  scroll-margin-top: 80px;
}

/* Header */
header {
  background-color: #003366;
  color: white;
  padding: 40px 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #ffffff;
  padding-bottom: 10px;
}

/* Hero */
.hero {
  background: url('images/banner.jpg') no-repeat center center/cover;
  color: white;
  padding: 100px 0;
  text-align: center;
  background-color: #003366;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero .btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #28a745;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background-color: #218838;
}

/* Sections */
.about,
.why-choose,
.services,
.brands,
.contact-form,
.faq,
.common-issues,
.location {
  padding: 60px 0;
  background-color: #ffffff;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
}

.about h2,
.why-choose h2,
.services h2,
.brands h2,
.contact-form h2,
.faq h2,
.common-issues h2,
.location h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #003366;
  font-size: 2rem;
  border-bottom: 3px solid #003366;
  padding-bottom: 10px;
}

/* About and Why Choose */
.about p,
.why-choose ul {
  max-width: 700px;
  margin: auto;
}

.why-choose ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* Services */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
}

.service-item {
  background: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 280px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #ccc;
}

.service-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

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

/* Brands Carousel */
.brands {
  background-color: #eef6ff;
  padding: 40px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #ccc;
}

.carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 20px;
  white-space: nowrap;
}

.carousel-track {
  display: inline-flex;
  animation: scroll 30s linear infinite;
}

.carousel-track img {
  height: 80px;
  margin: 0 30px;
  transition: transform 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Common Issues */
.issue-item {
  background-color: #f5f5f5;
  padding: 20px;
  border-left: 5px solid #003366;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Contact Form */
.contact-form form {
  display: grid;
  gap: 15px;
  max-width: 600px;
  margin: auto;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  background-color: #fafafa;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background-color: #003366;
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #002244;
}

/* FAQ */
.faq h2 {
  text-align: center;
  margin-bottom: 20px;
}

.faq-item {
  background: #f5f5f5;
  padding: 20px;
  border-left: 5px solid #003366;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
}

.faq-item h3 {
  margin-bottom: 10px;
}

/* Location */
.location iframe {
  width: 100%;
  height: 300px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 20px;
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #ffffff;
}

footer a {
  color: #cceeff;
  margin: 0 10px;
  text-decoration: none;
}

/* WhatsApp Floating Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #25d366;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Iconos para Sección Por Qué Elegirnos */
.icon {
  display: inline-block;
  margin-bottom: 10px;
}

.tecnicos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
  margin-top: 30px;
}

.tecnicos-item {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 250px;
  text-align: center;
  border: 1px solid #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tecnicos-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tecnicos-item h3 {
  color: #003366;
  font-size: 1.1rem;
  margin: 15px 0 10px;
}

/* Works Section */
.works-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
}

.work-item {
  background: #f0f0f0;
  padding: 15px;
  border-radius: 8px;
  flex: 1 1 250px;
  text-align: center;
  border: 1px solid #ccc;
  transition: transform 0.3s ease;
}

.work-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.work-item:hover {
  transform: scale(1.03);
}

/* Menú Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: #000;
  border-radius: 2px;
}

.mobile-menu {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background-color: #003366;
  display: none;
  flex-direction: column;
  animation: slideDown 0.3s ease;
}

.mobile-menu.show {
  display: flex;
}

.mobile-menu li {
  width: 100%;
  text-align: center;
  padding: 10px 0;
}

.mobile-menu li a {
  color: white !important;
  font-size: 1rem !important;
  padding: 10px 0 !important;
  display: block !important;
  width: 100% !important;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .navbar .nav-list {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
  }
}