/* =================================================================
   0. RESET BASE
   Equivale al "preflight" de Tailwind que antes venía en
   montero-original.css (el resto de ese archivo no se usaba).
   Está en @layer base: cualquier regla normal del sitio lo sobrescribe.
   ================================================================ */

@layer base {
    *,
    ::after,
    ::before,
    ::backdrop,
    ::file-selector-button {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        border: 0 solid;
    }

    html {
        -webkit-text-size-adjust: 100%;
        tab-size: 4;
        line-height: 1.5;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        -webkit-tap-highlight-color: transparent;
    }

    hr {
        height: 0;
        color: inherit;
        border-top-width: 1px;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: inherit;
        font-weight: inherit;
    }

    a {
        color: inherit;
        -webkit-text-decoration: inherit;
        text-decoration: inherit;
    }

    b, strong {
        font-weight: bolder;
    }

    code, kbd, samp, pre {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        font-size: 1em;
    }

    small {
        font-size: 80%;
    }

    sub, sup {
        position: relative;
        font-size: 75%;
        line-height: 0;
        vertical-align: baseline;
    }

    sub { bottom: -0.25em; }
    sup { top: -0.5em; }

    table {
        text-indent: 0;
        border-color: inherit;
        border-collapse: collapse;
    }

    ol, ul, menu {
        list-style: none;
    }

    img, svg, video, canvas, audio, iframe, embed, object {
        display: block;
        vertical-align: middle;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }

    button, input, select, optgroup, textarea, ::file-selector-button {
        font: inherit;
        letter-spacing: inherit;
        color: inherit;
        opacity: 1;
        background-color: transparent;
        border-radius: 0;
    }

    ::file-selector-button {
        margin-inline-end: 4px;
    }

    ::placeholder {
        opacity: 1;
    }

    @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
        ::placeholder {
            color: currentColor;
        }

        @supports (color: color-mix(in lab, red, red)) {
            ::placeholder {
                color: color-mix(in oklab, currentcolor 50%, transparent);
            }
        }
    }

    textarea {
        resize: vertical;
    }

    ::-webkit-search-decoration {
        -webkit-appearance: none;
    }

    button,
    input:where([type="button"], [type="reset"], [type="submit"]),
    ::file-selector-button {
        appearance: button;
    }

    ::-webkit-inner-spin-button,
    ::-webkit-outer-spin-button {
        height: auto;
    }

    [hidden]:where(:not([hidden="until-found"])) {
        display: none !important;
    }
}

/* =================================================================
   1. VARIABLES Y ESTRUCTURA
   ================================================================ */

:root {
    /* Paleta */
    --montero-navy: #091b2c;      /* barras y pie de página */
    --montero-ink: #0b2239;       /* títulos y textos */
    --montero-blue: #2b72b9;      /* azul del logo: enlaces, iconos, detalles */
    --montero-red: #e30613;
    --montero-soft: #f3f6f9;      /* fondo alterno de las secciones */
    --montero-line: #dce4ec;

    /* Único color de acción (cotizar, consultar, enviar) */
    --montero-accent: var(--montero-red);
    --montero-accent-dark: #b8050f;

    /* Espacio vertical de las secciones del inicio */
    --section-pad: 72px;
}

.montero-header {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
}

.montero-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding-inline: 15px;
    box-sizing: border-box;
}

/* =================================================================
   2. BARRA SUPERIOR (TOPBAR)
   ================================================================ */

.montero-topbar {
    background: var(--montero-navy);
    color: #ffffff;
    padding: 6px 0;
}

.montero-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
}

.montero-phones {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.montero-phones a {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
}

.montero-phones .sep {
    color: #3a536b;
    margin-inline: 4px;
}

.montero-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.montero-address {
    color: #93a8bc;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.montero-top-quote {
    background: var(--montero-red);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 0;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-text-desktop { display: inline;
}

.btn-text-mobile { display: none;
}

/* =================================================================
   3. FILA LOGO + BUSCADOR
   ================================================================ */

.montero-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 18px 15px;
}

/* Logo y texto de la empresa */

.montero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.montero-brand img {
    height: 88px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

/* Texto junto al logo */

.montero-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.montero-brand strong {
    color: #0b2239;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
    text-align: center;
}

.badge-repuestos {
    background: var(--montero-blue);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 0;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ==========================================================
   HEADER — BUSCADOR MÁS ANCHO CON LUPA
   ========================================================== */

.montero-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 18px 15px;
}

.montero-search-row {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    max-width: 700px;
    min-width: 0;
    height: 48px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 1px solid #e1e7ee;
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
}

.montero-search-row input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 16px;
    border: 0;
    outline: none;
    border-radius: 0;
    background: #ffffff;
    color: #0b2239;
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
}

.montero-search-row input[type="search"]::placeholder {
    color: #8491a0;
}

.montero-search-row input[type="search"]:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px #2b72b9;
}

/* Botón de lupa integrado al campo */

.montero-search-row button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f3f6f9;
    color: #0b2239;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.montero-search-row button:hover {
    background: #e8eef5;
    color: #2b72b9;
}

.montero-search-row:focus-within {
    border-color: var(--montero-blue);
}

.montero-search-row button i {
    font-size: 18px;
}

/* Buscador en tablets y celulares */

@media (max-width: 900px) {
    .montero-main-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .montero-search-row {
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .montero-main-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .montero-search-row {
        flex: 0 0 auto;
        height: 46px;
    }

    .montero-search-row button {
        flex-basis: 46px;
        width: 46px;
    }
}

/* ==========================================================
   HEADER — REDES SOCIALES A COLOR
   ========================================================== */

.montero-social-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.montero-social-divider .nav-sep {
    color: #d1d5db;
    font-size: 21px;
}

.montero-social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.montero-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

/* Instagram */

.montero-social-links a[aria-label="Instagram"] {
    color: #E4405F;
}

/* Facebook */

.montero-social-links a[aria-label="Facebook"] {
    color: #1877F2;
}

/* Correo */

.montero-social-links a[aria-label="Correo"] {
    color: #64748b;
}

/* WhatsApp */

.montero-social-links a[aria-label="WhatsApp"] {
    color: #25D366;
}

/* Mantener los colores de cada red al pasar el cursor */

.montero-social-links a:hover {
    opacity: 0.78;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .montero-social-divider {
        gap: 9px;
    }

    .montero-social-links {
        gap: 12px;
    }

    .montero-social-links a {
        font-size: 22px;
    }
}

/* ==========================================================
   HEADER — FLECHAS DISCRETAS PARA DESPLAZAMIENTO
   ========================================================== */

.montero-arrow-btn {
    display: none;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 30px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    color: #64748b;
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(11, 34, 57, 0.08);
    cursor: pointer;
    z-index: 5;
    transition: color 0.2s, background 0.2s;
}

.montero-arrow-btn:hover {
    color: #2b72b9;
    background: #f8fafc;
}

@media (max-width: 1024px) {
    .montero-arrow-btn {
        display: flex;
    }

    .montero-nav-scroll,
    .montero-brands-scroll {
        justify-content: flex-start;
        padding-right: 34px;
    }
}

/* =================================================================
   4. NAVEGACIÓN Y REDES SOCIALES
   ================================================================ */

.montero-nav-wrapper {
    position: relative;
    border-top: 1px solid #e5e7eb;
}

.montero-nav-scroll {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow-x: auto;
    padding: 13px 0;
    scrollbar-width: none;
    white-space: nowrap;
}

.montero-nav-scroll::-webkit-scrollbar {
    display: none;
}

.montero-nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}

.montero-nav-links a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.25px;
    transition: color 0.15s;
}

.montero-nav-links a:hover {
    color: var(--montero-blue);
}

/* Separador y redes sociales */

.montero-social-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.montero-social-divider .nav-sep {
    color: #d1d5db;
    font-weight: 300;
    font-size: 20px;
}

.montero-social-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.montero-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 23px;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.montero-social-links a:hover {
    color: var(--montero-blue);
    transform: translateY(-1px);
}

/* Color propio para WhatsApp */

.montero-social-links a[aria-label="WhatsApp"]:hover {
    color: #25D366;
}

/* =================================================================
   5. BANDA DE MARCAS
   ================================================================ */

.montero-brands-wrapper {
    position: relative;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 8px 0;
}

.montero-brands-scroll {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}

.montero-brands-scroll::-webkit-scrollbar {
    display: none;
}

