body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.6;
      color: #222;
      background: #f9f9f9;
    }

   /* ====== BARRA SUPERIOR ====== */
.topbar {
  background: #292c1b;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.topbar img {
  height: 40px;
  width: auto;
}

.topbar .logo {
  flex: 0; /* el logo ocupa solo lo que necesita */
}

.topbar .menu {
  flex: 1; /* ocupa el espacio restante */
  display: flex;
  justify-content: center; /* centra el ul */
  margin-left: -70px;
}

/* ====== MENÚ ====== */
.topbar .menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.topbar .menu ul li a {
  text-decoration: none;
  color: #b2966a;
  font-weight: 600;
  font-family: Arial, sans-serif;
  transition: color 0.3s, transform 0.2s;
}

.topbar .menu ul li a:hover {
  color: #a18961; 
  transform: translateY(-2px);
}

/* ====== HAMBURGUESA ====== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 25px;
  background-color: #b2966a;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .topbar .menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #292c1b;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    z-index: 10;
    margin-left: 0px;
  }

  .topbar .menu ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: center;
  }

  .topbar .menu.show {
    display: flex;
  }

  /* Animación de hamburguesa a X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
    
    header {
      background: url('../img/2411_Raven_0U8A1107_SH_1.webp') center/cover no-repeat;
      color: white;
      text-align: center;
      padding: 100px 20px;
      position: relative;
    }
    header::after {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
    }
    header h1, header p, header a {
      position: relative;
      z-index: 2;
    }
    header h1 {
      font-size: 3rem;
      margin: 0;
      color: #b2966a;
    }
    header p {
      font-size: 1.2rem;
      margin: 20px 0;
    }
    header a {
      background: #b2966a;
      color: #fff;
      padding: 12px 24px;
      text-decoration: none;
      border-radius: 6px;
      font-weight: bold;
    }
    section {
      padding: 60px 20px;
      max-width: 1100px;
      margin: auto;
    }
    .two-col {
      display: grid;
      flex-wrap: wrap;
      grid-template-columns: 57% 32%;
      align-items: center;
      gap: 30px;
    }
    .two-col img {
      flex: 1 1 40%;
      max-width: 141%;
      height: 100%;
      max-height: 400px;
      object-fit: cover;
      border-radius: 12px;
    }
    .two-col div {
      flex: 1 1 55%;
    }
    #about {
      display: grid;
      grid-template-columns: 57% 42%;
      gap: 54px;
      align-items: stretch;
    }
    #about img {
      width: 100%;
      height: 365px;
      object-fit: cover;
      border-radius: 12px;
    }
    #about div {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    
/* Adaptación a móvil */
@media (max-width: 768px) {
  #about {
    grid-template-columns: 1fr; /* Una columna */
    gap: 20px; /* Reduce el espacio */
  }

  #about img {
    height: auto; /* Ajusta altura automáticamente */
  }

  #about div {
    text-align: center; /* Centra el texto */
    align-items: center; /* Centra verticalmente los elementos del div */
  }
}

#experience {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  padding: 0 20px; /* evita que toque los bordes */
}

#experience h2 {
  margin-bottom: 15px;
}

#experience p {
  /* Mejora legibilidad */
  white-space: normal; /* ignora los saltos de línea forzados */
  line-height: 1.2;    /* interlineado más natural */
  margin: 0 auto;
  max-width: 600px;    /* ancho máximo para que no se vea muy largo en escritorio */
}

#experience img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 20px;
}

/* Adaptación a móvil */
@media (max-width: 768px) {
  #experience p {
    font-size: 16px;     /* ajusta tamaño de texto en móvil */
    line-height: 1.2;    /* un poco más espacioso */
    margin: 25px;
  }

  #experience img {
    height: auto;        /* altura flexible en móvil */
  }
}

    h2 {
      color: #494124;
      margin-bottom: 20px;
    }
    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }
    .card {
      background: #fff;
      border-radius: 10px;
      padding: 20px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.08);
      border-left: 6px solid #b2966a;
    }
    .brands, .certs {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 20px;
      align-items: center;
      text-align: center;
    }
    .brands img, .certs img {
      max-width: 100px;
      margin: auto;
      filter: grayscale(100%);
      opacity: 0.8;
      transition: 0.3s;
    }
    .brands img:hover, .certs img:hover {
      filter: none;
      opacity: 1;
    }

