/* ========================= GLOBAL ========================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  background: #f9f9f9;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.section {
  padding: 60px 20px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: bold;
}

/* ========================= NAVBAR ========================= */
.navbar {
  background: #ffffff;
  color: rgb(0, 0, 0);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo img {
  max-width: 150px;  /* Ajusta el tamaño máximo del logo */
  height: auto;       /* Mantiene proporción */
  display: block;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu a {
  color: #30347F;
  text-decoration: none;
  font-weight: bold;
}

.menu a:hover {
  color: #1e90ff;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========================= HERO ========================= */
.hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("Imagenes/CCAA.jpg") center/cover no-repeat;
  filter: blur(1px) brightness(0.6);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 2.5rem;
}

.hero p {
  margin: 20px 0;
}

.btn {
  background: #1e90ff;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
}

.btn:hover {
  background: #005bbb;
}

/* ========================= SERVICIOS ========================= */
.grid {
  display: grid;
  gap: 30px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* Imagen Mototrbo proporcional */
.img-mototrbo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 40px;
}

/* ========================= FEATURES / FUNCIONALIDADES ========================= */
.features-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.features-col {
  flex: 1 1 45%;
}

.features-img img {
  max-width: 100%;  /* Ajuste proporcional */
  height: auto;
  border-radius: 10px;
}

.features-text ul {
  list-style: none;
  padding-left: 0;
}

.features-text ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: bold;
}

.features-text ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #28a745;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .features-row {
    flex-direction: column;
  }
  .features-col {
    flex: 1 1 100%;
  }
}

/* ========================= ABOUT / NOSOTROS ========================= */
.bg-light {
  background: #f0f0f0;
}

.flex {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flex .image {
  max-width: 100%;
}

.flex .content {
  flex: 1;
}

@media (min-width: 768px) {
  .flex {
    flex-direction: row;
    align-items: center;
  }
}

.section .image {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ========================= CLIENTES / CARRUSEL ========================= */
.carousel {
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  animation: scroll 20s linear infinite;
}

.carousel-track img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 30px;
  flex-shrink: 0;
  background: transparent;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================= CONTACTO ========================= */
.bg-primary { background: #1e90ff; }
.text-white { color: white; }

.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.form input, .form textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
}

.btn-dark {
  background: #111;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-dark:hover {
  background: #333;
}

/* ========================= FOOTER ========================= */
.footer-section {
  width: 100%;
  background-color: #111;
  color: #bbb;
  padding: 40px 0;
  font-family: Arial, sans-serif;
}

.footer-section a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #1e90ff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-column {
  flex: 1 1 22%;
  min-width: 200px;
}

.footer-logo img {
  max-width: 100%; /* Ajuste proporcional */
  height: auto;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-info h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-info ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-info-cont {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-info-cont img {
  width: 30px;
  height: auto;
}

.footer-info-cont p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-section .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-section .social-icons a {
  color: #bbb;
  font-size: 20px;
}

.footer-section .social-icons a:hover {
  color: #1e90ff;
}

@media(max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-column {
    flex: 1 1 100%;
  }
  .footer-info-cont {
    justify-content: center;
  }
  .social-icons {
    justify-content: center;
  }
}

/* ========================= TOP BAR ========================= */
.top-bar {
  background-color: #1f2937;
  color: rgb(100, 100, 100);
  font-family: 'Arial', sans-serif;
  padding: 0.5rem 1rem;
}

.top-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar ul.contact-info {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-bar ul.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.top-bar ul.contact-info li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar ul.contact-info li a:hover {
  color: #3b82f6;
}

.top-bar .social-icons {
  display: flex;
  gap: 1rem;
}

.top-bar .social-icons a {
  color: #ffffff;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.top-bar .social-icons a:hover {
  color: #3b82f6;
}

@media(max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .top-bar ul.contact-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .top-bar .social-icons {
    justify-content: center;
  }
}

/* ========================= MENÚ DESPLEGABLE ========================= */
.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  padding: 12px 16px;
  text-decoration: none;
  color: #30347F;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #1e90ff;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* ========================= MENÚ MÓVIL (HAMBURGUESA) ========================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  z-index: 1001;
}

.menu-toggle:hover {
  color: #1e90ff;
}

@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: #ffffff;
    padding: 20px;
    position: absolute;
    top: 100%;
    right: 0;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1500;
  }

  .menu.show {
    display: flex;
  }

  .menu a {
    padding: 12px 0;
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .dropdown-content {
    position: relative;
  }
}
