/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Saira Semi Condensed', sans-serif; /* Texto */
  font-weight: 400;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
  padding-top: 68px; /* ajusta según la altura del navbar */
}

/* -------------------------
   TIPOGRAFÍAS RENTEK
   ------------------------- */

/* Títulos principales */
h1 {
  font-family: 'Changa', sans-serif;
  font-weight: 700;
  font-size: 2.5rem; /* ~40px */
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

h2 {
  font-family: 'Changa', sans-serif;
  font-weight: 600;
  font-size: 2rem; /* ~32px */
  line-height: 1.3;
  margin-bottom: 15px;
  color: #1a1a1a;
}

h3 {
  font-family: 'Changa', sans-serif;
  font-weight: 600;
  font-size: 1.5rem; /* ~24px */
  margin-bottom: 12px;
  color: #1a1a1a;
}

h4, h5, h6 {
  font-family: 'Changa', sans-serif;
  font-weight: 500;
  margin-bottom: 10px;
  color: #1a1a1a;
}

/* Texto general */
p, li {
  font-family: 'Saira Semi Condensed', sans-serif;
  font-weight: 400;
  font-size: 1rem; /* ~16px */
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

/* Enlaces */
a {
  font-family: 'Saira Semi Condensed', sans-serif;
  font-weight: 500;
  color: #f0ab07; /* Amarillo Rentek */
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #000;
}

/* Botones */
.btn {
  font-family: 'Saira Semi Condensed', sans-serif;
  font-weight: 600;
  background: #f0ab07;
  color: #000;
  padding: 12px 24px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}
.btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

/* Formularios */
input, textarea, button {
  font-family: 'Saira Semi Condensed', sans-serif;
  font-size: 1rem;
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* LOGO Navbar */
.logo img {
  max-width: 180px; /* ajusta el tamaño según tu diseño */
  height: auto;
  display: block;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1a1a1a; /* o el color que uses */
  color: #fff;
  padding: 15px 0;
  z-index: 1000; /* para que quede por encima del contenido */
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: bold;
  font-size: 1.3rem;
  color: #f0ab07;
  font-family: 'Changa One', sans-serif;
}
.menu {
  display: flex;
  gap: 15px;
}
.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.menu a:hover {
  color: #f0ab07;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #f0ab07;
}

/* Hero */
.hero {
  background: url('../imagenes/rentek_hero_home.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-color: #1a1a1a;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(26,26,26,0.6);
}
.hero-text {
  position: relative;
  max-width: 700px;
  z-index: 1;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #f0ab07;
}
.hero p {
  margin-bottom: 20px;
  color: #fff;
}
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #f0ab07;
  color: #1a1a1a;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}
.btn:hover {
  background: #d99905;
}

/* Sections */
.section {
  padding: 60px 0;
}
.section h1 i {
  color: #f0ab07;        /* amarillo Rentek */
  font-size: 3rem;        /* tamaño grande del icono */
  display: block;         /* para que se comporte como bloque y se centre */
  text-align: center;     /* centra horizontalmente */
  margin-bottom: 10px;    /* espacio entre el icono y el título */
}
.section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #1a1a1a;
  font-size: 1.8rem;
}
.section h2 i {
  color: #f0ab07;       /* amarillo Rentek */
  margin-right: 10px;   /* separación del texto */
  font-size: 1.5em;     /* tamaño proporcional al título */
  vertical-align: middle;
}
.bg-light {
  background: #f7f7f7;
}

/* Catalog grid */
/* Grid de catálogo */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas en desktop */
  gap: 20px;
  margin-top: 20px;
}

/* Alineamos la última fila (cards 4 y 5) a los extremos */
.grid .card:nth-child(4) {
  grid-column: 1; /* izquierda */
}
.grid .card:nth-child(5) {
  grid-column: 3; /* derecha */
}
/* Cards estilo visual */
.card {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.card p {
  color: #444;
}
/* HEADER con imagen */
.card-header {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
}
/* franja superior amarilla */
.card-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: #f0ab07;
  z-index: 2;
}

/* título */
.card-header h3 {
  position: relative;
  z-index: 3;
  margin: 0;
  font-size: 1.4rem;
  color: #f0ab07;   /* amarillo RENTEK */
}
/* overlay oscuro */
.card-header::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
/* BODY: aquí regresa el buen padding */
.card-body {
  padding: 20px;       /* regresamos el padding bonito */
  text-align: center;  /* centramos el texto */
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

/* Imagen de fondo distinta por card */
.img1 { background: url('../imagenes/card-transport.jpg') center/cover no-repeat; }
.img2 { background: url('../imagenes/card-computo.jpg') center/cover no-repeat; }
.img3 { background: url('../imagenes/card-lifting.jpg') center/cover no-repeat; }
.img4 { background: url('../imagenes/card-construccion.jpg') center/cover no-repeat; }
.img5 { background: url('../imagenes/card-industrial.jpg') center/cover no-repeat; }


/* Responsive */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
  }
  .grid .card:nth-child(4),
  .grid .card:nth-child(5) {
    grid-column: auto; /* resetear el forzado */
  }
}


@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr; /* 1 columna en móvil */
  }
  .grid .card:nth-child(4),
  .grid .card:nth-child(5) {
    grid-column: auto; /* resetear el forzado */
  }
}