.montero-brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.montero-brand-item img {
    height: 46px;
    max-width: 105px;
    width: auto;
    object-fit: contain;
}

/* =================================================================
   6. BOTONES FLECHA
   ================================================================ */

.montero-arrow-btn {
    display: none;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 0;
    color: #333;
    font-size: 11px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 5;
}

/* =================================================================
   7. RESPONSIVE DEL HEADER
   ================================================================ */

/* Portátiles y tablets horizontales */

@media (max-width: 1100px) {
    .montero-main-row {
        gap: 20px;
    }

    .montero-brand img {
        height: 78px;
    }

    .montero-nav-links {
        gap: 17px;
    }

    .montero-nav-links a {
        font-size: 13px;
    }

    .montero-social-links {
        gap: 10px;
    }

    .montero-address {
        display: none;
    }
}

/* Tablets y pantallas medianas */

@media (max-width: 900px) {
    .montero-main-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .montero-brand {
        flex: 1 1 auto;
    }

    .montero-search-row {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .montero-nav-scroll,
    .montero-brands-scroll {
        justify-content: flex-start;
        padding-right: 40px;
    }

    .montero-arrow-btn {
        display: flex;
    }

    .montero-nav-links {
        gap: 20px;
    }

    .montero-nav-links a {
        font-size: 14px;
    }

    .montero-brand-item img {
        height: 44px;
    }
}

/* Celulares */

@media (max-width: 600px) {
    .montero-topbar {
        padding: 8px 0;
    }

    .montero-topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 12px;
    }

    .montero-phones {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .montero-phones a {
        font-size: 12px;
    }

    .montero-topbar-right {
        justify-content: center;
        gap: 8px;
    }

    .montero-top-quote {
        font-size: 11px;
        padding: 6px 10px;
    }

    .btn-text-desktop {
        display: none;
    }

    .btn-text-mobile {
        display: inline;
    }

    .montero-main-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 12px;
    }

    .montero-brand {
        justify-content: center;
        gap: 10px;
    }

    .montero-brand img {
        height: 66px;
        max-width: 135px;
    }

    .montero-brand strong {
        font-size: 18px;
        letter-spacing: -0.3px;
    }

    .badge-repuestos {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .montero-search-row {
        flex: 0 0 auto;
        height: 46px;
    }

    .montero-search-row input[type="search"] {
        padding: 0 10px;
        font-size: 13px;
    }

    .montero-search-row button {
        gap: 5px;
        padding: 0 12px;
        font-size: 13px;
    }

    .montero-nav-scroll {
        gap: 18px;
        padding: 12px 38px 12px 0;
    }

    .montero-nav-links {
        gap: 18px;
    }

    .montero-nav-links a {
        font-size: 13px;
    }

    /* En móviles, las redes siguen a la derecha del menú */

    .montero-social-divider {
        gap: 10px;
    }

    .montero-social-links {
        gap: 12px;
    }

    .montero-social-links a {
        font-size: 22px;
    }

    .montero-brands-wrapper {
        padding: 6px 0;
    }

    .montero-brands-scroll {
        gap: 20px;
        padding: 8px 35px 8px 0;
    }

    .montero-brand-item img {
        height: 40px;
        max-width: 85px;
    }
}

/* Celulares muy pequeños */

@media (max-width: 380px) {
    .montero-brand {
        gap: 7px;
    }

    .montero-brand img {
        height: 55px;
        max-width: 105px;
    }

    .montero-brand strong {
        font-size: 16px;
    }

    .badge-repuestos {
        font-size: 9px;
        padding: 3px 5px;
    }

    .montero-phones a {
        font-size: 11px;
    }

    .montero-nav-links {
        gap: 15px;
    }

    .montero-nav-links a {
        font-size: 12px;
    }

    .montero-social-links {
        gap: 10px;
    }

    .montero-social-links a {
        font-size: 21px;
    }
}

/* =================================================================
   ESTILOS DEL FOOTER - SOC. MONTERO LTDA.
   ================================================================ */

.montero-footer {
    background-color: var(--montero-navy, #091b2c);
    color: #ffffff;
    margin-top: 40px;
    padding: 30px 0 18px;
    border-top: 3px solid var(--montero-blue, #2b72b9);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Tres columnas: información, navegación y botón de WhatsApp */

.montero-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    align-items: start;
    gap: 28px 40px;
}

/* Información de la tienda */

.montero-footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.montero-footer-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
}

/* El icono ocupa su propia columna y se alinea con la PRIMERA línea del
   texto, aunque el texto ocupe varias líneas. */

.montero-footer-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #93a8bc;
    font-size: 13.5px;
    line-height: 1.5;
}

.montero-footer-hours-row {
    display: block;
}

.montero-footer-hours-row + .montero-footer-hours-row {
    margin-top: 6px;
}

.montero-footer-text i {
    flex: 0 0 16px;
    width: 16px;
    color: var(--montero-blue, #2b72b9);
    line-height: inherit;
    text-align: center;
}

/* Navegación */

.montero-footer-heading {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.montero-footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.montero-footer-nav a {
    display: inline-block;
    padding: 5px 0;
    color: #93a8bc;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.montero-footer-nav a:hover,
.montero-footer-nav a:focus-visible {
    color: #ffffff;
}

/* Botón de cotización por WhatsApp */

.montero-footer-action {
    display: flex;
    justify-content: flex-end;
}

.montero-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 0;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.15s ease;
}

.montero-footer-btn:hover {
    background: #20ba5a;
    transform: translateY(-1px);
}

.montero-footer-btn i {
    font-size: 16px;
}

/* Franja inferior: derechos y enlaces legales */

.montero-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.montero-footer-copy,
.montero-footer-legal {
    margin: 0;
    font-size: 12px;
    color: #6c849b;
}

.montero-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}

.montero-footer-legal a {
    color: #6c849b;
    text-decoration: none;
}

.montero-footer-legal a:hover,
.montero-footer-legal a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

/* Acceso al panel: presente pero muy discreto */

.montero-footer-legal .montero-footer-admin {
    color: #4f6780;
    font-size: 11px;
}

.montero-footer-admin i {
    margin-right: 3px;
    font-size: 10px;
}

/* =================================================================
   RESPONSIVE / ADAPTABILIDAD EN MÓVILES
   ================================================================ */

@media (max-width: 900px) {
    .montero-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .montero-footer-info {
        grid-column: 1 / -1;
    }

    .montero-footer-action {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .montero-footer {
        padding: 24px 0 16px;
        margin-top: 30px;
    }

    .montero-footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .montero-footer-nav a {
        padding: 8px 0;
    }

    .montero-footer-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .montero-footer-action {
        justify-content: stretch;
    }

    .montero-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================
   INICIO — ESTILOS GENERALES
========================================================== */

.home-extra {
    padding: 65px 20px;
    background-color: #ffffff;
}

.home-extra-container,
.home-categories-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================
   1. BANNER PRINCIPAL / HERO
========================================================== */

.home-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0b2239;
}

.home-hero-track {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.home-hero-slide {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.home-hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-hero-slide.is-active {
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-hero-slide > a {
    display: block;
}

.home-hero-slide picture {
    display: block;
    width: 100%;
}

.home-hero-slide picture img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.home-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: rgba(11, 34, 57, 0.72);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.home-hero-arrow:hover {
    background-color: #2B72B9;
}

.home-hero-prev {
    left: 20px;
}

.home-hero-next {
    right: 20px;
}

.home-hero-dots {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.home-hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 0;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-hero-dot.is-active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* ==========================================================
   2. CATEGORÍAS VISUALES
========================================================== */

/* Contenedor principal de la sección */

.home-categories {
    padding: 10px 5% 40px;
}

/* Encabezado con espaciado controlado */

/* Grilla Responsiva (Múltiples columnas automáticas) */

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en pantallas grandes */
    gap: 20px;
}

/* Adaptación para pantallas medianas (Laptops / Tablets grandes) */

@media (max-width: 1024px) {
    .home-categories-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    }
}

/* Adaptación para tablets y celulares grandes (2 columnas) */

@media (max-width: 768px) {
    .home-categories-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas obligatorias */
    }
}

/* Celulares: 2 columnas, tarjetas más compactas */

@media (max-width: 480px) {
    .home-categories {
        padding: 10px 4% 30px;
    }

    .home-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .home-category-card {
        height: auto;
        aspect-ratio: 1 / 1;   /* tarjetas cuadradas, se ven mejor en 2 columnas */
        min-height: 0;
    }

    .category-overlay {
        padding: 10px;
    }

    .category-overlay h3 {
        font-size: var(--category-title-size, 0.85rem);
        letter-spacing: 0.3px;
    }

    .category-desc {
        font-size: 0.65rem;
        margin-top: 4px;
    }

    .category-desc {
    display: none;
    }
}

/* Tarjeta individual */

.home-category-card {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 0;
    background: #0b2239;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Imagen de fondo de la tarjeta */

.home-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-category-card:hover img {
    transform: scale(1.06);
}

/* Capa de información superpuesta */

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado sutil abajo para leer el título cómodamente al estar inactivo */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: background 0.35s ease, padding 0.35s ease;
}

/* Título de la categoría */

.category-overlay h3 {
    width: 100%;
    margin: 0;
    /* inicio.js reduce --category-title-size en todas las tarjetas a la vez
       hasta que la palabra más larga quepa */
    font-size: var(--category-title-size, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
}

/* Descripción (Oculta por defecto) */

.category-desc {
    margin: 10px 0 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #f1f5f9;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* EFECTO HOVER: Oscurece toda la foto por completo y centra el texto con la descripción limpia */

.home-category-card:hover .category-overlay {
    background: rgba(11, 34, 57, 0.90); /* Fondo sólido azul oscuro elegante sobre toda la foto */
    justify-content: center; /* Centra verticalmente el título y la descripción */
}

.home-category-card:hover .category-desc {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   3. PRODUCTOS DESTACADOS Y OFERTAS
========================================================== */

/* Cuadrícula de productos */

.home-product-grid {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.home-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(11, 34, 57, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-product-card:hover {
    transform: translateY(-4px);
    border-color: #cfe0f1;
    box-shadow: 0 12px 28px rgba(11, 34, 57, 0.12);
}

/* Imagen del producto: proporción fija y fondo suave */

.home-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.home-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Funde el fondo blanco de las fotos con el fondo de la tarjeta */
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.04);
}

.home-product-no-image {
    color: #b8c6d6;
    font-size: 44px;
}

/* Sin foto: el logo, discreto y centrado */

.home-product-image img.home-product-placeholder {
    width: 70%;
    height: 70%;
    opacity: 0.55;
    mix-blend-mode: normal;
}

.home-product-card:hover .home-product-image img.home-product-placeholder {
    transform: none;
}

/* Varias fotos: se ve una y se cambia con las flechas */

.home-product-image.has-slides .home-product-slide {
    display: none;
}

.home-product-image.has-slides .home-product-slide.is-active {
    display: block;
}

.home-slide-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    padding: 0;
    border: 1px solid rgba(11, 34, 57, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0b2239;
    font-size: 20px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
}

.home-slide-btn[hidden] {
    display: none;
}

.home-slide-prev { left: 8px; }
.home-slide-next { right: 8px; }

.home-slide-btn:hover,
.home-slide-btn:focus-visible {
    background: #fff;
    border-color: #2b72b9;
}

.home-slide-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.home-slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(11, 34, 57, 0.25);
}

.home-slide-dot.is-active {
    background: #2b72b9;
}

/* Etiqueta de oferta (con el porcentaje de descuento) */

.home-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 11px;
    border-radius: 0;
    background-color: #d93636;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

/* ----------------------------------------------------------------
   Información. Los textos tienen un máximo de líneas, todas las filas de
   la cuadrícula miden lo mismo y el precio y el botón quedan siempre
   pegados abajo, tenga la tarjeta mucha o poca información.
   ---------------------------------------------------------------- */

.home-product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 16px;
}

/* Marca (o tipo) y código: una sola línea */

.home-product-eyebrow {
    margin: 0;
    overflow: hidden;
    color: #2b72b9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Nombre: 2 líneas como máximo */

.home-product-name {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #0b2239;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Texto destacado o descripción: 2 líneas como máximo */

.home-product-blurb {
    min-width: 0;
}

.home-product-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #5b6b7c;
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-subtitle {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    overflow: hidden;
    padding: 5px 9px;
    border-radius: 0;
    background-color: #e8f5ee;
    color: #14633a;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
}

.home-product-subtitle i {
    flex: none;
    margin-top: 2px;
    font-size: 12px;
}

.home-product-subtitle span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Precio: una sola línea (en oferta: precio nuevo y precio anterior tachado).
   El margen automático empuja precio y botón al fondo de la tarjeta. */

.home-product-price {
    display: flex;
    align-items: baseline;
    gap: 0 8px;
    margin: auto 0 4px;
    padding-top: 6px;
    min-height: 1.5em;
    overflow: hidden;
    color: #0b2239;
    white-space: nowrap;
}

.home-product-price-from {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.home-product-price-amount {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.home-product-price-text {
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    text-overflow: ellipsis;
}

.home-product-old-price {
    color: #7b8794;
    font-size: 13px;
    font-weight: 400;
    text-decoration: line-through;
}

/* Botón de consulta por WhatsApp */

.home-product-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    padding: 6px 12px;
    border: 0;
    border-radius: 0;
    background-color: #128c4a;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.home-product-button i {
    flex: none;
    font-size: 18px;
}

/* El texto del botón (editable en el panel) ocupa 2 líneas como máximo */

.home-product-button span {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-button:hover {
    background-color: #0d6b38;
    color: #ffffff;
}

/* Mensaje cuando no existen productos */

/* Botones generales de las secciones */

/* ==========================================================
   4. INICIO — NUESTRA HISTORIA
   Imagenes, galería y caja de texto
========================================================== */

.home-story {
    width: 100%;
    min-width: 0;
    padding: 56px 0;
    background-color: #f9fafb;
}

/* Contenedor general */

.home-story .home-extra-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Dos columnas de igual altura */

.home-story-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 48px;
    min-width: 0;
}

/* Columna de la fotografía */

.home-story-media {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

/* El contenedor determina el tamaño, no la fotografía */

.home-story-slider {
    position: relative;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 320px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Todas las fotos ocupan exactamente el mismo espacio */

.home-story-image {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.home-story-image.is-active {
    display: block;
}

/* Flechas cuadradas y translúcidas */

.home-story .slider-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.65);
    color: #1f2937;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
}

.home-story .slider-btn:hover {
    background: rgba(255, 255, 255, 0.98);
}

.home-story .prev-btn {
    left: 12px;
}

.home-story .next-btn {
    right: 12px;
}

/* Indicadores del carrusel */

.home-story .slider-dots {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.home-story .slider-dots .dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.home-story .slider-dots .dot.active {
    background: #fff;
}

/* Cuadro azul: ocupa la altura completa de la fila */

.home-story-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    box-sizing: border-box;
    padding: 40px;
    border-radius: 0;
    background-color: #2B72B9;
    color: #fff;
}

.home-story-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.home-story-copy p {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.home-story-copy p:last-child {
    margin-bottom: 0;
}

.home-story-copy h3 {
    margin-bottom: 18px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.home-story-copy .home-story-text {
    margin: 0;
    line-height: 1.8;
}

/* Botón opcional */

/* Tablets: proporción más horizontal */

@media (min-width: 601px) and (max-width: 1024px) {
    .home-story-layout {
        gap: 24px;
    }

    .home-story-slider {
        aspect-ratio: 16 / 10;
    }

    .home-story-copy {
        padding: 28px;
    }
}

/* Celulares: foto arriba y texto debajo */

@media (max-width: 600px) {
    .home-story {
        padding: 40px 0;
    }

    .home-story .home-extra-container {
        padding: 0 14px;
    }

    .home-story-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .home-story-slider {
        width: 100%;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .home-story-copy {
        min-height: 0;
        padding: 28px 24px;
    }

    .home-story-copy h2 {
        font-size: 27px;
    }

    .home-story-copy p {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* ==========================================================
   5. INICIO — UBICACIÓN, DIRECCIÓN 
========================================================== */

.home-location {
    width: 100%;
    min-width: 0;
    padding: 64px 0;
    border-top: 1px solid #f3f4f6;
    background: #fff;
    box-sizing: border-box;
}

.home-location-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* --- Título y descripción --- */

/* --- Contenedor de información y mapa --- */

.home-location-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* --- Información de la sucursal --- */

.home-location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    min-width: 0;
    padding: 32px;
    box-sizing: border-box;
}

.home-location-detail {
    width: 100%;
}

.home-location-label {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}

.home-location-address {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.home-location-city {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* --- Botón Cómo llegar --- */

.home-location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    max-width: 100%;
    padding: 13px 22px;
    border: none;
    border-radius: 0;
    background: #2B72B9;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
}

.home-location-button:hover {
    background: #245f9b;
    color: #fff;
}

.home-location-button:focus-visible {
    outline: 2px solid #0b2239;
    outline-offset: 3px;
}

/* --- Mapa de Google --- */

.home-location-map {
    position: relative;
    min-width: 0;
    min-height: 420px;
    background: #f3f4f6;
}

.home-location-map iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
}

/* --- Tablets --- */

@media (max-width: 900px) {
    .home-location-container {
        padding: 0 20px;
    }

    .home-location-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-location-info {
        padding: 30px;
    }

    .home-location-map {
        min-height: 360px;
    }
}

/* --- Celulares --- */

@media (max-width: 600px) {
    .home-location {
        padding: 42px 0;
    }

    .home-location-container {
        padding: 0 14px;
    }

    .home-location-info {
        gap: 24px;
        padding: 24px 20px;
    }

    .home-location-map {
        min-height: 300px;
    }

    .home-location-button {
        width: 100%;
    }
}

/* ==========================================================
   5. INICIO — AJUSTE DE HORARIO Y DIRECCIÓN
   Mantiene las proporciones originales del mapa
========================================================== */

/* Dar un poco más de espacio a la información */

.home-location-info {
    gap: 28px;
    padding: 32px;
}

/* Horario más grande y legible */

/* Destacar el nombre de cada bloque */

.home-location-info .home-location-label {
    color: #2B72B9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

/* Dirección visible, pero secundaria al horario */

.home-location-info .home-location-address {
    font-size: 16px;
    line-height: 1.5;
}

/* Horario adaptado a celulares */

@media (max-width: 600px) {
    .home-location-info {
        gap: 24px;
        padding: 24px 20px;
    }
}

/* ==========================================================
   6. INICIO —CONTACTO
========================================================== */

.home-contact {
    width: 100%;
    min-width: 0;
    padding: 64px 0;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.home-contact .home-extra-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* --- Encabezado --- */

/* --- Distribución de tarjetas --- */

.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* --- Tarjetas individuales --- */

.home-contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.home-contact-card:hover {
    border-color: #2B72B9;
}

/* --- Iconos --- */

.home-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    background: #edf4fb;
    color: #2B72B9;
    font-size: 21px;
}

/* --- Títulos de tarjetas --- */

.home-contact-card h3 {
    margin: 0 0 16px;
    color: #0b2239;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

/* --- Teléfonos, WhatsApp y correo --- */

.home-contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.home-contact-links a {
    color: #2B72B9;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-contact-links a:hover {
    color: #0b2239;
    text-decoration: underline;
}

/* --- Descripción de cada tarjeta --- */

.home-contact-note {
    margin: 20px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

/* --- Botones inferiores --- */

.home-contact-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.home-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 24px;
    border: 1px solid #2B72B9;
    border-radius: 0;
    background: #2B72B9;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease,
                border-color 0.2s ease;
}

.home-contact-button:hover {
    border-color: #245f9b;
    background: #245f9b;
    color: #fff;
}

.home-contact-button-whatsapp {
    border-color: #0b2239;
    background: #0b2239;
}

.home-contact-button-whatsapp:hover {
    border-color: #173b5c;
    background: #173b5c;
}

/* --- Tablets --- */

@media (max-width: 900px) {
    .home-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-contact-card {
        padding: 26px;
    }

    .home-contact-card:last-child {
        grid-column: 1 / -1;
    }
}

/* --- Celulares --- */

@media (max-width: 600px) {
    .home-contact {
        padding: 42px 0;
    }

    .home-contact .home-extra-container {
        padding: 0 14px;
    }

    .home-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .home-contact-card,
    .home-contact-card:last-child {
        grid-column: auto;
        padding: 24px;
    }

    .home-contact-cta {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .home-contact-button {
        width: 100%;
    }
}

/* ==========================================================
   7. ADAPTACIÓN A TABLETS
========================================================== */

@media (max-width: 1024px) {
    .home-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .home-story-layout {
        gap: 30px;
    }

    .home-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================
   8. ADAPTACIÓN A CELULARES
========================================================== */

@media (max-width: 640px) {
    /* Espaciado general */

    .home-extra {
        padding: 42px 16px;
    }

    .home-categories {
        padding: 38px 12px;
    }

    /* Banner principal */

    .home-hero-arrow {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .home-hero-prev {
        left: 7px;
    }

    .home-hero-next {
        right: 7px;
    }

    .home-hero-dots {
        bottom: 8px;
        gap: 7px;
    }

    .home-hero-dot {
        width: 8px;
        height: 8px;
    }

    /* Categorías */

    /* Productos y ofertas */

    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-product-image {
        padding: 10px;
    }

    .home-product-info {
        gap: 6px;
        padding: 12px;
    }

    .home-product-eyebrow {
        font-size: 10px;
    }

    .home-product-name {
        font-size: 14.5px;
    }

    .home-product-desc {
        font-size: 12px;
        line-height: 1.4;
    }

    .home-product-subtitle {
        padding: 4px 7px;
        font-size: 11.5px;
    }

    .home-product-price-amount {
        font-size: 18px;
    }

    .home-product-price-text {
        font-size: 13px;
    }

    .home-product-old-price {
        font-size: 11px;
    }

    .home-product-button {
        height: 46px;
        padding: 4px 6px;
        gap: 6px;
        font-size: 12px;
    }

    .home-product-button i {
        font-size: 16px;
    }

    .home-product-badge {
        top: 8px;
        left: 8px;
        padding: 5px 7px;
        font-size: 10px;
    }

    /* Historia */

    .home-story-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-story-copy h2 {
        margin-bottom: 15px;
        font-size: 28px;
    }

    .home-story-copy p {
        font-size: 14px;
        line-height: 1.8;
    }

    .home-story-image {
        max-height: 280px;
    }

    /* Ubicación y mapa */

    .home-location-info {
        padding: 22px;
    }

    .home-location-info h3 {
        font-size: 17px;
    }

    .home-location-info p {
        font-size: 14px;
    }

    .home-location-map,
    .home-location-map iframe {
        min-height: 280px;
    }

    /* Contacto */

    .home-contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-contact-card {
        padding: 22px;
    }

    .home-contact-card h3 {
        margin-bottom: 15px;
        font-size: 17px;
    }

    .home-contact-card > a {
        font-size: 14px;
    }

    .home-contact-cta {
        flex-direction: column;
        align-items: stretch;
        margin-top: 25px;
    }

    .home-contact-cta > a {
        width: 100%;
        padding: 12px 16px;
    }
}

/* ==========================================================
   9. ACCESIBILIDAD Y MOVIMIENTO REDUCIDO
========================================================== */

.home-hero-arrow:focus-visible,
.home-hero-dot:focus-visible,
.home-product-button:focus-visible,
.home-contact-card a:focus-visible,
.home-contact-cta a:focus-visible {
    outline: 3px solid var(--montero-blue);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-slide,
    .home-hero-arrow,
    .home-hero-dot,
    .home-category-card img,
    .home-product-card,
    .home-product-image img,
    .home-product-button,
    .home-contact-card,
    .home-contact-cta > a {
        transition: none;
    }
}

/* ==========================================================
   10. CATÁLOGO PÚBLICO: REPUESTOS Y ACCESORIOS
========================================================== */

.catalog-page {
    background: #f8f9fa;
    padding: 56px 24px 72px;
    color: #0b2239;
}

.catalog-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Buscador */

/* Encabezado de resultados */

.catalog-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dfe4e9;
}

.catalog-results-heading h2 {
    margin: 0;
    font-size: 1.35rem;
}

.catalog-results-heading span {
    color: #65717d;
    font-size: 0.9rem;
}

/* Tarjetas de productos */

/* Sin resultados */

.catalog-empty {
    padding: 48px 24px;
    border: 1px solid #e1e5e9;
    background: #fff;
    text-align: center;
}

.catalog-empty > i {
    color: #2B72B9;
    font-size: 2rem;
}

.catalog-empty h2 {
    margin: 18px 0 10px;
    font-size: 1.35rem;
}

.catalog-empty p {
    margin: 0 0 22px;
    color: #65717d;
    line-height: 1.6;
}

.catalog-empty-button,
.catalog-empty-whatsapp {
    display: inline-block;
    margin: 4px;
    padding: 12px 18px;
    border: 1px solid #0b2239;
    border-radius: 0;
    background: #0b2239;
    color: #fff;
    text-decoration: none;
}

.catalog-empty-button:hover,
.catalog-empty-whatsapp:hover {
    background: #2B72B9;
    border-color: #2B72B9;
    color: #fff;
}

/* Adaptación a pantallas medianas */

/* Adaptación a móviles */

@media (max-width: 700px) {
    .catalog-page {
        padding: 38px 16px 48px;
    }
}

/* Tarjeta */

/* Fotografía y etiqueta de oferta */

/* Contenido */

/* Precios */

/* Botón de WhatsApp a todo el ancho */

/* ==========================================================
   COTIZACIÓN — PÁGINA Y FORMULARIO
========================================================== */

.quote-page {
    background: #f4f6f8;
    padding: 56px 20px 72px;
    color: #0b2239;
}

.quote-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.quote-heading {
    margin-bottom: 32px;
}

.quote-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #2B72B9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.quote-heading h1 {
    margin: 0 0 12px;
    color: #0b2239;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 800;
}

.quote-heading p {
    max-width: 650px;
    margin: 0;
    color: #596777;
    line-height: 1.7;
}

.quote-form {
    background: #fff;
    border: 1px solid #dce3e9;
    padding: 32px;
}

.quote-section + .quote-section {
    border-top: 1px solid #e2e7ec;
    margin-top: 30px;
    padding-top: 28px;
}

.quote-section h2 {
    margin: 0 0 22px;
    color: #0b2239;
    font-size: 21px;
    font-weight: 800;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
}

.quote-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.quote-field-full {
    grid-column: 1 / -1;
}

.quote-field label {
    color: #23384c;
    font-size: 14px;
    font-weight: 700;
}

.quote-optional {
    color: #74808c;
    font-size: 12px;
    font-weight: 400;
}

.quote-field input,
.quote-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd4dd;
    border-radius: 0;
    background: #fff;
    color: #0b2239;
    font: inherit;
    font-size: 14px;
}

.quote-field input {
    min-height: 46px;
}

.quote-field textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.quote-field input:focus,
.quote-field textarea:focus {
    outline: 2px solid rgba(43, 114, 185, 0.2);
    border-color: #2B72B9;
}

.quote-field input[type="file"] {
    padding: 10px;
    background: #f8fafc;
}

.quote-help {
    color: #687787;
    font-size: 12px;
    line-height: 1.6;
}

.quote-submit-area {
    margin-top: 30px;
}

.quote-submit-area p {
    margin: 0 0 16px;
    color: #687787;
    font-size: 12px;
}

.quote-submit-button {
    display: block;
    width: 100%;
    padding: 15px 22px;
    border: 0;
    border-radius: 0;
    background: #2B72B9;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quote-submit-button:hover {
    background: #0b2239;
}

.quote-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid;
    line-height: 1.6;
}

.quote-alert-error {
    border-color: #d9a0a0;
    background: #fff4f4;
    color: #8a2424;
}

.quote-alert-success {
    border-color: #9bc9ad;
    background: #f0faf3;
    color: #205d35;
}

@media (max-width: 640px) {
    .quote-page {
        padding: 36px 14px 48px;
    }

    .quote-form {
        padding: 22px 16px;
    }

    .quote-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .quote-field-full {
        grid-column: auto;
    }

    .quote-section h2 {
        font-size: 19px;
    }
}

/* ==========================================================
   SEGURIDAD DEL FORMULARIO DE COTIZACIÓN
========================================================== */

.quote-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ==========================================================
   TALLER — ESTILOS GENERALES
========================================================== */

.taller-page {
    --taller-azul-oscuro: #0b2239;
    --taller-azul: #2b72b9;
    --taller-fondo: #f3f6f9;
    --taller-texto: #34465a;
    color: var(--taller-azul-oscuro);
    background: #fff;
}

.taller-page *,
.taller-page *::before,
.taller-page *::after {
    box-sizing: border-box;
}

.taller-container {
    width: min(1160px, 90%);
    margin-inline: auto;
}

.taller-page h1,
.taller-page h2,
.taller-page h3,
.taller-page p {
    margin-top: 0;
}

.taller-page h1,
.taller-page h2,
.taller-page h3 {
    color: var(--taller-azul-oscuro);
    line-height: 1.2;
}

.taller-page p {
    color: var(--taller-texto);
    line-height: 1.75;
}

.taller-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--taller-azul);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.5;
}

/* ==========================================================
   TALLER — VARIABLES Y BASE
   ========================================================== */

:root {
    --taller-azul-oscuro: #0b2239;
    --taller-azul: #2b72b9;
    --taller-azul-hover: #225f9d;
    --taller-fondo: #f3f6f9;
    --taller-texto: #26384a;
    --taller-borde: #dce4ec;
    --taller-blanco: #ffffff;
}

/* Evita desbordamientos en las secciones del taller */

.taller-portada,
.taller-servicios,
.taller-contacto-final {
    box-sizing: border-box;
}

.taller-portada *,
.taller-servicios *,
.taller-contacto-final * {
    box-sizing: border-box;
}

/* ==========================================================
   TALLER — CONTENEDOR GENERAL
   ========================================================== */

.taller-container {
    width: min(1180px, 92%);
    margin-right: auto;
    margin-left: auto;
}

/* ==========================================================
   TALLER — ETIQUETAS Y BOTONES
   ========================================================== */

.taller-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    line-height: 1.5;
}

.taller-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--taller-azul);
    border-radius: 0;
    background: var(--taller-azul);
    color: var(--taller-blanco);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease,
                border-color 0.2s ease;
}

.taller-whatsapp:hover {
    border-color: var(--taller-azul-hover);
    background: var(--taller-azul-hover);
    color: var(--taller-blanco);
}

/* ==========================================================
   TALLER — PORTADA DIVIDIDA Y GALERÍA DESLIZANTE
   ========================================================== */

.taller-portada {
    padding: 42px 0;
    background: var(--taller-fondo);
}

.taller-portada-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--taller-azul-oscuro);
    color: var(--taller-blanco);
}

/* Texto centrado en el panel, horizontal y verticalmente */

.taller-portada-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(26px, 4vw, 54px);
    text-align: center;
}

.taller-portada-texto .taller-eyebrow {
    margin-bottom: 18px;
    color: #a9ccee;
}

.taller-portada-texto h1 {
    max-width: 650px;
    margin: 0 0 28px;
    color: var(--taller-blanco);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
}

.taller-portada-texto p {
    max-width: 520px;
    margin: 0 auto 25px;
    color: #e1e9f1;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* El botón conserva su tamaño natural y no se pega al fondo del panel */

.taller-portada-texto .taller-whatsapp {
    display: inline-flex;
    width: auto;
    min-width: 260px;
    max-width: 100%;
    margin-top: 0;
}

/* Galería con proporción fija: todas las fotos ocupan el mismo cuadro, así
   que al cambiar de foto nada se mueve. Las fotos se recortan para llenarlo. */

.taller-portada-galeria {
    position: relative;
    min-width: 0;
    height: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dce4ec;
}

.taller-portada-slides {
    position: absolute;
    inset: 0;
}

/* Las fotos se funden entre sí en vez de cambiar de golpe */

.taller-portada-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.taller-portada-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.taller-portada-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.taller-portada-slide figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 36px 18px 17px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: var(--taller-blanco);
    font-size: 0.95rem;
    font-weight: 700;
}

.taller-slider-flecha {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0;
    background: rgba(11, 34, 57, 0.82);
    color: var(--taller-blanco);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.taller-slider-flecha:hover {
    background: var(--taller-azul);
}

.taller-slider-anterior {
    left: 12px;
}

.taller-slider-siguiente {
    right: 12px;
}

.taller-slider-puntos {
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 70px;
}

.taller-slider-punto {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid var(--taller-blanco);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.taller-slider-punto.is-active {
    background: var(--taller-blanco);
}

.taller-portada-sin-foto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 390px;
    padding: 30px;
    color: var(--taller-azul-oscuro);
    text-align: center;
}

.taller-portada-sin-foto span {
    font-size: 1.3rem;
    font-weight: 700;
}

.taller-portada-sin-foto p {
    max-width: 300px;
    line-height: 1.6;
}

/* ==========================================================
   TALLER — ENCABEZADOS DE SECCIÓN
   ========================================================== */

.taller-section-heading {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 0 auto 12px;
    text-align: center;
}

.taller-section-heading h2 {
    margin: 0 0 15px;
    color: var(--taller-azul-oscuro);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.taller-section-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--taller-texto);
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================================
   TALLER — SECCIÓN DE CATEGORÍAS
   Las tres tarjetas se muestran en una sola cuadrícula.
   ========================================================== */

.taller-servicios {
    padding: 80px 0;
    background: var(--taller-blanco);
}

/*
 * El HTML actual tiene cada .taller-categoria alrededor
 * de una tarjeta. display: contents permite que las tarjetas
 * participen en la cuadrícula común del contenedor.
 */

.taller-servicios > .taller-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.taller-servicios .taller-section-heading {
    width: 100%;
    margin-bottom: 12px;
}

.taller-servicios .taller-categoria {
    display: contents;
}

/* Oculta el encabezado antiguo separado de cada tarjeta */

/* Cada tarjeta ocupa una columna */

.taller-servicios .taller-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--taller-borde);
    border-radius: 0;
    background: var(--taller-blanco);
    box-shadow: 0 6px 20px rgba(11, 34, 57, 0.07);
}

/* Imagen rectangular, sin deformar */

.taller-servicios .taller-card > .servicio-imagen {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #edf2f6;
    object-fit: cover;
    object-position: center;
}

/* Contenido de la tarjeta */

.taller-servicios .taller-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 22px;
}

.taller-servicios .taller-card-content > p {
    margin: 0 0 22px;
    color: var(--taller-texto);
    font-size: 15px;
    line-height: 1.7;
}

.taller-servicios .taller-card-content .taller-whatsapp {
    align-self: flex-start;
    margin-top: auto;
}

/* Si no hay categorías publicadas */

/* ==========================================================
   TALLER — LLAMADO FINAL A CONTACTAR
   ========================================================== */

.taller-contacto-final {
    margin-top: 85px;
    padding: 52px 30px;
    border-top: 5px solid #4b94d6;
    background: var(--taller-azul-oscuro);
    text-align: center;
}

.taller-contacto-final .taller-eyebrow {
    color: #a9d6ff;
}

.taller-contacto-final h2 {
    max-width: 760px;
    margin: 0 auto 15px;
    color: var(--taller-blanco);
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.25;
}

.taller-contacto-final p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: #e1eaf3;
    line-height: 1.7;
}

.taller-contacto-final .taller-whatsapp {
    border-color: var(--taller-blanco);
    background: var(--taller-blanco);
    color: var(--taller-azul-oscuro);
}

.taller-contacto-final .taller-whatsapp:hover {
    border-color: #dbeafa;
    background: #dbeafa;
    color: var(--taller-azul-oscuro);
}

/* ==========================================================
   TALLER — IMÁGENES DE SERVICIOS FUERA DE LAS TARJETAS
   Regla general para otros lugares que utilicen esta clase.
   ========================================================== */

.servicio-imagen {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: var(--taller-blanco);
}

/* ==========================================================
   TALLER — TABLET
   ========================================================== */

@media (max-width: 900px) {
    .taller-servicios {
        padding: 65px 0;
    }

    .taller-servicios > .taller-container {
        gap: 16px;
    }

    .taller-servicios .taller-card-content {
        padding: 17px;
    }

    .taller-servicios .taller-card-content .taller-whatsapp {
        width: 100%;
    }
}

/* ==========================================================
   TALLER — MÓVILES
   ========================================================== */

@media (max-width: 640px) {
    .taller-container {
        width: 92%;
    }

    .taller-portada {
        padding: 22px 0;
    }

    .taller-portada-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .taller-portada-texto {
        padding: 30px 24px;
    }

    .taller-portada-texto h1 {
        font-size: clamp(1.7rem, 7vw, 2.25rem);
    }

    .taller-portada-texto .taller-whatsapp {
        min-width: 0;
        width: 100%;
    }

    .taller-portada-sin-foto {
        min-height: 270px;
    }

    .taller-servicios {
        padding: 48px 0;
    }

    .taller-section-heading {
        margin-bottom: 12px;
        text-align: left;
    }

    .taller-section-heading h2 {
        font-size: 28px;
    }

    .taller-section-heading p {
        margin-left: 0;
    }

    .taller-servicios > .taller-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .taller-servicios .taller-card {
        width: 100%;
    }

    .taller-servicios .taller-card > .servicio-imagen {
        aspect-ratio: 4 / 3;
        height: auto;
        object-fit: cover;
    }

    .taller-servicios .taller-card-content {
        padding: 20px;
    }

    .taller-servicios .taller-card-content .taller-whatsapp {
        width: auto;
    }

    .taller-contacto-final {
        margin-top: 55px;
        padding: 38px 22px;
        text-align: left;
    }

    .taller-contacto-final h2 {
        font-size: 27px;
    }

    .taller-contacto-final p {
        margin-left: 0;
    }
}

/* ==========================================================
   TALLER — REDUCIR ANIMACIONES SI EL USUARIO LO PREFIERE
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .taller-whatsapp {
        transition: none;
    }
}

/* ==========================================================
   TALLER — CONTACTO FINAL A PANTALLA COMPLETA
   ========================================================== */

.taller-servicios > .taller-container > .taller-contacto-final {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 50px 0 0;
    padding: 60px 24px;
    border: 0;
    border-top: 5px solid #4b94d6;
    border-radius: 0;
    background: var(--taller-azul-oscuro);
    box-shadow: none;
    text-align: center;
}

.taller-servicios > .taller-container > .taller-contacto-final h2 {
    max-width: 760px;
    margin: 0 auto 15px;
    color: #fff;
}

.taller-servicios > .taller-container > .taller-contacto-final p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: #e1eaf3;
}

.taller-servicios > .taller-container > .taller-contacto-final .taller-whatsapp {
    margin: 0 auto;
    border: 1px solid #fff;
    border-radius: 0;
    background: #fff;
    color: var(--taller-azul-oscuro);
}

.taller-servicios > .taller-container > .taller-contacto-final .taller-whatsapp:hover {
    border-color: #dbeafa;
    background: #dbeafa;
    color: var(--taller-azul-oscuro);
}

@media (max-width: 640px) {
    .taller-servicios > .taller-container > .taller-contacto-final {
        margin-top: 28px;
        padding: 42px 22px;
    }
}

/* ==========================================================
   TALLER — TÍTULO Y LISTA DE TRABAJOS EN LAS TARJETAS
   ========================================================== */

.taller-servicios .taller-card-title {
    width: 100%;
    margin: 0 0 18px;
    color: var(--taller-azul-oscuro, #0b2239);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
}

/* Lista de trabajos */

.taller-servicios .taller-trabajos-lista {
    width: 100%;
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
    color: var(--taller-texto, #26384a);
}

.taller-servicios .taller-trabajos-lista li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.taller-servicios .taller-trabajos-lista li::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "-";
    color: var(--taller-azul, #2b72b9);
    font-weight: 800;
}

/* El botón queda al final de las tarjetas */

.taller-servicios .taller-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.taller-servicios .taller-card-content .taller-whatsapp {
    margin-top: auto;
}

/* Ajustes en celular */

@media (max-width: 640px) {
    .taller-servicios .taller-card-title {
        font-size: 22px;
    }
}

/* ==========================================================
   BÚSQUEDA GLOBAL — PÁGINA DE RESULTADOS
   ========================================================== */

/* Contenedor general */

.global-search-page {
    width: 100%;
    padding: 40px 20px 60px;
    box-sizing: border-box;
}

.global-search-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Encabezado de resultados */

.global-search-heading {
    margin-bottom: 32px;
}

.global-search-heading h1 {
    margin: 0 0 12px;
    color: #0b2239;
    font-size: 30px;
    line-height: 1.3;
}

.global-search-heading p {
    color: #4b5563;
    line-height: 1.6;
}

.global-search-heading strong {
    color: #0b2239;
}

/* Buscador de esta página */

/* Secciones: repuestos, accesorios y servicios */

.global-search-section {
    margin-top: 42px;
}

.global-search-section > h2 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: #0b2239;
    border-bottom: 2px solid #2B72B9;
    font-size: 24px;
}

/* Cuadrícula de tarjetas */

/* Tarjetas de productos: apariencia del catálogo */

/* Fotografías: tamaño controlado */

/* Contenido de las tarjetas */

/* Etiqueta de oferta */

/* Precios */

/* Botón WhatsApp */

/* Tarjetas de servicios del taller */

/* Sin resultados */

.global-search-empty {
    padding: 36px 24px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.global-search-empty h2 {
    color: #0b2239;
}

.global-search-empty p {
    color: #4b5563;
    line-height: 1.6;
}

.global-search-empty a {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 20px;
    color: #ffffff;
    background: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.global-search-empty a:hover {
    background: #1d4ed8;
}

/* Adaptación a tablets */

/* Adaptación a móviles */

@media (max-width: 700px) {
    .global-search-page {
        padding: 28px 16px 40px;
    }

    .global-search-heading h1 {
        font-size: 25px;
    }

    .global-search-section > h2 {
        font-size: 21px;
    }
}

/* Móviles muy estrechos */

/* ==========================================================
   BUSCADOR GLOBAL - PÁGINA DE RESULTADOS
========================================================== */

.global-search-page {
    padding: 48px 20px 64px;
    background: #f5f7fa;
    min-height: 60vh;
}

.global-search-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.global-search-heading {
    margin-bottom: 32px;
}

.global-search-heading h1 {
    margin: 0 0 12px;
    color: #0b2239;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

.global-search-heading p {
    margin: 8px 0;
    color: #526273;
    font-size: 16px;
}

.global-search-heading strong {
    color: #0b2239;
    overflow-wrap: anywhere;
}

/* Secciones de resultados */

.global-search-section {
    margin-top: 36px;
}

.global-search-section h2 {
    margin: 0 0 20px;
    color: #0b2239;
    font-size: 26px;
}

/* Cuadrícula de productos */

/* Tarjetas de repuestos y accesorios */

/* Botones de consulta */

.taller-whatsapp {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 12px 14px;
    background: #2B72B9;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    transition: background 0.2s ease;
}

.taller-whatsapp:hover {
    background: #0b2239;
}

/* Categorías del taller en resultados */

.global-search-taller-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.global-search-taller-grid .taller-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8ef;
    box-shadow: 0 4px 14px rgba(11, 34, 57, 0.07);
}

.global-search-taller-grid .taller-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #fff;
}

.global-search-taller-grid .taller-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.global-search-taller-grid .taller-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    flex: 1;
}

.global-search-taller-grid .taller-card-content h3 {
    margin: 0;
    color: #0b2239;
    font-size: 20px;
    line-height: 1.35;
}

.global-search-taller-grid .taller-card-content p {
    margin: 0;
    color: #526273;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}

.global-search-taller-grid .taller-whatsapp {
    margin-top: auto;
}

/* Estado sin resultados */

.global-search-empty {
    padding: 36px 24px;
    background: #fff;
    border: 1px solid #e2e8ef;
    text-align: center;
}

.global-search-empty h2 {
    margin: 0 0 12px;
    color: #0b2239;
}

.global-search-empty p {
    max-width: 600px;
    margin: 0 auto 24px;
    color: #526273;
    line-height: 1.6;
}

.global-search-empty a {
    display: inline-block;
    padding: 13px 20px;
    background: #2B72B9;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.global-search-empty a:hover {
    background: #0b2239;
}

/* Adaptación a tablets */

@media (max-width: 1000px) {
    .global-search-taller-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Adaptación a celulares */

@media (max-width: 650px) {
    .global-search-page {
        padding: 30px 15px 44px;
    }

    .global-search-heading h1 {
        font-size: 28px;
    }

    .global-search-section h2 {
        font-size: 23px;
    }

    .global-search-taller-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .taller-whatsapp {
        padding: 10px 8px;
        font-size: 12px;
    }

    .global-search-taller-grid .taller-card-image {
        height: 145px;
    }

    .global-search-taller-grid .taller-card-content {
        padding: 12px;
        gap: 10px;
    }

    .global-search-taller-grid .taller-card-content h3 {
        font-size: 16px;
    }

    .global-search-taller-grid .taller-card-content p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .global-search-taller-grid {
        grid-template-columns: 1fr;
    }

    .global-search-taller-grid .taller-card-image {
        height: 200px;
    }
}

/* =================================================================
   AJUSTES MÓVILES — ÁREAS TÁCTILES Y CAMPOS DE FORMULARIO
   Los controles de 44px o menos de alto dificultan el toque y los
   campos con menos de 16px provocan zoom automático en iOS.
   ================================================================ */

@media (max-width: 600px) {
    /* Barra superior */

    .montero-topbar {
        padding: 8px 0;
    }

    .montero-phones a {
        min-height: 32px;
        padding: 0 4px;
    }

    .montero-top-quote {
        min-height: 32px;
        padding: 0 12px;
    }

    /* Buscador: 16px evita el zoom al enfocar el campo en iOS */

    .montero-search-row input[type="search"] {
        font-size: 16px;
        text-overflow: ellipsis;
    }

    /* Menú principal: el área táctil la da el propio enlace */

    .montero-nav-scroll {
        padding: 0 42px 0 0;
    }

    .montero-nav-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 2px;
    }

    .montero-social-links {
        gap: 2px;
    }

    .montero-social-links a {
        min-width: 40px;
        min-height: 44px;
    }

    /* Formulario de cotización */

    .quote-field input,
    .quote-field textarea {
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .badge-repuestos {
        font-size: 10px;
    }
}

/* Puntos del slider del taller: área táctil ampliada sin cambiar el diseño */

.taller-slider-punto {
    position: relative;
}

.taller-slider-punto::after {
    content: "";
    position: absolute;
    inset: -17px -4px;
}

/* Tarjetas de categoría cuadradas en 2 columnas (va después de la regla
   base de 280px de alto, que de otro modo gana por orden). */

@media (max-width: 768px) {
    .home-category-card {
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

/* Barra superior: teléfonos a la izquierda y botón a la derecha, siempre
   en una sola fila sin importar el ancho del teléfono. */

@media (max-width: 600px) {
    .montero-topbar-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
    }

    .montero-phones {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 2px;
        min-width: 0;
    }

    .montero-phones .sep {
        margin-inline: 0;
    }

    .montero-phones a {
        gap: 4px;
        padding: 0 2px;
        font-size: clamp(10.5px, 3.1vw, 12px);
    }

    .montero-topbar-right {
        flex: 0 0 auto;
    }

    .montero-top-quote {
        padding: 0 10px;
        font-size: clamp(10.5px, 3vw, 11px);
    }
}

@media (max-width: 400px) {
    .montero-topbar .montero-container {
        padding-inline: 10px;
    }
}

/* Flechas de desplazamiento del header: siempre circulares, la izquierda
   solo aparece cuando hay contenido oculto a ese lado. */

.montero-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 0;
    border: 1px solid #d4dce5;
    background: #ffffff;
    color: #0b2239;
    box-shadow: 0 2px 6px rgba(11, 34, 57, 0.18);
    transition: opacity 0.2s, visibility 0.2s, background 0.2s, color 0.2s;
}

.montero-arrow-prev {
    left: 3px;
    right: auto;
}

.montero-arrow-next {
    right: 3px;
}

.montero-arrow-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 600px) {
    .montero-arrow-btn {
        width: 36px;
        height: 36px;
    }

    /* El contenedor de marcas pisaba el margen lateral: el primer logo
       quedaba pegado al borde de la pantalla. */

    .montero-brands-wrapper {
        padding-inline: 12px;
    }

    .montero-brands-scroll {
        padding-left: 4px;
    }
}

/* Títulos de categoría más pequeños en celulares (las reglas equivalentes
   de más arriba quedaban pisadas por la regla base, que va después). */

@media (max-width: 480px) {
    .category-overlay {
        padding: 10px;
    }

    .category-overlay h3 {
        font-size: var(--category-title-size, 0.85rem);
        letter-spacing: 0.3px;
    }
}

/* =================================================================
   FORMULARIO DE COTIZACIÓN: aceptación de la política de privacidad
   ================================================================ */

.quote-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    color: #34465a;
    font-size: 14px;
    line-height: 1.55;
    cursor: pointer;
}

.quote-consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #2b72b9;
}

.quote-consent a {
    color: #2b72b9;
    text-decoration: underline;
}

/* =================================================================
   PÁGINAS LEGALES (política de privacidad)
   ================================================================ */

.legal-page {
    padding: 48px 20px 24px;
    background: #ffffff;
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
    color: #26384a;
    font-size: 16px;
    line-height: 1.75;
}

.legal-container h1 {
    margin: 0 0 6px;
    color: #0b2239;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

.legal-updated {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 14px;
}

.legal-container h2 {
    margin: 32px 0 8px;
    color: #0b2239;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.legal-container p {
    margin: 0 0 12px;
}

.legal-container ul {
    margin: 0 0 14px;
    padding-left: 22px;
    list-style: disc;
}

.legal-container li {
    margin: 0 0 6px;
}

.legal-container a {
    color: #2b72b9;
    text-decoration: underline;
}

.legal-box {
    margin: 26px 0 0;
    padding: 14px 16px;
    border-left: 4px solid #2b72b9;
    border-radius: 0;
    background: #f1f6fb;
}

@media (max-width: 640px) {
    .legal-page {
        padding: 32px 16px 16px;
    }

    .legal-container {
        font-size: 15px;
    }
}

/* Teléfonos muy angostos: el precio (con su precio anterior en las ofertas)
   debe caber siempre en una sola línea. */

@media (max-width: 380px) {
    .home-product-price {
        gap: 0 5px;
    }

    .home-product-price-amount {
        font-size: 16px;
    }

    .home-product-old-price {
        font-size: 10.5px;
    }
}

/* =================================================================
   SISTEMA DE DISEÑO
   Paleta: azul marino (estructura y textos), azul del logo (enlaces,
   iconos y detalles), blanco y UN color de acento (--montero-accent)
   para toda acción principal: cotizar, consultar y enviar.
   Esquinas rectas en todo el sitio.
   Para probar otro acento basta cambiar --montero-accent arriba.
   ================================================================= */

/* ---- Acción principal: un solo color ---- */

.montero-top-quote,
.home-product-button,
.montero-footer-btn,
.home-contact-button,
.quote-submit-button,
.taller-whatsapp,
.taller-portada-texto .taller-whatsapp,
.global-search-empty a {
    border-color: var(--montero-accent);
    background: var(--montero-accent);
    color: #ffffff;
}

.montero-top-quote:hover,
.home-product-button:hover,
.montero-footer-btn:hover,
.home-contact-button:hover,
.quote-submit-button:hover,
.taller-whatsapp:hover,
.taller-portada-texto .taller-whatsapp:hover,
.global-search-empty a:hover {
    border-color: var(--montero-accent-dark);
    background: var(--montero-accent-dark);
    color: #ffffff;
}

/* ---- Detalles en la paleta ---- */

.home-product-subtitle {
    background-color: #edf4fb;
    color: #173b5c;
}

.home-product-subtitle i {
    color: var(--montero-blue);
}

.quote-alert-success {
    border-color: #b7d1ea;
    background: #edf4fb;
    color: #173b5c;
}

/* ---- Títulos de sección: un solo estilo para todas ---- */

.section-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    color: var(--montero-ink);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

/* Barra de acento bajo el título */

.section-heading h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 16px auto 0;
    background: var(--montero-accent);
}

.section-heading p {
    max-width: 640px;
    margin: 16px auto 0;
    color: #526273;
    font-size: 16px;
    line-height: 1.65;
}

/* ---- Ritmo vertical y fondos de las secciones del inicio ---- */

.home-categories,
.home-extra,
.home-story,
.home-location,
.home-contact {
    padding-block: var(--section-pad);
}

.home-categories {
    padding-inline: 20px;
    background: #ffffff;
}

.home-section-soft,
.home-story,
.home-contact {
    background: var(--montero-soft);
}

.home-location {
    border-top: 0;
    background: #ffffff;
}

.home-contact {
    border-top: 0;
}

/* Línea de cierre del banner principal: separa limpiamente el hero de las
   categorías. */

.home-hero {
    border-bottom: 4px solid var(--montero-blue);
}

/* ---- Cuadrículas centradas: con pocos elementos (3 productos, 7
   categorías) la última fila queda centrada y no pegada a la izquierda ---- */

.home-product-grid,
.home-categories-grid {
    --grid-gap: 24px;
    --cols: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--grid-gap);
}

.home-product-card,
.home-category-card {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--grid-gap)) / var(--cols));
    min-width: 0;
}