footer {
  background: #292c1b;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column; /* por defecto en móvil */
  align-items: center;
  gap: 20px;
  text-align: center;
}

/* Logo */
.footer-logo img {
  height: 50px;
  width: auto;
}

/* Menú */
.footer-menu ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-menu ul li a {
  color: #b2966a;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.footer-menu ul li a:hover {
  color: #a18961;
}

/* Contacto */
.footer-contact {
  text-align: center;
}

.footer-contact p {
  margin: 5px 0;
}

.footer-contact a {
  color: #b2966a;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #a18961;
}

/* Botón */
.footer-contact .contact-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #b2966a;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
  margin-top: 15px;
}

.footer-contact .contact-button:hover {
  background-color: #a18961;
  color: #fff;
}
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;              
    justify-content: space-between;   
    align-items: flex-start;
    text-align: left;
  }

  .footer-logo,
  .footer-contact,
  .footer-menu {
    flex: 1; /* 👈 cada columna ocupa el mismo ancho */
  }

  .footer-menu {
    display: flex;
    justify-content: center; /* 👈 centra el menú dentro de su columna */
  }

  .footer-menu ul {
    flex-wrap: nowrap;                
    justify-content: center; /* 👈 asegura que la lista quede centrada */
  }

  .footer-contact {
    text-align: right;
  }
}


  /* Responsive */
  @media (max-width: 768px) {
    .footer-menu ul {
      flex-direction: column;
      gap: 15px;
    }
  }
    /* ====== Carruseles ====== */
    .carousel-container, .carousel-container-2 {
      overflow: hidden;
      width: 100%;
      background-color: #f9f9f9;
      padding: 20px 0;
      box-sizing: border-box;
    }

    #carousel-track, #carousel-track-2 {
      display: flex;
      gap: 40px;
      white-space: nowrap;
      will-change: transform;
      width: max-content;
    }

    #carousel-track img, #carousel-track-2 img {
      height: 60px;
      object-fit: contain;
      flex-shrink: 0;
      filter: grayscale(100%);
      opacity: 0.8;
      transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
      cursor: pointer;
    }

    #carousel-track img:hover, #carousel-track-2 img:hover {
      transform: scale(1.05);
      filter: grayscale(0%);
      opacity: 1;
    }

    /* ====== Ajustes responsive ====== */
    @media (max-width: 768px) {
      .carousel-container, .carousel-container-2 {
        padding: 12px 0;
      }
      #carousel-track, #carousel-track-2 {
        gap: 20px;
      }
      #carousel-track img, #carousel-track-2 img {
        height: auto;
        width: 80px;
      }
    }

    /* ====== Centrado específico para títulos ====== */
    .center-title h2 {
      text-align: center;
    }

#contact {
    text-align: center;
  }

  #contact h2, #contact p {
    margin: 0 auto 20px auto;
  }

  /* Grid para imagen y formulario */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch; /* fuerza que los elementos tengan la misma altura */
    max-width: 1200px;
    margin: auto;
  }

  .contact-image {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 800px; /* aumenta la altura de la imagen */
  }

  .contact-image img {
    width: 100%;
    height: 83%;
    border-radius: 12px;
    object-fit: cover; /* asegura que cubra el contenedor */
  }

  .form-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    max-width: 100%;
    min-height: 600px;
    padding: 10px;
    box-sizing: border-box;
  }

  /* Ajuste del iframe */
  .keap-custom-form iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 600px; /* asegura que no se corte */
    border: none;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    .contact-image {
      max-height: 500px;
    }
    .contact-image img {
      height: 100%;
    }
    .form-container {
      min-height: auto;
      padding: 10px;
    }
    .keap-custom-form iframe {
      min-height: 500px;
    }
  }