:root {
  --rojo: #ff0000;
  --rojo-nav: #c90000;
  --azul: #1e73be;
  --titulo: #2d3359;
  --texto: #999999;
  --texto-fuerte: #3c4858;
  --fondo: #eeeeee;
  --blanco: #ffffff;
  --negro: #222222;
  --sombra: 0 16px 24px 2px rgba(0, 0, 0, 0.14),
    0 6px 30px 5px rgba(0, 0, 0, 0.12),
    0 8px 10px -5px rgba(0, 0, 0, 0.2);
  --radio: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rojo);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
.marca {
  font-family: Aldrich, sans-serif;
  font-weight: 400;
  color: var(--titulo);
  margin: 0 0 0.4em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.contenedor {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.solido,
.nav.abierto {
  background: var(--rojo-nav);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}

.nav-logo img {
  height: 52px;
  width: auto;
  max-width: min(320px, 62vw);
  object-fit: contain;
}

.nav-enlaces {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-enlaces a {
  color: var(--blanco);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 3px;
}

.nav-enlaces a:hover,
.nav-enlaces a:focus-visible {
  color: #ffd4d4;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--blanco);
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco);
  background: #111 center / cover no-repeat;
  padding: 120px 16px 140px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-contenido {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  color: var(--blanco);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero p {
  color: var(--blanco);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0 0 32px;
}

.botones {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 15px 33px;
  border-radius: 3px;
  border: 0;
  color: var(--blanco);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.42), 0 4px 23px 0 rgba(0, 0, 0, 0.12),
    0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

.btn-azul {
  background: var(--azul);
}

.btn-rojo {
  background: #dd3333;
}

.btn-enviar {
  background: var(--rojo);
}

/* Tarjeta principal elevada (estilo Hestia) */
.principal {
  position: relative;
  z-index: 2;
  margin: -70px 16px 0;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.seccion {
  padding: 72px 0;
}

.seccion-titulo {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.seccion-titulo h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.seccion-titulo p {
  margin: 0;
  color: var(--texto);
  font-size: 1.05rem;
}

/* Seguros */
.seguros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
}

.seguro {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 12px;
}

.seguro img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

/* Servicios */
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
}

.servicio {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
}

.servicio img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.servicio h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.servicio .etiqueta {
  margin: 0 0 8px;
  color: var(--texto);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.servicio p {
  margin: 0;
  color: var(--texto);
  font-size: 0.95rem;
}

/* Franja about */
.franja {
  position: relative;
  color: var(--blanco);
  background: #111 center / cover no-repeat;
  padding: 90px 16px;
  text-align: center;
}

.franja::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.franja-contenido {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.franja h2,
.franja p,
.franja li {
  color: var(--blanco);
}

.franja ul {
  display: inline-block;
  text-align: left;
  margin: 12px 0 0;
  padding: 0;
  list-style: disc;
}

/* Repuestos */
.repuestos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.repuesto {
  text-align: center;
  padding: 8px 12px 16px;
}

.repuesto img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56);
}

.repuesto h3 {
  font-size: 1.15rem;
}

.repuesto .etiqueta {
  color: var(--texto);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.repuesto p {
  margin: 0;
  color: var(--texto);
}

/* Contacto */
.contacto {
  position: relative;
  background: #111 center / cover no-repeat;
  padding: 80px 0;
  color: var(--blanco);
}

.contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.contacto .contenedor {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacto h2,
.contacto h3 {
  color: var(--blanco);
}

.contacto .intro {
  margin: 0 0 28px;
  color: #eee;
}

.dato {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.dato-icono {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rojo);
  color: var(--blanco);
  display: grid;
  place-items: center;
}

.dato h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.dato p,
.dato a {
  margin: 0;
  color: #eee;
  font-size: 0.95rem;
}

.dato a:hover {
  color: var(--blanco);
}

.tarjeta-form {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.tarjeta-form header {
  background: var(--rojo);
  color: var(--blanco);
  text-align: center;
  padding: 22px 16px;
}

.tarjeta-form header h3 {
  color: var(--blanco);
  margin: 0;
  font-size: 1.2rem;
}

.tarjeta-form form {
  padding: 28px 28px 24px;
}

.fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.campo {
  margin-bottom: 20px;
}

.campo input,
.campo textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #d2d2d2;
  padding: 10px 0;
  font: inherit;
  color: var(--texto-fuerte);
  background: transparent;
  resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-bottom-color: var(--rojo);
}

.campo textarea {
  min-height: 96px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.acciones {
  text-align: right;
}

.aviso {
  margin: 20px 28px 0;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
}

.aviso.ok {
  background: #e8f5e9;
  color: #1b5e20;
}

.aviso.error {
  background: #ffebee;
  color: #b71c1c;
}

/* Footer */
.pie {
  background: var(--negro);
  color: #bbb;
  padding: 28px 0;
}

.pie-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pie-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pie a {
  color: #ddd;
}

.pie a:hover {
  color: var(--blanco);
}

/* Página interior */
.cuerpo-pagina .nav {
  background: var(--rojo-nav);
}

.cabecera-pagina {
  background: var(--rojo-nav);
  color: var(--blanco);
  padding: 130px 16px 48px;
  text-align: center;
}

.cabecera-pagina h1 {
  color: var(--blanco);
}

.articulo {
  background: var(--blanco);
  margin: -24px auto 48px;
  width: min(800px, calc(100% - 32px));
  padding: 40px 32px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  color: var(--texto-fuerte);
}

.articulo h2 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
}

@media (max-width: 900px) {
  .servicios-grid,
  .repuestos-grid,
  .contacto .contenedor {
    grid-template-columns: 1fr;
  }

  .servicio {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-enlaces {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rojo-nav);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
  }

  .nav.abierto .nav-enlaces {
    display: flex;
  }

  .seguros-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .principal {
    margin: -40px 0 0;
    border-radius: 0;
  }

  .fila,
  .acciones {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .servicio {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .servicio img {
    height: 180px;
  }
}