/* Seccion Ubicacion */
#ubicacion {
  background: #f0ab07;  /* amarillo Rentek */
  padding: 40px 0;      /* espacio arriba y abajo */
}

#ubicacion .map {
  border: 3px solid #000;   /* borde negro */
  border-radius: 8px;       /* opcional, esquinas suaves */
  overflow: hidden;         /* para que el borde se vea limpio */
  max-width: 100%;          /* ocupa el ancho del contenedor */
}

#ubicacion .map iframe {
  width: 100%;
  height: 350px;            /* ajusta altura a lo apaisado */
  border: none;             /* quitamos border interno del iframe */
  display: block;           /* evita espacio extra */
}
#ubicacion h1 i {
  color: #1a1a1a;        /* negro para resaltar sobre el fondo amarillo */
  font-size: 3rem;        /* igual tamaño grande */
  display: block;
  text-align: center;
  margin-bottom: 10px;
}


/* Contacto en 3 columnas */
.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}
.contact-form button {
  border: none;
  cursor: pointer;
  background: #f0ab07;
  color: #1a1a1a;
  font-weight: bold;
  padding: 12px;
  border-radius: 5px;
  transition: 0.3s;
}
.contact-form button:hover {
  background: #d99905;
}

.contacto-col h2 {
  color: #1a1a1a;
  margin-bottom: 15px;
}

.contacto-col p {
  color: #333;
  margin-bottom: 15px;
}

.contacto-img img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  display: block;
  margin: auto;
}

/* Responsive para móvil */
@media(max-width: 992px) {
  .contacto-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contacto-img img {
    max-width: 250px;
    margin: 20px auto;
  }
}

.map {
  width: 100%;
  max-width: 1200px; /* o el ancho que tenga tu container */
  margin: 0 auto; /* centrado */
}

.map iframe {
  width: 100%;       /* ocupa todo el ancho disponible */
  height: 350px;     /* más apaisado, menos alto */
  border: 3px solid #000;  /* borde negro de 3px */
  border-radius: 8px; /* opcional, esquinas redondeadas */
}