.home-categories-grid {
    --grid-gap: 20px;
}

@media (max-width: 1024px) {
    .home-product-grid,
    .home-categories-grid {
        --cols: 3;
        --grid-gap: 18px;
    }
}

@media (max-width: 768px) {
    .home-categories-grid {
        --cols: 2;
    }
}

@media (max-width: 640px) {
    :root {
        --section-pad: 48px;
    }

    .home-product-grid {
        --cols: 2;
        --grid-gap: 12px;
    }

    .home-categories-grid {
        --grid-gap: 12px;
    }

    .home-categories {
        padding-inline: 12px;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2::after {
        width: 44px;
        height: 3px;
        margin-top: 12px;
    }

    .section-heading p {
        margin-top: 12px;
        font-size: 15px;
    }
}

/* Botón secundario (marino): la acción principal es la roja */

.home-contact-button.home-contact-button-whatsapp {
    border-color: var(--montero-ink);
    background: var(--montero-ink);
}

.home-contact-button.home-contact-button-whatsapp:hover {
    border-color: var(--montero-blue);
    background: var(--montero-blue);
}

/* Fondo de la página explícito (si no, depende del navegador) y el pie
   pegado a la última sección, sin franja entre ambos. */

html,
body {
    background: #ffffff;
}

.montero-footer {
    margin-top: 0;
}

/* Botón sobre la banda marino de Taller: también es la acción principal */

.taller-contacto-final .taller-whatsapp,
.taller-servicios > .taller-container > .taller-contacto-final .taller-whatsapp {
    border-color: var(--montero-accent);
    background: var(--montero-accent);
    color: #ffffff !important;
}

.taller-contacto-final .taller-whatsapp:hover,
.taller-servicios > .taller-container > .taller-contacto-final .taller-whatsapp:hover {
    border-color: var(--montero-accent-dark);
    background: var(--montero-accent-dark);
    color: #ffffff !important;
}

/* =================================================================
   VISÍTANOS: HORARIO DESTACADO
   Horario en grande y cada fila (lunes a viernes, fines de semana)
   separada por una línea.
   ================================================================= */

.home-schedule {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.home-schedule-row {
    padding: 16px 0;
}

.home-schedule-row:first-child {
    padding-top: 4px;
}

.home-schedule-row:last-child {
    padding-bottom: 0;
}

.home-schedule-row + .home-schedule-row {
    border-top: 1px solid var(--montero-line);
}

.home-schedule-days {
    display: block;
    color: var(--montero-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-schedule-hours {
    display: block;
    margin-top: 6px;
    color: var(--montero-ink);
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 800;
    line-height: 1.15;
}

@media (max-width: 600px) {
    .home-schedule-row {
        padding: 14px 0;
    }
}

/* El botón de la banda final de Taller tiene su tamaño natural, centrado
   (heredaba el ancho completo de las tarjetas de servicios). */
.taller-contacto-final .taller-whatsapp,
.taller-servicios > .taller-container > .taller-contacto-final .taller-whatsapp {
    display: inline-flex;
    width: auto;
    min-width: 260px;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 32px;
}

@media (max-width: 640px) {
    .taller-contacto-final .taller-whatsapp,
    .taller-servicios > .taller-container > .taller-contacto-final .taller-whatsapp {
        width: 100%;
        min-width: 0;
    }
}


/* =================================================================
   COTIZADOR: LISTA DE FOTOGRAFÍAS ADJUNTAS
   ================================================================= */
.quote-upload-status {
    margin: 8px 0 0;
    color: #526273;
    font-size: 14px;
    line-height: 1.5;
}

.quote-upload-status:empty {
    display: none;
}

.quote-upload-status.is-error {
    color: var(--montero-accent-dark);
    font-weight: 700;
}

.quote-files {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.quote-files:empty {
    display: none;
}

.quote-files li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 8px;
    border: 1px solid var(--montero-line);
    background: #ffffff;
}

.quote-files img {
    flex: none;
    width: 48px;
    height: 48px;
    object-fit: cover;
    background: var(--montero-soft);
}

.quote-file-info {
    flex: 1;
    min-width: 0;
}

.quote-file-name {
    display: block;
    overflow: hidden;
    color: var(--montero-ink);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-file-size {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.quote-file-remove {
    flex: none;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    background: none;
    color: var(--montero-accent);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.quote-file-remove:hover {
    color: var(--montero-accent-dark);
    text-decoration: underline;
}

.quote-submit-button:disabled {
    opacity: 0.6;
    cursor: progress;
}
