/* ========================================================= */
/* RESET BÁSICO */
/* ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  color: #222;
  line-height: 1.4;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================================= */
/* CONTENEDOR */
/* ========================================================= */

.container {
  width: 90%;
  max-width: 1250px;
  margin: auto;
}

/* ========================================================= */
/* TOPBAR */
/* ========================================================= */

.topbar {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  padding: 6px 0;
  width: 100%;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  gap: 16px;
  color: #fff;
  font-size: 0.85rem;
}

.topbar-right {
  display: flex;
  gap: 12px;
}

.btn-top {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.btn-top.light {
  background: rgba(255, 255, 255, 0.35);
  color: white;
}

.btn-top.primary {
  background: #7FB800;
  color: white;
}

/* ========================================================= */
/* LÍNEA VERDE */
/* ========================================================= */

.green-line {
  width: 100%;
  display: flex;
  justify-content: center;
  background: transparent;
}

.green-line-inner {
  width: 90%;
  max-width: 1250px;
  height: 3px;
  background: #7FB800;
}

/* ========================================================= */
/* NAV */
/* ========================================================= */

.nav-area {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  padding: 12px 0;
  position: relative;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  color: #fff;
  font-size: 0.75rem;
}

.brand-text strong {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ========================================================= */
/* HERO */
/* ========================================================= */

.header-hero {
  background-image: url("../img/header_camion.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 480px;
  position: relative;
}

.hero-content {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: left;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: bold;
}

.hero-content p {
  margin-top: 8px;
  font-size: 1.1rem;
}

.btn-hero {
  display: inline-block;
  margin-top: 14px;
  background: #7FB800;
  padding: 10px 20px;
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Versión más pequeña para trabaja.html */
.hero-small {
  height: 250px;
}

/* ========================================================= */
/* SECCIONES */
/* ========================================================= */

.section {
  padding: 60px 0;
}

.section.alt {
  background: #f4f4f4;
}

/* ========================================================= */
/* TRABAJA CON NOSOTROS */
/* ========================================================= */

.trabaja-section {
  padding: 60px 0 80px;
  background: #f3f4f6;
}

.trabaja-card {
  background: #fff;
  border-radius: 6px;
  padding: 30px 32px 26px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.10);
  position: relative;
}

/* X de cierre */
.trabaja-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
}

.trabaja-close:hover {
  color: #111827;
}

.trabaja-header h2 {
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.trabaja-header p {
  color: #6b7280;
  margin-bottom: 22px;
}

/* Tabs */
.trabaja-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 22px;
}

.trabaja-tab {
  background: transparent;
  border: none;
  padding: 10px 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: #6b7280;
  position: relative;
}

.trabaja-tab.active {
  color: #7FB800;
}

.trabaja-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: #7FB800;
}

/* Formulario */
.trabaja-form {
  margin-top: 8px;
}

.trabaja-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group input {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.form-group input:focus {
  border-color: #7FB800;
  outline: none;
}

/* Paneles */
.perfil-panel {
  display: none;
  margin-bottom: 22px;
}

.perfil-panel.active {
  display: block;
}

.perfil-titulo {
  font-size: 1.1rem;
  margin: 6px 0 12px;
  text-transform: uppercase;
}

/* Radios y checks */
.question-label {
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group.radios label {
  margin-right: 16px;
}

/* Nota */
.trabaja-note {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Botón enviar */
.trabaja-actions {
  margin-top: 12px;
}

/* ========================================================= */
/* MEDIA QUERIES */
/* ========================================================= */

@media (max-width: 768px) {
  .trabaja-grid {
    grid-template-columns: 1fr;
  }

  .trabaja-tabs {
    gap: 16px;
    overflow-x: auto;
  }
}

/* ========================================================= */
/* SECCIÓN SERVICIOS */
/* ========================================================= */

.section-servicios {
  background: #f9fafb;
}

.section-servicios h2 {
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-subtitle {
  color: #6b7280;
  max-width: 720px;
  margin-bottom: 26px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.servicio-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}

.servicio-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.servicio-card p {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 8px;
}

.servicio-card ul {
  list-style: disc;
  margin-left: 18px;
  font-size: 0.9rem;
  color: #374151;
}

/* Responsive: 2 columnas en tablet, 1 en móvil */
@media (max-width: 992px) {
  .servicios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================= */
/*   SECCIÓN NUESTROS EQUIPOS - GRID ESTILO ARTISA          */
/* ========================================================= */

.equipos-section {
  background: #ffffff;
  padding: 60px 0;
}

.equipos-title {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 900;
}

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.equipo-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

/* Sin hover interactivo */
.equipo-card:hover {
  transform: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.equipo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.equipo-label {
  background: #7FB800;
  color: white;
  text-align: center;
  padding: 5px 0;
  font-size: 1.2rem;
  font-weight: 700;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-transform: uppercase;
}

/* Responsive para móviles */
@media (max-width: 900px) {
  .equipos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .equipos-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================= */
/*      NUESTRA HISTORIA + CARRUSEL LATERAL                  */
/* ========================================================= */

.about-story-section {
  background: #ffffff;
  padding: 70px 0;
}

.about-story-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* TEXTO */

.about-story-title {
  font-size: 2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.about-story-divider {
  width: 120px;           /*más larga */
  height: 3px;           /* un poco más gruesa */
  background: #7FB800;   /* verde corporativo (recomendado) */
  margin: 16px auto 28px;/* bien centrada y con aire */
  border-radius: 2px;
}


.about-story-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
  margin-bottom: 18px;
}

.about-story-text p {
  font-size: 0.98rem;
  line-height: 1.7rem;
  color: #4b5563;
  margin-bottom: 12px;
  text-align: center;
}

/* CARRUSEL */

.about-story-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 8px;
}

.story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.story-slide.active {
  opacity: 1;
}

.story-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PUNTOS */

.story-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.story-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
}

.story-dot.active {
  background: #7FB800;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .about-story-inner {
    grid-template-columns: 1fr;
  }

  .about-story-carousel {
    order: -1;
    height: 300px;
  }
}

/* ========================================================= */
/*                    SECCIÓN CONTACTO                       */
/* ========================================================= */

.contacto-section {
  background: #f9fafb;
  padding: 70px 0;
}

.contacto-title {
  font-size: 2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 900;
  margin-bottom: 10px;
}

.contacto-divider {
  width: 120px;
  height: 3px;
  background: #7FB800;
  margin: 16px auto 22px;
  border-radius: 2px;
}

.contacto-subtitle {
  text-align: center;
  color: #6b7280;
  max-width: 760px;
  margin: 0 auto 30px;
  line-height: 1.6rem;
}

/* Cards */

.contacto-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.contacto-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  text-align: center;
}

.contacto-card-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 6px;
}

.contacto-card-value a,
.contacto-card-value span {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  text-decoration: none;
}

.contacto-card-note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Grid form + mapa */

.contacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.contacto-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.contacto-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.contacto-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 10px;
  font-size: 0.95rem;
  outline: none;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
  border-color: #7FB800;
}

.btn-contacto {
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 12px 14px;
  background: #7FB800;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.contacto-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
}

/* Mapa / caja */

.contacto-map-box {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto-map-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  font-weight: 900;
}

.contacto-map-muted {
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

/* Responsive */

@media (max-width: 992px) {
  .contacto-cards {
    grid-template-columns: 1fr;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================================= */
/*                         MAPA                              */
/* ========================================================= */

.contacto-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.contacto-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================================= */
/*                          FOOTER                           */
/* ========================================================= */

.footer {
  background: #0b0f14; /* oscuro elegante */
  color: rgba(255,255,255,0.85);
}

.footer-top {
  padding: 50px 0 35px;
  border-top: 3px solid #7FB800; /* línea verde corporativa */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-text {
  color: rgba(255,255,255,0.75);
  line-height: 1.6rem;
  font-size: 0.95rem;
  margin: 0;
}

.footer-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 900;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
}

.footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #7FB800;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 14px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.footer-dev {
  white-space: nowrap;
}

/* Responsive */

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-dev {
    white-space: normal;
  }
}

/* ========================================================= */
/*                         CLIENTES                          */
/* ========================================================= */

.clientes-section {
  background: #ffffff;
  padding: 60px 0;
}

.clientes-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 26px;
  color: #111827;
}

.clientes-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.clientes-viewport {
  overflow: hidden;
  width: 100%;
}

.clientes-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

/* Cada item ocupa 1/4 en desktop por defecto */
.cliente-item {
  flex: 0 0 25%;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cliente-item img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.cliente-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Flechas */
.clientes-arrow {
  border: none;
  background: transparent;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(17,24,39,0.35);
  cursor: pointer;
  padding: 6px 10px;
  user-select: none;
}

.clientes-arrow:hover {
  color: #7FB800;
}

/* Dots */
.clientes-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.clientes-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
}

.clientes-dot.active {
  background: #111827;
}

/* Responsive: 2 logos por vista */
@media (max-width: 900px) {
  .cliente-item { flex-basis: 50%; }
  .cliente-item img { max-height: 90px; }
}

/* Responsive: 1 logo por vista */
@media (max-width: 520px) {
  .cliente-item { flex-basis: 100%; }
}


/* ========================================================= */
/*  RESPONSIVE PATCH (pegar al final del CSS)                */
/* ========================================================= */

/* Mejoras generales mobile */
@media (max-width: 768px) {
  .container {
    width: 92%;
  }

  /* Evitar que títulos con mucho tracking se corten feo */
  .about-story-title,
  .contacto-title {
    letter-spacing: 0.12em;
    font-size: 1.55rem;
  }

  .equipos-title,
  .section-servicios h2,
  .clientes-title {
    font-size: 1.55rem;
  }
}

/* TOPBAR + NAV: apilar y centrar en móvil */
@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .topbar-left {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 0.82rem;
  }

  .topbar-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-top {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .nav-inner {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }
}

/* HERO: altura flexible + texto más legible en móvil */
@media (max-width: 768px) {
  .header-hero {
    height: 520px; /* más alto para que el texto no choque con el topbar/nav */
  }

  .hero-small {
    height: 320px;
  }

  .hero-content {
    left: 0;
    transform: none;
    width: 100%;
    padding: 0 16px;
    bottom: 22px;
  }

  .hero-content h1 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-hero {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }
}

/* HISTORIA: ajustar carrusel un poco en móviles muy chicos */
@media (max-width: 480px) {
  .about-story-carousel {
    height: 240px;
  }

  .about-story-text p {
    font-size: 0.95rem;
    line-height: 1.55rem;
  }
}

/* CONTACTO: cards + grid ya se adaptan a 992px, pero en móvil afinamos mapa */
@media (max-width: 768px) {
  .contacto-section {
    padding: 55px 0;
  }

  .contacto-subtitle {
    padding: 0 6px;
  }

  .contacto-map {
    min-height: 280px; /* antes 420px, en móvil se come toda la pantalla */
  }
}

/* TRABAJA: tabs más “tocables” y card con padding menor */
@media (max-width: 768px) {
  .trabaja-card {
    padding: 22px 18px 18px;
  }

  .trabaja-tabs {
    gap: 12px;
  }

  .trabaja-tab {
    font-size: 0.82rem;
    padding: 12px 0; /* más cómodo para dedo */
    white-space: nowrap;
  }
}

/* CLIENTES: flechas muy grandes en móvil, las reducimos */
@media (max-width: 520px) {
  .clientes-arrow {
    font-size: 1.8rem;
    padding: 4px 6px;
  }

  .cliente-item {
    padding: 8px 10px;
  }
}
