/* Reset básico */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h2 {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    letter-spacing: 1px;
}

/* Navegación */
#main-navbar {
    background: #222;
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 60px 0 130px;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    padding: 0 40px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
}



/* Hero */
header {
    background: url('assets/img/header/header_04.webp') no-repeat center center/cover;
    color: white;
    padding-top: 120px;
    padding-bottom: 100px;
    text-align: center;
    text-shadow: 3px 3px 6px #000;
    height: 90dvh;
}

header img {
    max-width: 50dvh;
}
header h1{
  font-size: 40px;
} 
header p{
  font-size: 30px;
}
header span{
  font-size: large;
}
/* Secciones */
section {
    padding: 60px 20px;
    text-align: center;
}

.bg-light {
    background: #f9f9f9;
    color: #333;
}

.bg-gray {
    background: #c5c5c5;
    color: #333;
}

.bg-dark {
    background: #222;
    color: #fff;
}
.img_section{
max-width: 70dvw;
}

/* Modelos */
.modelos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.modelo {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modelo img {
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
}

.modelo h3 {
    margin-bottom: 10px;
}


/*valores*/
#valores{
  min-height: 50dvh;
  margin-top: auto;
}

/* Prestaciones */
.prestaciones { list-style: none; margin: 15px 0; padding: 0; }
.prestaciones li { padding: 8px 0; font-size: 1rem; color: #333; }
.prestaciones hr { border: none; border-top: 1px solid #ddd; margin: 4px 0; }

/* Botones */
.btn, .modelo a {
    display: inline-block;
    padding: 10px 20px;
    background: #222222;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    margin: 15px;
}

.btn:hover, .modelo a:hover {
    background: #8a8a8a;
    color: #000;
}

.btn-menu {
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    border-radius: 5px;
    transition: 0.3s;
    margin: 15px;
    text-decoration: none;
}

.btn-menu:hover, .modelo a:hover {
    background: #ffffff;
    
    color: #000;
}

/* Formularios */
form input, form select, form textarea, form button {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 10px;
}

form button {
    background: #222;
    color: #fff;
    border: none;
    cursor: pointer;
}

form button:hover {
    background: #444;
}

/* Garantía */
.garantia{
  margin: 10dvh 0px;
}
.garantia-container {
    display: flex;
    justify-content: center;
    gap: 10dvw;
    flex-wrap: wrap;
}

.img-section {
    width: 7dvw;
    padding: 15px;
}

/* Sección Valores */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.valor-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-8px);
}

.valor-item img {
    width: 60px;
    margin-bottom: 15px;
}

.valor-item h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #222;
}

.valor-item p {
    font-size: 0.95em;
    color: #555;
}

/*Sección Puntos de venta*/
.img-venta{
  max-width: 70dvw;
  min-width: 500px;
  margin-inline:calc(15dvw);
}
/* PUNTOS DE VENTA */
.dealers-section {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.dealers-section h2 {
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-family: 'Montserrat', sans-serif;
  color: #222;
}

.dealers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  align-items: stretch; /* fuerza misma altura */
}

.dealer-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  
  /* estructura interna para alinear botones */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dealer-location {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 12px;
  margin-bottom: 12px;
}

.dealer-card h3 {
  font-size: 20px;
  margin: 8px 0;
  color: #333;
}

.dealer-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px 30px 20px; /* 👈 más espacio adentro */
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dealer-buttons {
  margin-top: auto; /* siempre empuja los botones al fondo */
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 15px 10px;
}

.dealer-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #fff;
  border: 2px solid #007bff;
  color: #007bff;
  transition: all 0.3s ease;
  font-size: 20px;
  padding: 10px;
}

.dealer-buttons .btn:hover {
  background: #007bff;
  color: #fff;
}
/* ---------------------------
   SECCIÓN POSVENTA – NUEVO
----------------------------*/

/* Contenedor principal */
.posventa {
  position: relative;
  background: url("assets/img/posventa/fondo_servicios.webp") center/cover no-repeat;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  min-height: 90vh;
}

/* Oscurecer fondo */
.posventa .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
  z-index: 1;
}

.posventa-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.posventa-titulo {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 35px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ---------------------------
   GARANTÍA
----------------------------*/
.garantia-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.garantia-item {
  text-align: center;
  max-width: 260px;
}

.garantia-item img {
  width: 120px;
  margin-bottom: 15px;
}

.garantia-item p {
  font-size: 1.1rem;
  line-height: 1.5;
}


/* ---------------------------
   TALLERES (ESTILO PREMIUM)
----------------------------*/
.talleres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.taller-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  padding: 30px 25px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.taller-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.18);
}

