/* Botones */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--olive-800);
  border: 2px solid var(--olive-800);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover {
  background: var(--olive-600);
  border-color: var(--olive-600);
  transform: translateY(-2px);
}

.btn--small {
  padding: 0.5rem 1.1rem;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.hero .btn:not(.btn--ghost) {
  color: var(--olive-900);
  background: #d9c07a;
  border-color: #d9c07a;
}

.hero .btn:not(.btn--ghost):hover {
  background: #e6d296;
  border-color: #e6d296;
}

/* Iconos */
.icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--olive-600);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--small {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
}

/* Nosotros */
.about__points li {
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.about__points strong,
.about__points span {
  display: block;
}

.about__points strong {
  color: var(--olive-900);
}

.about__points span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Categorías */
.category {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--olive-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.category::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 27, 0.5);
  transition: background 0.4s;
}

.category__name {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.category:hover img,
.category:focus-visible img {
  transform: scale(1.09);
}

.category:hover::after,
.category:focus-visible::after {
  background: rgba(31, 42, 27, 0.28);
}

/* Galería */
.gallery__item {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: var(--alt);
  border-radius: var(--radius);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1rem 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(31, 42, 27, 0.82));
}

/* Marcas */
.marquee {
  display: flex;
  overflow: hidden;
  padding-block: 0.5rem;
}

.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  min-width: 100%;
  justify-content: space-around;
  gap: 1.2rem;
  padding-right: 1.2rem;
  animation: marquee 40s linear infinite;
}

.marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 96px;
  padding: 1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.marquee__item img {
  width: auto;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}

.marquee__item:hover img {
  filter: none;
  opacity: 1;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* Clientes */
.clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.clients__item img {
  max-height: 70px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s;
}

.clients__item:hover img {
  filter: none;
  opacity: 1;
}

.clients__item--empty {
  background: transparent;
  border-style: dashed;
}

/* Sucursales */
.branch {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.branch h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.branch__info {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}

.branch__info li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.97rem;
}

.branch__info a {
  text-decoration: none;
  font-weight: 600;
  color: var(--olive-800);
}

.branch__info a:hover {
  text-decoration: underline;
}

.map {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--alt);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.map__cta {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--olive-800);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background 0.25s;
}

.map:hover .map__cta {
  background: var(--olive-600);
}

/* Formulario */
.form {
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form__row {
  margin-bottom: 1.1rem;
}

.form__row--half {
  display: grid;
  gap: 1.1rem;
}

.form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form label span {
  font-weight: 400;
  color: var(--ink-soft);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--olive-600);
  box-shadow: 0 0 0 3px rgba(74, 94, 58, 0.2);
}

.form textarea {
  resize: vertical;
}

.form__turnstile {
  margin-bottom: 1rem;
}

.form__status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.form__status.is-ok {
  color: #2f6b34;
}

.form__status.is-error {
  color: #a23b2f;
}

.form button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* Campo trampa para bots: fuera de pantalla */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .form__row--half {
    grid-template-columns: 1fr 1fr;
  }
}

/* Enlaces dentro de texto */
.link {
  font-weight: 600;
  color: var(--olive-800);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.link:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}