/* -------------------------
   CATÁLOGO CON TABS
   ------------------------- */
   .tabs {
     display: flex;
     justify-content: center;
     gap: 20px;
     margin-bottom: 30px;
     list-style: none;
     padding: 0;
   }

   .tab {
     cursor: pointer;
     padding: 10px 20px;
     background: #eee;
     border-radius: 8px;
     transition: 0.3s;
   }

   .tab.active {
     background: #f7b500; /* amarillo RENTEK */
     color: #fff;
     font-weight: bold;
   }

   .tab-content {
     display: none;
   }

   .tab-content.active {
     display: block;
   }

   .grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
     gap: 20px;
   }

   .card {
     background: #fff;
     border-radius: 12px;
     padding: 20px;
     text-align: center;
     box-shadow: 0 4px 10px rgba(0,0,0,0.1);
   }

   .card img {
     max-width: 100%;
     border-radius: 8px;
     margin-bottom: 15px;
   }

   /* -------------------------
      CATÁLOGO CON PESTAÑAS (aislado)
      ------------------------- */
   .catalogo-tabs .tabs {
     display: flex;
     justify-content: center;
     gap: 20px;
     margin-bottom: 30px;
     list-style: none;
     padding: 0;
   }

   .catalogo-tabs .tab {
     cursor: pointer;
     padding: 10px 20px;
     background: #eee;
     border-radius: 8px;
     transition: 0.3s;
   }

   .catalogo-tabs .tab.active {
     background: #f0ab07; /* Amarillo Rentek */
     color: #fff;
     font-weight: bold;
   }

   .catalogo-tabs .tab-content {
     display: none;
   }

   .catalogo-tabs .tab-content.active {
     display: block;
   }

   .catalogo-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
     gap: 20px;
   }

   .catalogo-card {
     background: #fff;
     border-radius: 12px;
     padding: 20px;
     text-align: center;
     box-shadow: 0 4px 10px rgba(0,0,0,0.1);
     transition: transform 0.2s ease;
   }

   .catalogo-card:hover {
     transform: translateY(-5px);
   }

   .catalogo-card img {
     max-width: 100%;
     border-radius: 8px;
     margin-bottom: 15px;
   }

   .catalogo-card h3 {
     font-size: 1.2rem;
     margin-bottom: 10px;
     color: #1a1a1a;
   }

   .catalogo-card p {
     font-size: 0.95rem;
     margin-bottom: 15px;
     color: #444;
   }

   /* Responsive Tabs con scroll horizontal */
   @media (max-width: 768px) {
     .tabs {
       display: flex;
       overflow-x: auto;           /* permite scroll horizontal */
       white-space: nowrap;        /* evita salto de línea */
       justify-content: flex-start !important; /* fuerza a la izquierda */
       padding: 0;
       margin: 0;
       list-style: none;
       gap: 10px;
       -webkit-overflow-scrolling: touch;
       scroll-snap-type: x mandatory; /* 👈 opcional: hace que "encaje" en pestañas */
     }

     .tabs .tab {
       flex: 0 0 auto;
       min-width: 150px;
       padding: 10px;
       background: #eee;
       border-radius: 6px;
       text-align: center;
       scroll-snap-align: start; /* 👈 opcional: alinea pestañas en el scroll */
     }

     .tabs .tab.active {
       background: #f7b500;
       color: #fff;
       font-weight: bold;
     }
   }


/* Footer */
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: 'Saira Semi Condensed', sans-serif;
}

/* Contenedor de columnas */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

/* Columnas */
.footer-column {
  flex: 1 1 250px;
}

/* Títulos de columna */
.footer-column h4 {
  color: #f0ab07;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Listas de links */
.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #f0ab07;
}

/* Texto de contacto */
.footer-column p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

/* Redes sociales */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  font-size: 24px;
  color: #f0ab07;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #fff;
  transform: scale(1.2);
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  color: #f0ab07 !important; /* Forzamos el amarillo */
  border-top: 1px solid #f0ab07;
  padding-top: 1rem;
  font-size: 0.8rem;
  font-weight: 300;
}
.footer-bottom p {
  color: #f0ab07 !important;
  font-weight: 600; /* opcional para que resalte */
}


/* Responsive */
@media(max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
  .social-icons {
    justify-content: flex-start; /* o center si quieres centrados en móvil */
  }
}


/* Por defecto ocultamos el botón hamburguesa en escritorio */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* Responsive */
@media(max-width: 768px) {
  .menu {
    flex-direction: column;
    background: #1a1a1a;
    position: fixed;
    top: 0;
    right: -250px; /* fuera de pantalla */
    width: 250px;
    height: 100vh;
    padding: 60px 20px;
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }
  .menu a {
    margin: 15px 0;
    font-size: 1.1rem;
  }
  .menu.active {
    right: 0;
  }
  .hamburger {
    display: block; /* aquí aparece el ícono en móvil */
    z-index: 1000;
    position: relative;
  }
}