.taller-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.taller-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35em;
  padding: 0.45em 0.75em;
  border-radius: 999px;
  background: #b90000;
  color: #fff;
  font-size: 0.58em;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.taller-direccion {
  color: #ddd;
  margin-bottom: 20px;
}

/* Botones */
.taller-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-t {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

/* Colores */
.taller-wpp { background: #25D366; color: #fff; }
.taller-map { background: #E63946; color: #fff; }
.taller-web { background: #1D3557; color: #fff; }

.btn-t:hover {
  transform: scale(1.12);
}

/* Responsividad */
@media (max-width: 768px) {
  .posventa h2 { font-size: 1.6rem; }
  .posventa p { font-size: 1rem; }
  .posventa-buttons .btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}


/*CONTACTO*/
.contenedor-formulario{
  max-width: 80dvw;
  text-align: center;
  margin: 0 auto;
}
/* Footer */
.footer {
  background: #111;
  color: #fff;
  padding: 60px 20px 20px;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 15px;
}

.footer-links h3,
.footer-social h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 8px 0;
}

.footer-links ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.social-icons a {
  color: #aaa;
  font-size: 1.3rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  font-size: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 10px rgba(0,0,0,0.4);
  color: #fff;
}

/* Responsividad */
@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }
}


/* Animaciones */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .modelos-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modelos-container {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
        display: none;
        background: #222;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}

/* Ajustes para pantallas táctiles y teléfonos */
@media (max-width: 768px) {
    *, *::before, *::after {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    section {
        padding: 42px 16px;
    }

    h2 {
        font-size: clamp(1.65rem, 7vw, 2.2rem);
        line-height: 1.2;
    }

    #main-navbar {
        padding: 10px 16px;
    }

    .nav-container {
        position: relative;
        margin: 0;
        width: 100%;
    }

    .nav-logo {
        padding: 0;
        font-size: 1.3rem;
    }

    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 4px;
        line-height: 1;
    }

    .nav-menu {
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        width: 100%;
        gap: 0;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
    }

    .nav-menu li a {
        display: block;
        padding: 12px 14px;
    }

    header {
        min-height: 78svh;
        height: auto;
        padding: 92px 16px 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    header img {
        max-width: min(75vw, 280px);
    }

    header h1 {
        font-size: clamp(1.7rem, 8vw, 2.35rem);
        line-height: 1.2;
    }

    header p {
        font-size: clamp(1.05rem, 5vw, 1.35rem);
        line-height: 1.45;
    }

    .btn-menu,
    .modelo a {
        margin: 8px 4px;
    }

    .modelo {
        padding: 18px 14px;
    }

    .modelo img,
    .img_section {
        max-width: 100%;
    }

    .img-section {
        width: 72px;
    }

    .img-venta {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .dealers-section,
    .posventa,
    .contacto-whatsapp {
        padding: 48px 16px;
    }

    .dealers-grid,
    .talleres-grid,
    .valores-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .dealer-card,
    .taller-card,
    .valor-item {
        padding: 22px 16px;
    }

    .garantia {
        margin: 48px 0;
    }

    .garantia-container {
        gap: 28px;
        margin-bottom: 42px;
    }

    .contenedor-formulario {
        max-width: 100%;
    }

    form input, form select, form textarea, form button {
        width: 100%;
    }

    .btn-whatsapp-big {
        max-width: 100%;
        justify-content: center;
        padding: 14px 22px;
        font-size: 1rem;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        font-size: 1.7rem;
    }
}
/* Sección Contacto WhatsApp */
.contacto-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  text-align: center;
  padding: 60px 20px;
  position: relative;
}

.contacto-whatsapp h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contacto-whatsapp p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-whatsapp-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp-big i {
  font-size: 1.5rem;
}

.btn-whatsapp-big:hover {
  background-color: #1ebe5c;
  transform: scale(1.05);
}

/* Fichas de modelos y directorios */
.seccion-intro { max-width: 760px; margin: 0 auto 28px; }
.modelo { display: flex; flex-direction: column; align-items: stretch; }
.modelo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.modelo h3, .modelo p { text-align: center; }
.modelo .prestaciones { text-align: left; }
.modelo .btn { margin: 8px 0; }
.modelo .btn-consulta { background: #b60000; }
.modelo .link-ficha { display: block; margin: 8px auto 0; }
.nota-autonomia, .nota-tecnica { max-width: 960px; margin: 28px auto 0; padding: 18px 22px; border-left: 4px solid #b60000; background: #fff; text-align: left; }
.department-heading { grid-column: 1 / -1; margin: 20px 0 0; padding: 10px 14px; border-bottom: 2px solid #b60000; text-align: left; text-transform: uppercase; }
.service-department-heading { grid-column: 1 / -1; margin: 20px 0 0; padding: 10px 14px; border-bottom: 2px solid #fff; text-align: left; text-transform: uppercase; color: #fff; }
.horario-local, .taller-contacto { font-size: .92rem; line-height: 1.5; margin: 8px 0; text-align: left; }
.horarios-nota { margin: 0 auto; max-width: 1000px; font-size: .95rem; }
.taller-card .taller-contacto a, .taller-card .horario-local { color: #fff; }
.dealer-card a:not(.btn) { color: inherit; }

@media (max-width: 768px) {
  .nota-autonomia, .nota-tecnica { padding: 14px; margin: 20px 10px 0; }
  .department-heading { padding-left: 6px; }
  }


/* Navegación refinada: alineación, logo y estados interactivos coherentes */
#main-navbar, .navbar { min-height: 76px; padding: 10px clamp(16px, 4vw, 40px); background: rgba(24,24,24,.97); backdrop-filter: blur(12px); }
.nav-container { width: min(100%, 1240px); max-width: 1240px; min-height: 54px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nav-logo { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0; line-height: 0; }
.nav-logo img { display: block; width: auto; height: 43px; max-width: 180px; object-fit: contain; }
.nav-menu { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 2.2vw, 30px); margin: 0; padding: 0; list-style: none; }
.nav-menu li { display: flex; align-items: center; }
.nav-menu li a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: #f6f6f6; text-decoration: none; font-weight: 500; line-height: 1.2; transition: color .22s ease; }
.nav-menu li a::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 2px; background: #c8102e; content: ""; transform: scaleX(0); transform-origin: left center; transition: transform .24s ease; }
.nav-menu li a:hover, .nav-menu li a:focus-visible { color: #fff; }
.nav-menu li a:hover::after, .nav-menu li a:focus-visible::after { transform: scaleX(1); }
.nav-toggle { display: none; }
.nav-toggle:focus-visible, .nav-logo:focus-visible { outline: 2px solid #d11b37; outline-offset: 4px; border-radius: 4px; }

/* Tarjetas de modelos: composición centrada y microinteracciones sobrias */
.modelos-container { align-items: stretch; gap: clamp(18px, 2.4vw, 30px); }
.modelo { align-items: center; gap: 8px; padding: clamp(20px, 2.2vw, 30px); border: 1px solid rgba(20,20,20,.07); border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.08); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.modelo:hover { transform: translateY(-5px); border-color: rgba(184,0,28,.24); box-shadow: 0 18px 40px rgba(0,0,0,.13); }
.modelo img { width: 100%; height: clamp(170px, 18vw, 230px); margin: 0 0 8px; object-fit: contain; transition: transform .35s ease; }
.modelo:hover img { transform: scale(1.025); }
.modelo h3 { width: 100%; margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.modelo > p { max-width: 34ch; margin: 0 auto; text-align: center; }
.modelo .prestaciones { width: min(100%, 340px); margin: 8px auto 12px; text-align: left; }
.modelo .prestaciones li { padding: 7px 0; border-bottom: 1px solid #eee; font-size: .94rem; }
.modelo .btn, .modelo .link-ficha { width: min(100%, 310px); margin: 5px auto; }
.modelo .btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 7px; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.modelo .btn:hover { background: #333; color: #fff; transform: translateY(-2px); box-shadow: 0 7px 16px rgba(0,0,0,.15); }
.modelo .btn-consulta { background: #b60000; }
.modelo .btn-consulta:hover { background: #8e0010; color: #fff; }
.link-ficha { color: #333; text-align: center; }

/* Desplegables generados para directorios por departamento */
.directory-group { grid-column: 1 / -1; overflow: hidden; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; background: #fff; text-align: left; }
.directory-group summary { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 12px 18px; cursor: pointer; list-style: none; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.directory-group summary::-webkit-details-marker { display: none; }
.directory-group summary::after { content: "+"; font-size: 1.35rem; font-weight: 400; transition: transform .2s ease; }
.directory-group[open] summary::after { transform: rotate(45deg); }
.directory-group[data-region="Montevideo"] summary { border-left: 4px solid #b60000; color: #8f0015; }
.directory-group[data-region="Maldonado"] summary { border-left: 4px solid #147c8c; color: #116c79; }
.directory-group[data-region="Canelones"] summary { border-left: 4px solid #9b6a00; color: #805800; }
.directory-group[data-region="Paysandú"] summary { border-left: 4px solid #526f33; color: #48632e; }
.directory-group .dealer-card, .directory-group .taller-card { margin: 12px; }

/* Hero CTA: hover limpio y sin sombras de texto */
.btn-menu { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; border: 1px solid rgba(255,255,255,.7); background: rgba(22,22,22,.25); backdrop-filter: blur(5px); text-shadow: none; transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease; }
.btn-menu:hover, .btn-menu:focus-visible { color: #fff; background: #b60000; border-color: #b60000; text-shadow: none; transform: translateY(-2px); }

@media (max-width: 768px) {
  #main-navbar, .navbar { min-height: 66px; padding: 8px 16px; }
  .nav-container { min-height: 48px; gap: 12px; }
  .nav-logo img { height: 38px; max-width: 150px; }
  .nav-toggle { position: relative; z-index: 1002; display: flex; width: 46px; height: 46px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; background: transparent; cursor: pointer; }
  .nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform .24s ease, opacity .18s ease, width .24s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu { position: absolute; z-index: 1001; top: calc(100% + 8px); right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #202020; box-shadow: 0 16px 32px rgba(0,0,0,.25); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px) scale(.985); transform-origin: top; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
  .nav-menu.active { display: flex; opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
  .nav-menu li a { display: flex; width: 100%; min-height: 48px; padding: 0 14px; }
  .nav-menu li a::after { right: auto; bottom: 5px; left: 14px; width: 35px; }
  .modelos-container { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .modelo { width: min(100%, 520px); margin: 0 auto; }
  .modelo img { height: clamp(165px, 55vw, 230px); }
  .nota-autonomia, .nota-tecnica { width: min(100%, 100%); margin: 20px auto 0; padding: 16px; border-radius: 8px; border-left-width: 3px; font-size: .94rem; line-height: 1.55; overflow-wrap: anywhere; }
  .nota-autonomia { text-align: left; }
  .directory-group summary { min-height: 50px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu, .nav-toggle span, .nav-menu li a::after, .modelo, .modelo img, .modelo .btn, .btn-menu { transition-duration: .01ms !important; }
  .modelo:hover, .modelo:hover img, .modelo .btn:hover, .btn-menu:hover { transform: none; }
}

.directory-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); justify-content: start; align-items: stretch; gap: 16px; padding: 16px; }
.directory-cards .dealer-card, .directory-cards .taller-card { width: 100%; min-width: 0; margin: 0; }
.directory-group.is-service { background: #252525; border-color: rgba(255,255,255,.16); }
.directory-group.is-service summary { color: #fff; }
.directory-group.is-service .taller-card { margin: 0; }


header .container .btn-menu:first-of-type { background: #b60000; border-color: #b60000; }
header .container .btn-menu:first-of-type:hover { background: #8e0010; border-color: #8e0010; }



/* Model comparison cards use matching rows so calls to action align. */
.modelo { display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; padding: 18px 20px; }
.modelo img { width: 100%; height: 145px; max-height: none; margin: 0; aspect-ratio: auto; object-fit: cover; object-position: center 60%; }
.modelo h3 { min-height: 32px; margin: 0; line-height: 1.2; }
.modelo > p { min-height: 44px; max-width: 36ch; margin: 0 auto; line-height: 1.4; }
.modelo .prestaciones { width: min(100%, 350px); min-height: 116px; margin: 0 auto; text-align: left; }
.modelo .prestaciones li { padding: 5px 0; border-bottom: 1px solid #eee; font-size: .91rem; line-height: 1.35; }
.modelo-actions { display: grid; width: 100%; justify-items: center; gap: 6px; margin-top: auto; }
.modelo-actions .btn, .modelo-actions .link-ficha { width: min(100%, 310px); margin: 0 auto; }
.modelo-actions .btn { display: flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 7px; }
.modelo-actions .link-ficha { min-height: 30px; line-height: 30px; }
@media (max-width: 768px) { .modelo { padding: 16px; } }


/* Branded page loader: a short red orbit animation around the supplied logo. */
.page-loader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at center, #343434 0%, #202020 48%, #111 100%); opacity: 1; visibility: visible; transition: opacity .55s ease, visibility .55s ease; }
.page-loader::before { position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, rgba(190,0,28,.18), transparent 34%); content: ""; animation: loader-glow 2.4s ease-in-out infinite alternate; }
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-stage { position: relative; display: flex; width: min(88vw, 420px); min-height: 230px; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.loader-orbit { position: absolute; top: 50%; left: 50%; width: 230px; height: 230px; border: 1px solid rgba(255,255,255,.16); border-top-color: #df1734; border-right-color: rgba(223,23,52,.5); border-radius: 50%; transform: translate(-50%,-50%); animation: loader-spin 2s linear infinite; }
.loader-orbit::after { position: absolute; top: 20px; right: 24px; width: 9px; height: 9px; border-radius: 50%; background: #f21b3b; box-shadow: 0 0 18px 5px rgba(242,27,59,.65); content: ""; }
.loader-orbit-secondary { width: 264px; height: 174px; border-color: rgba(255,255,255,.09); border-bottom-color: rgba(255,255,255,.42); border-left-color: rgba(255,255,255,.24); animation: loader-spin-reverse 3.2s linear infinite; }
.loader-logo { position: relative; z-index: 1; display: block; width: min(72vw, 300px); height: auto; filter: drop-shadow(0 0 20px rgba(255,255,255,.18)); animation: loader-logo-in .7s cubic-bezier(.2,.8,.2,1) both, loader-breathe 2s ease-in-out .7s infinite; }
.loader-caption { z-index: 1; margin: 0; color: rgba(255,255,255,.78); font-size: .72rem; font-weight: 600; letter-spacing: .28em; }
.loader-progress { z-index: 1; display: block; width: min(58vw, 210px); height: 2px; overflow: hidden; background: rgba(255,255,255,.2); }
.loader-progress > span { display: block; width: 40%; height: 100%; background: #d41432; box-shadow: 0 0 12px rgba(212,20,50,.8); animation: loader-progress 1.35s ease-in-out infinite; }
@keyframes loader-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes loader-spin-reverse { to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes loader-glow { from { opacity: .45; transform: scale(.9); } to { opacity: 1; transform: scale(1.12); } }
@keyframes loader-logo-in { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes loader-breathe { 0%,100% { filter: drop-shadow(0 0 8px rgba(255,255,255,.12)); } 50% { filter: drop-shadow(0 0 22px rgba(255,255,255,.3)); } }
@keyframes loader-progress { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@media (max-width: 480px) { .loader-orbit { width: 190px; height: 190px; } .loader-orbit-secondary { width: 220px; height: 144px; } .loader-stage { min-height: 200px; } }
@media (prefers-reduced-motion: reduce) { .page-loader::before, .loader-orbit, .loader-orbit-secondary, .loader-logo, .loader-progress > span { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }


/* Warranty facts are intentionally presented as three clear reading steps. */
.garantia-container { align-items: stretch; gap: clamp(24px, 6vw, 70px); }
.garantia-item { display: flex; flex: 0 1 350px; flex-direction: column; align-items: center; max-width: 350px; }
.garantia-item img { flex: 0 0 auto; }
.garantia-item .garantia-copy { display: flex; width: 100%; min-height: 106px; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; font-size: 1rem; line-height: 1.35; }
.garantia-alcance { display: block; min-height: 2.7em; font-size: .98rem; }
.garantia-plazo { display: block; color: #fff; font-size: 1.22rem; line-height: 1.25; white-space: nowrap; }
.garantia-condicion { display: block; font-size: .92rem; }
@media (max-width: 768px) {
  .garantia-container { gap: 24px; }
  .garantia-item { flex-basis: min(100%, 350px); max-width: 100%; }
  .garantia-item .garantia-copy { min-height: 100px; }
  .garantia-plazo { font-size: 1.12rem; }
}


/* Scroll motion stays subtle and follows the model-specific imagery. */
[data-parallax] { background-position: center calc(50% + var(--parallax-y, 0px)) !important; background-repeat: no-repeat; background-size: cover; }
#modelos { position: relative; isolation: isolate; overflow: hidden; }
#modelos::before { position: absolute; z-index: -1; inset: -5% 0; background-image: url("assets/img/header/portada_modelos.webp"); background-repeat: no-repeat; background-position: center 58%; background-size: cover; opacity: .2; content: ""; pointer-events: none; transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.04); }
.animate { opacity: 0; transform: translate3d(0, 26px, 0) scale(.99); filter: blur(2px); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.7,.25,1), filter .72s ease; transition-delay: var(--reveal-delay, 0ms); }
.animate.visible { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: none; }
.section-reveal-item { opacity: 0; transform: translate3d(0,18px,0); transition: opacity .62s ease, transform .62s cubic-bezier(.2,.7,.25,1); transition-delay: var(--reveal-delay, 0ms); }
.animate.visible > .section-reveal-item { opacity: 1; transform: translate3d(0,0,0); }
@media (max-width: 768px) { [data-parallax] { background-position: center center !important; } #modelos::before { opacity: .14; background-position: center center; } }
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { background-position: center center !important; }
  .animate, .section-reveal-item { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}
