/* =========================================================
   STYLE.CSS
   CATÁLOGO DE PRODUCTOS

   ESTRUCTURA:

   01. Variables
   02. Reset
   03. Elementos generales
   04. Contenedor
   05. Botones
   06. Header
   07. Hero principal
   08. Encabezados de sección
   09. Segmentos - Inicio
   10. Información - Inicio
   11. Hero de segmento
   12. Catálogo de segmento
   13. Buscador
   14. Filtros
   15. Categorías
   16. Grid de productos
   17. Tarjetas de producto
   18. Descuentos y precios
   19. Imagen no disponible
   20. Estado vacío
   21. Detalle de producto
   22. Contacto
   23. Footer
   24. Utilidades
   25. Responsive
========================================================= */


/* =========================================================
   01. VARIABLES
========================================================= */

:root {

    /* COLORES PRINCIPALES */

    --color-primary: #163a5f;
    --color-primary-dark: #0d2944;
    --color-primary-light: #eaf1f7;

    --color-accent: #e57224;
    --color-accent-dark: #c85c16;
    --color-accent-light: #fff2e9;


    /* DESCUENTOS */

    --color-discount: #c63d2f;
    --color-discount-dark: #9f2e23;
    --color-discount-light: #fff0ed;


    /* FONDOS */

    --color-background: #f5f7f9;
    --color-background-secondary: #eef2f5;
    --color-surface: #ffffff;


    /* TEXTOS */

    --color-text: #17212b;
    --color-text-secondary: #66727e;
    --color-text-light: #8c969f;


    /* BORDES */

    --color-border: #dde3e8;
    --color-border-light: #e9edf0;


    /* OTROS */

    --color-dark: #101a24;
    --color-white: #ffffff;
    --color-success: #26734d;


    /* SOMBRAS */

    --shadow-small:
        0 4px 16px rgba(15, 35, 55, 0.06);

    --shadow-medium:
        0 12px 32px rgba(15, 35, 55, 0.10);

    --shadow-large:
        0 20px 50px rgba(15, 35, 55, 0.14);


    /* RADIOS */

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;


    /* MEDIDAS */

    --container-width: 1240px;
    --header-height: 76px;


    /* TRANSICIONES */

    --transition: 0.25s ease;

}


/* =========================================================
   02. RESET
========================================================= */

*,
*::before,
*::after {

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

    scroll-padding-top:
        calc(var(--header-height) + 25px);

}


body {

    margin: 0;

    min-height: 100vh;

    background:
        var(--color-background);

    color:
        var(--color-text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;

    line-height: 1.6;

    -webkit-font-smoothing:
        antialiased;

}


body,
button,
input {

    font-family: inherit;

}


img {

    display: block;

    max-width: 100%;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input {

    font: inherit;

}


button {

    cursor: pointer;

}


h1,
h2,
h3,
p {

    margin-top: 0;

}


button,
a,
input {

    -webkit-tap-highlight-color:
        transparent;

}


/* =========================================================
   03. ELEMENTOS GENERALES
========================================================= */

::selection {

    background:
        var(--color-primary);

    color:
        var(--color-white);

}


:focus-visible {

    outline:
        3px solid rgba(229, 114, 36, 0.4);

    outline-offset: 3px;

}


[hidden] {

    display: none !important;

}


/* =========================================================
   04. CONTENEDOR
========================================================= */

.container {

    width:
        min(
            calc(100% - 40px),
            var(--container-width)
        );

    margin-inline: auto;

}


/* =========================================================
   05. BOTONES
========================================================= */

.button {

    min-height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        12px 22px;

    border:
        1px solid transparent;

    border-radius:
        var(--radius-small);

    font-size: 0.9rem;

    font-weight: 700;

    line-height: 1.2;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);

}


.button:hover {

    transform:
        translateY(-2px);

}


.button-primary {

    background:
        var(--color-accent);

    color:
        var(--color-white);

    box-shadow:
        0 8px 22px rgba(229, 114, 36, 0.22);

}


.button-primary:hover {

    background:
        var(--color-accent-dark);

    box-shadow:
        0 12px 28px rgba(229, 114, 36, 0.28);

}


.button-light {

    background:
        var(--color-white);

    color:
        var(--color-primary-dark);

}


.button-light:hover {

    background:
        var(--color-primary-light);

}


/* =========================================================
   06. HEADER
========================================================= */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    min-height:
        var(--header-height);

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid rgba(221, 227, 232, 0.85);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

}


.header-container {

    min-height:
        var(--header-height);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

}


/* LOGO */

.logo {

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color:
        var(--color-primary-dark);

    font-weight: 800;

}


.logo-icon {

    width: 38px;

    height: 38px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    background:
        var(--color-primary);

    border-radius:
        10px;

    color:
        var(--color-white);

    font-size: 1rem;

    font-weight: 800;

}


.logo-text {

    font-size: 1.05rem;

    letter-spacing:
        -0.02em;

}


/* NAVEGACIÓN */

.main-nav {

    display: flex;

    align-items: center;

    gap: 6px;

}


.nav-link {

    position: relative;

    padding:
        9px 13px;

    color:
        var(--color-text-secondary);

    border-radius:
        7px;

    font-size: 0.88rem;

    font-weight: 700;

    transition:
        color var(--transition),
        background var(--transition);

}


.nav-link:hover {

    color:
        var(--color-primary);

    background:
        var(--color-primary-light);

}


.nav-link.active {

    color:
        var(--color-primary);

}


/* MENÚ MÓVIL */

.menu-toggle {

    width: 44px;

    height: 44px;

    display: none;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    padding: 0;

    background:
        transparent;

    border:
        1px solid var(--color-border);

    border-radius:
        9px;

}


.menu-toggle span {

    width: 20px;

    height: 2px;

    background:
        var(--color-primary-dark);

    transition:
        transform var(--transition),
        opacity var(--transition);

}


.menu-toggle.active span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);

}


.menu-toggle.active span:nth-child(2) {

    opacity: 0;

}


.menu-toggle.active span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/* =========================================================
   07. HERO PRINCIPAL
========================================================= */

.hero {

    position: relative;

    overflow: hidden;

    padding:
        60px 0;

    background:
        linear-gradient(
            135deg,
            var(--color-primary-dark) 0%,
            var(--color-primary) 65%,
            #225781 100%
        );

    color:
        var(--color-white);

}


.hero::before {

    content: "";

    position: absolute;

    width: 520px;

    height: 520px;

    right: -200px;

    top: -250px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        50%;

}


.hero::after {

    content: "";

    position: absolute;

    width: 340px;

    height: 340px;

    right: 70px;

    bottom: -240px;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius:
        50%;

}


.hero-container {

    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(350px, 0.85fr);

    align-items: center;

    gap: 90px;

}


.hero-content {

    max-width: 680px;

}


.hero-label,
.section-label {

    display: inline-block;

    margin-bottom: 14px;

    color:
        var(--color-accent);

    font-size: 0.74rem;

    font-weight: 800;

    letter-spacing:
        0.12em;

    text-transform: uppercase;

}


.hero h1 {

    max-width: 720px;

    margin-bottom: 22px;

    color:
        var(--color-white);

    font-size:
        clamp(
            2.8rem,
            5vw,
            4.7rem
        );

    line-height: 1.02;

    letter-spacing:
        -0.055em;

}


.hero-content > p {

    max-width: 610px;

    margin-bottom: 32px;

    color:
        rgba(255, 255, 255, 0.76);

    font-size: 1.05rem;

    line-height: 1.8;

}


.hero-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

}


/* PANEL DEL HERO */

.hero-visual {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

}


.hero-visual-item {

    min-height: 145px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 22px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius:
        var(--radius-medium);

    backdrop-filter:
        blur(8px);

}


.hero-visual-item span {

    color:
        var(--color-accent);

    font-size: 0.74rem;

    font-weight: 800;

}


.hero-visual-item strong {

    max-width: 150px;

    color:
        var(--color-white);

    font-size: 1rem;

    line-height: 1.35;

}


/* =========================================================
   08. ENCABEZADOS DE SECCIÓN
========================================================= */

.section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 45px;

}


.section-heading > div {

    max-width: 650px;

}


.section-heading h2 {

    margin-bottom: 0;

    color:
        var(--color-primary-dark);

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );

    line-height: 1.1;

    letter-spacing:
        -0.04em;

}


.section-heading > p {

    max-width: 460px;

    margin-bottom: 4px;

    color:
        var(--color-text-secondary);

}


/* =========================================================
   09. SEGMENTOS - INICIO
========================================================= */

.segments-section {

    padding:
        95px 0;

    background:
        var(--color-surface);

}


.segments-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

}


.segment-card {

    min-width: 0;

    min-height: 300px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 27px;

    background:
        var(--color-background);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background var(--transition);

}


.segment-link-card:hover {

    transform:
        translateY(-6px);

    background:
        var(--color-white);

    border-color:
        rgba(22, 58, 95, 0.28);

    box-shadow:
        var(--shadow-medium);

}


.segment-number {

    margin-bottom: 40px;

    color:
        var(--color-accent);

    font-size: 0.76rem;

    font-weight: 800;

}


.segment-label {

    display: block;

    margin-bottom: 7px;

    color:
        var(--color-text-light);

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing:
        0.08em;

    text-transform: uppercase;

}


.segment-content h3 {

    margin-bottom: 12px;

    color:
        var(--color-primary-dark);

    font-size: 1.25rem;

    line-height: 1.25;

}


.segment-content p {

    margin-bottom: 22px;

    color:
        var(--color-text-secondary);

    font-size: 0.88rem;

}


.segment-action {

    color:
        var(--color-primary);

    font-size: 0.85rem;

    font-weight: 800;

}


/* =========================================================
   10. INFORMACIÓN - INICIO
========================================================= */

.home-info-section {

    padding:
        90px 0;

    background:
        var(--color-background);

}


.home-info-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(350px, 0.8fr);

    gap: 100px;

    align-items: center;

}


.home-info-content {

    max-width: 650px;

}


.home-info-content h2 {

    margin-bottom: 20px;

    color:
        var(--color-primary-dark);

    font-size:
        clamp(
            2rem,
            4vw,
            3.2rem
        );

    line-height: 1.1;

    letter-spacing:
        -0.04em;

}


.home-info-content p {

    margin-bottom: 0;

    color:
        var(--color-text-secondary);

    font-size: 1rem;

}


.home-info-features {

    background:
        var(--color-white);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-small);

}


.home-info-feature {

    display: grid;

    grid-template-columns:
        45px 1fr;

    align-items: center;

    gap: 15px;

    padding:
        21px 24px;

    border-bottom:
        1px solid var(--color-border-light);

}


.home-info-feature:last-child {

    border-bottom: 0;

}


.home-info-feature strong {

    color:
        var(--color-accent);

    font-size: 0.76rem;

}


.home-info-feature span {

    color:
        var(--color-primary-dark);

    font-size: 0.9rem;

    font-weight: 700;

}


/* =========================================================
   11. HERO DEL SEGMENTO
========================================================= */

.segment-hero {

    position: relative;

    overflow: hidden;

    padding:
        70px 0;

    background:
        linear-gradient(
            135deg,
            var(--color-primary-dark),
            var(--color-primary)
        );

    color:
        var(--color-white);

}


.segment-hero::after {

    content: "";

    position: absolute;

    width: 450px;

    height: 450px;

    right: -170px;

    top: -220px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        50%;

}


.segment-hero-container {

    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(360px, 0.9fr);

    align-items: center;

    gap: 80px;

}


.segment-hero-content {

    max-width: 650px;

}


.segment-back-link {

    display: inline-flex;

    align-items: center;

    margin-bottom: 28px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 0.82rem;

    font-weight: 700;

    transition:
        color var(--transition),
        transform var(--transition);

}


.segment-back-link:hover {

    color:
        var(--color-white);

    transform:
        translateX(-3px);

}


.segment-hero h1 {

    margin-bottom: 20px;

    color:
        var(--color-white);

    font-size:
        clamp(
            2.7rem,
            5vw,
            4.5rem
        );

    line-height: 1.02;

    letter-spacing:
        -0.05em;

}


.segment-hero-content > p {

    max-width: 600px;

    margin-bottom: 30px;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 1rem;

    line-height: 1.75;

}


/* RESUMEN DE CATEGORÍAS */

.segment-hero-summary {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

}


.segment-hero-summary > div {

    min-height: 120px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 20px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius:
        var(--radius-medium);

}


.segment-hero-summary span {

    color:
        var(--color-accent);

    font-size: 0.7rem;

    font-weight: 800;

}


.segment-hero-summary strong {

    color:
        var(--color-white);

    font-size: 0.92rem;

    line-height: 1.3;

}


/* =========================================================
   12. CATÁLOGO DEL SEGMENTO
========================================================= */

.segment-catalog {

    padding:
        90px 0 110px;

    background:
        var(--color-background);

}


.catalog-tools {

    margin-bottom: 65px;

    padding: 25px;

    background:
        var(--color-white);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-small);

}


/* =========================================================
   13. BUSCADOR
========================================================= */

.search-container {

    margin-bottom: 23px;

}


.search-label,
.filter-label {

    display: block;

    margin-bottom: 8px;

    color:
        var(--color-primary-dark);

    font-size: 0.76rem;

    font-weight: 800;

    letter-spacing:
        0.03em;

}


.search-box {

    position: relative;

}


.search-box input {

    width: 100%;

    height: 52px;

    padding:
        0 52px 0 16px;

    background:
        var(--color-background);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-small);

    color:
        var(--color-text);

    outline: none;

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);

}


.search-box input::placeholder {

    color:
        var(--color-text-light);

}


.search-box input:focus {

    background:
        var(--color-white);

    border-color:
        var(--color-primary);

    box-shadow:
        0 0 0 4px rgba(22, 58, 95, 0.08);

}


.clear-search {

    position: absolute;

    top: 50%;

    right: 8px;

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    transform:
        translateY(-50%);

    opacity: 0;

    pointer-events: none;

    background:
        transparent;

    border: 0;

    border-radius:
        50%;

    color:
        var(--color-text-secondary);

    font-size: 1.35rem;

    transition:
        opacity var(--transition),
        background var(--transition);

}


.clear-search.visible {

    opacity: 1;

    pointer-events: auto;

}


.clear-search:hover {

    background:
        var(--color-border-light);

}


/* =========================================================
   14. FILTROS
========================================================= */

.category-filter-group {

    margin-bottom: 22px;

}


.category-filters {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}


.filter-button {

    min-height: 40px;

    padding:
        8px 15px;

    background:
        var(--color-background);

    border:
        1px solid var(--color-border);

    border-radius:
        999px;

    color:
        var(--color-text-secondary);

    font-size: 0.8rem;

    font-weight: 700;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);

}


.filter-button:hover {

    color:
        var(--color-primary);

    border-color:
        rgba(22, 58, 95, 0.4);

}


.filter-button.active {

    background:
        var(--color-primary);

    border-color:
        var(--color-primary);

    color:
        var(--color-white);

}


.catalog-status {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 18px;

    border-top:
        1px solid var(--color-border-light);

}


.catalog-status p {

    margin: 0;

    color:
        var(--color-text-secondary);

    font-size: 0.82rem;

    font-weight: 700;

}


.reset-filter-button {

    padding: 0;

    background:
        transparent;

    border: 0;

    color:
        var(--color-primary);

    font-size: 0.78rem;

    font-weight: 800;

}


.reset-filter-button:hover {

    color:
        var(--color-accent-dark);

}


/* =========================================================
   15. CATEGORÍAS
========================================================= */

.category-section {

    margin-bottom: 85px;

}


.category-section:last-of-type {

    margin-bottom: 0;

}


.category-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 28px;

    padding-bottom: 18px;

    border-bottom:
        1px solid var(--color-border);

}


.category-heading > div {

    display: flex;

    align-items: baseline;

    gap: 14px;

}


.category-number {

    color:
        var(--color-accent);

    font-size: 0.7rem;

    font-weight: 800;

}


.category-heading h2 {

    margin: 0;

    color:
        var(--color-primary-dark);

    font-size:
        clamp(
            1.6rem,
            3vw,
            2.25rem
        );

    line-height: 1.15;

    letter-spacing:
        -0.035em;

}


.category-heading > p {

    max-width: 440px;

    margin: 0;

    color:
        var(--color-text-secondary);

    font-size: 0.86rem;

}


/* =========================================================
   16. GRID DE PRODUCTOS
========================================================= */

.products-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    align-items: stretch;

}


/* =========================================================
   17. TARJETAS DE PRODUCTO
========================================================= */

.product-card {

    position: relative;

    min-width: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background:
        var(--color-white);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-small);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);

}


.product-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(22, 58, 95, 0.22);

    box-shadow:
        var(--shadow-medium);

}


/* IMAGEN */

.product-image-wrapper {

    position: relative;

    height: 245px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    padding: 25px;

    background:
        #f7f9fa;

    border-bottom:
        1px solid var(--color-border-light);

}


.product-image {

    width: 100%;

    height: 100%;

    object-fit: contain;

    transition:
        transform 0.35s ease;

}


.product-card:hover .product-image {

    transform:
        scale(1.035);

}


/* CONTENIDO */

.product-content {

    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 21px;

}


.product-category {

    display: block;

    margin-bottom: 8px;

    color:
        var(--color-accent);

    font-size: 0.68rem;

    font-weight: 800;

    letter-spacing:
        0.07em;

    text-transform: uppercase;

}


.product-name {

    margin-bottom: 11px;

    color:
        var(--color-primary-dark);

    font-size: 1.04rem;

    line-height: 1.35;

}


.product-description {

    display:
        -webkit-box;

    overflow: hidden;

    margin-bottom: 20px;

    color:
        var(--color-text-secondary);

    font-size: 0.84rem;

    line-height: 1.65;

    /* Limitar descripción a 3 líneas */
    line-clamp: 3;
    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

}


.product-link {

    display: inline-flex;

    align-items: center;

    align-self: flex-start;

    margin-top: auto;

    padding-top: 18px;

    color:
        var(--color-primary);

    font-size: 0.82rem;

    font-weight: 800;

    transition:
        color var(--transition),
        transform var(--transition);

}


.product-link:hover {

    color:
        var(--color-accent-dark);

    transform:
        translateX(3px);

}


/* =========================================================
   18. DESCUENTOS Y PRECIOS
========================================================= */

.discount-badge {

    position: absolute;

    z-index: 2;

    top: 14px;

    right: 14px;

    min-width: 52px;

    padding:
        6px 9px;

    background:
        var(--color-discount);

    border-radius:
        999px;

    color:
        var(--color-white);

    font-size: 0.7rem;

    font-weight: 800;

    line-height: 1;

    text-align: center;

    box-shadow:
        0 6px 18px rgba(198, 61, 47, 0.2);

}


/* CONTENEDOR DE PRECIOS */

.product-prices {

    margin-top: auto;

    padding-top: 17px;

    border-top:
        1px solid var(--color-border-light);

}


/* PRECIO NORMAL */

.product-original-price-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 6px;

}


.product-price-label {

    color:
        var(--color-text-light);

    font-size: 0.7rem;

    font-weight: 700;

}


.product-original-price {

    color:
        var(--color-text-light);

    font-size: 0.83rem;

    font-weight: 700;

    text-decoration:
        line-through;

    text-decoration-thickness:
        1.5px;

}


/* PRECIO CON DESCUENTO */

.product-discount-price-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}


.product-discount-label {

    display: inline-flex;

    align-items: center;

    padding:
        4px 7px;

    background:
        var(--color-discount-light);

    border-radius:
        5px;

    color:
        var(--color-discount);

    font-size: 0.65rem;

    font-weight: 800;

}


.product-discount-price {

    color:
        var(--color-primary-dark);

    font-size: 1.25rem;

    line-height: 1.2;

}


/* AHORRO */

.product-saving {

    display: block;

    margin-top: 7px;

    color:
        var(--color-success);

    font-size: 0.68rem;

    font-weight: 700;

}


/* =========================================================
   19. IMAGEN NO DISPONIBLE
========================================================= */

.product-image-placeholder {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            #f7f9fa,
            #e9eef2
        );

    color:
        var(--color-text-light);

    font-size: 0.78rem;

    font-weight: 700;

    text-align: center;

}


/* =========================================================
   20. ESTADO VACÍO
========================================================= */

.empty-state {

    max-width: 560px;

    margin:
        65px auto 0;

    padding:
        50px 30px;

    background:
        var(--color-white);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);

    text-align: center;

}


.empty-state-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto 18px;

    background:
        var(--color-primary-light);

    border-radius:
        50%;

    color:
        var(--color-primary);

    font-size: 1.1rem;

    font-weight: 800;

}


.empty-state h3 {

    margin-bottom: 10px;

    color:
        var(--color-primary-dark);

    font-size: 1.35rem;

}


.empty-state p {

    max-width: 430px;

    margin:
        0 auto 25px;

    color:
        var(--color-text-secondary);

    font-size: 0.9rem;

}


/* =========================================================
   21. DETALLE DE PRODUCTO

   Esta sección queda preparada para producto.html.
========================================================= */

.product-detail-section {

    padding:
        45px 0 100px;

    background:
        var(--color-background);

}


.product-back {

    margin-bottom: 22px;

}


.back-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color:
        var(--color-primary);

    font-size: 0.85rem;

    font-weight: 800;

    transition:
        color var(--transition),
        transform var(--transition);

}


.back-link:hover {

    color:
        var(--color-accent);

    transform:
        translateX(-3px);

}


/* BREADCRUMB */

.product-breadcrumb {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 35px;

    color:
        var(--color-text-light);

    font-size: 0.78rem;

}


.product-breadcrumb a {

    color:
        var(--color-text-secondary);

}


.product-breadcrumb a:hover {

    color:
        var(--color-primary);

}


/* CONTENEDOR */

.product-detail {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(380px, 0.9fr);

    gap: 70px;

    align-items: start;

}


/* IMAGEN */

.product-detail-gallery {

    min-width: 0;

}


.product-detail-image-wrapper {

    position: sticky;

    top:
        calc(var(--header-height) + 25px);

    min-height: 560px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px;

    overflow: hidden;

    background:
        var(--color-white);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-small);

}


.product-detail-image {

    width: 100%;

    max-width: 480px;

    max-height: 520px;

    object-fit: contain;

}


/* INFORMACIÓN */

.product-detail-info {

    min-width: 0;

    padding:
        20px 0;

}


.product-detail-segment {

    display: inline-block;

    margin-bottom: 13px;

    color:
        var(--color-accent);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing:
        0.09em;

    text-transform: uppercase;

}


.product-detail-info h1 {

    margin-bottom: 20px;

    color:
        var(--color-primary-dark);

    font-size:
        clamp(
            2.2rem,
            4vw,
            3.5rem
        );

    line-height: 1.07;

    letter-spacing:
        -0.045em;

}


/* CATEGORÍA */

.product-detail-category {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 30px;

}


.product-detail-category span {

    color:
        var(--color-text-light);

    font-size: 0.8rem;

}


.product-detail-category strong {

    padding:
        5px 10px;

    background:
        var(--color-primary-light);

    border-radius:
        999px;

    color:
        var(--color-primary);

    font-size: 0.76rem;

}


/* DESCRIPCIÓN */

.product-detail-description {

    padding:
        27px 0;

    border-top:
        1px solid var(--color-border);

    border-bottom:
        1px solid var(--color-border);

}


.product-detail-description h2 {

    margin-bottom: 10px;

    color:
        var(--color-primary-dark);

    font-size: 1rem;

}


.product-detail-description p {

    margin: 0;

    color:
        var(--color-text-secondary);

    line-height: 1.8;

}


/* PRECIO DETALLE */

.product-detail-price {

    padding:
        28px 0;

}


.product-detail-price-label {

    display: block;

    margin-bottom: 8px;

    color:
        var(--color-text-light);

    font-size: 0.72rem;

    font-weight: 800;

    text-transform: uppercase;

}


.product-detail-original-price {

    display: block;

    margin-bottom: 5px;

    color:
        var(--color-text-light);

    font-size: 1rem;

    font-weight: 700;

    text-decoration:
        line-through;

}


.product-detail-discount-row {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

}


.product-detail-discount-badge {

    display: inline-flex;

    padding:
        5px 9px;

    background:
        var(--color-discount);

    border-radius:
        999px;

    color:
        var(--color-white);

    font-size: 0.7rem;

    font-weight: 800;

}


.product-detail-final-price {

    color:
        var(--color-primary-dark);

    font-size: 2.15rem;

    line-height: 1.1;

}


.product-detail-saving {

    display: block;

    margin-top: 8px;

    color:
        var(--color-success);

    font-size: 0.78rem;

    font-weight: 700;

}


/* ACCIONES */

.product-detail-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 11px;

    margin-bottom: 35px;

}


.product-secondary-button {

    background:
        var(--color-white);

    border-color:
        var(--color-border);

    color:
        var(--color-primary);

}


.product-secondary-button:hover {

    border-color:
        var(--color-primary);

}


/* INFORMACIÓN EXTRA */

.product-extra-info {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    overflow: hidden;

    background:
        var(--color-white);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);

}


.product-extra-item {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 17px;

    border-right:
        1px solid var(--color-border-light);

}


.product-extra-item:last-child {

    border-right: 0;

}


.product-extra-item span {

    color:
        var(--color-text-light);

    font-size: 0.65rem;

    font-weight: 800;

    text-transform: uppercase;

}


.product-extra-item strong {

    overflow-wrap: anywhere;

    color:
        var(--color-primary-dark);

    font-size: 0.82rem;

}


/* PRODUCTO NO ENCONTRADO */

.product-not-found {

    max-width: 620px;

    margin:
        70px auto;

    padding:
        60px 35px;

    background:
        var(--color-white);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-large);

    text-align: center;

}


.product-not-found h1 {

    margin-bottom: 12px;

    color:
        var(--color-primary-dark);

    font-size:
        clamp(
            1.8rem,
            5vw,
            2.5rem
        );

}


.product-not-found p {

    max-width: 460px;

    margin:
        0 auto 28px;

    color:
        var(--color-text-secondary);

}


/* PLACEHOLDER DEL DETALLE */

.product-detail-image-placeholder {

    background:
        linear-gradient(
            145deg,
            #f7f9fa,
            #e8edf1
        );

}


.product-detail-placeholder {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

    text-align: center;

    color:
        var(--color-text-secondary);

}


.product-detail-placeholder-icon {

    color:
        #aab8c3;

    font-size: 3.5rem;

}


.product-detail-placeholder strong {

    color:
        var(--color-primary-dark);

}


/* =========================================================
   22. CONTACTO
========================================================= */

.contact-section {

    padding:
        75px 0;

    background:
        var(--color-primary);

    color:
        var(--color-white);

}


.contact-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 70px;

}


.contact-content {

    max-width: 720px;

}


.contact-content h2 {

    margin-bottom: 14px;

    color:
        var(--color-white);

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );

    line-height: 1.1;

    letter-spacing:
        -0.04em;

}


.contact-content p {

    max-width: 650px;

    margin-bottom: 0;

    color:
        rgba(255, 255, 255, 0.72);

}


/* =========================================================
   23. FOOTER
========================================================= */

.footer {

    background:
        var(--color-dark);

    color:
        var(--color-white);

}


.footer-container {

    display: grid;

    grid-template-columns:
        minmax(300px, 1.5fr)
        minmax(150px, 0.6fr)
        minmax(180px, 0.8fr);

    gap: 70px;

    padding-top: 65px;

    padding-bottom: 55px;

}


.footer-logo {

    margin-bottom: 18px;

    color:
        var(--color-white);

}


.footer-logo .logo-icon {

    background:
        var(--color-accent);

}


.footer-brand p {

    max-width: 420px;

    margin-bottom: 0;

    color:
        rgba(255, 255, 255, 0.58);

    font-size: 0.85rem;

}


.footer-column {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;

}


.footer-column h3 {

    margin-bottom: 7px;

    color:
        var(--color-white);

    font-size: 0.82rem;

}


.footer-column a {

    color:
        rgba(255, 255, 255, 0.58);

    font-size: 0.8rem;

    transition:
        color var(--transition);

}


.footer-column a:hover {

    color:
        var(--color-white);

}


.footer-bottom {

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

}


.footer-bottom .container {

    padding-top: 20px;

    padding-bottom: 20px;

}


.footer-bottom p {

    margin: 0;

    color:
        rgba(255, 255, 255, 0.42);

    font-size: 0.72rem;

}


/* =========================================================
   24. UTILIDADES
========================================================= */

.no-scroll {

    overflow: hidden;

}


/* =========================================================
   25. RESPONSIVE
========================================================= */


/* =========================================================
   HASTA 1100PX
========================================================= */

@media (max-width: 1100px) {

    /* PRODUCTOS */

    .products-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }


    /* SEGMENTOS */

    .segments-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    /* HERO */

    .hero-container {

        gap: 55px;

    }


    /* SEGMENT HERO */

    .segment-hero-container {

        gap: 50px;

    }


    /* INFO */

    .home-info-grid {

        gap: 60px;

    }

}


/* =========================================================
   HASTA 900PX
========================================================= */

@media (max-width: 900px) {

    :root {

        --header-height: 70px;

    }


    /* =============================================
       HEADER
    ============================================== */

    .menu-toggle {

        display: flex;

    }


    .main-nav {

        position: absolute;

        top:
            calc(100% + 1px);

        left: 20px;

        right: 20px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 3px;

        padding: 12px;

        background:
            var(--color-white);

        border:
            1px solid var(--color-border);

        border-radius:
            var(--radius-medium);

        box-shadow:
            var(--shadow-medium);

    }


    .main-nav.open {

        display: flex;

    }


    .nav-link {

        width: 100%;

        padding:
            12px 14px;

    }


    /* =============================================
       HERO
    ============================================== */

    .hero {

        padding:
            75px 0;

    }


    .hero-container {

        grid-template-columns:
            1fr;

        gap: 50px;

    }


    .hero-content {

        max-width: 760px;

    }


    .hero-visual {

        max-width: 700px;

    }


    /* =============================================
       SEGMENT HERO
    ============================================== */

    .segment-hero {

        padding:
            60px 0;

    }


    .segment-hero-container {

        grid-template-columns:
            1fr;

        gap: 45px;

    }


    .segment-hero-summary {

        max-width: 700px;

    }


    /* =============================================
       SECTION HEADING
    ============================================== */

    .section-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 16px;

    }


    /* =============================================
       CATEGORÍAS
    ============================================== */

    .category-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 10px;

    }


    /* =============================================
       PRODUCTOS
    ============================================== */

    .products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    /* =============================================
       INFO HOME
    ============================================== */

    .home-info-grid {

        grid-template-columns:
            1fr;

        gap: 40px;

    }


    /* =============================================
       PRODUCT DETAIL
    ============================================== */

    .product-detail {

        grid-template-columns:
            1fr;

        gap: 45px;

    }


    .product-detail-image-wrapper {

        position: relative;

        top: auto;

        min-height: 480px;

    }


    .product-detail-info {

        padding: 0;

    }


    /* =============================================
       FOOTER
    ============================================== */

    .footer-container {

        grid-template-columns:
            1fr 1fr;

        gap: 45px;

    }


    .footer-brand {

        grid-column:
            1 / -1;

    }

}


/* =========================================================
   HASTA 650PX
========================================================= */

@media (max-width: 650px) {

    /* =============================================
       GENERAL
    ============================================== */

    .container {

        width:
            min(
                calc(100% - 28px),
                var(--container-width)
            );

    }


    /* =============================================
       HERO
    ============================================== */

    .hero {

        padding:
            60px 0;

    }


    .hero h1 {

        font-size:
            clamp(
                2.5rem,
                12vw,
                3.5rem
            );

    }


    .hero-visual {

        grid-template-columns:
            1fr 1fr;

    }


    .hero-visual-item {

        min-height: 125px;

        padding: 18px;

    }


    /* =============================================
       SECCIONES
    ============================================== */

    .segments-section,
    .home-info-section {

        padding:
            70px 0;

    }


    /* =============================================
       SEGMENTOS
    ============================================== */

    .segments-grid {

        grid-template-columns:
            1fr;

    }


    .segment-card {

        min-height: 245px;

    }


    /* =============================================
       HERO DE SEGMENTO
    ============================================== */

    .segment-hero {

        padding:
            50px 0;

    }


    .segment-hero h1 {

        font-size:
            clamp(
                2.4rem,
                12vw,
                3.4rem
            );

    }


    .segment-hero-summary {

        grid-template-columns:
            1fr 1fr;

    }


    /* =============================================
       CATÁLOGO
    ============================================== */

    .segment-catalog {

        padding:
            70px 0 85px;

    }


    .catalog-tools {

        margin-bottom: 50px;

        padding: 18px;

    }


    /* =============================================
       FILTROS

       En móvil permitimos desplazamiento horizontal
       para evitar que ocupen demasiado espacio.
    ============================================== */

    .category-filters {

        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 5px;

        scrollbar-width: thin;

    }


    .filter-button {

        flex-shrink: 0;

    }


    .catalog-status {

        align-items: flex-start;

        flex-direction: column;

        gap: 8px;

    }


    /* =============================================
       CATEGORÍAS
    ============================================== */

    .category-section {

        margin-bottom: 65px;

    }


    /* =============================================
       PRODUCTOS
    ============================================== */

    .products-grid {

        grid-template-columns:
            1fr;

    }


    .product-image-wrapper {

        height: 300px;

    }


    .product-content {

        padding: 20px;

    }


    /* =============================================
       CONTACTO
    ============================================== */

    .contact-section {

        padding:
            60px 0;

    }


    .contact-container {

        align-items: flex-start;

        flex-direction: column;

        gap: 28px;

    }


    .contact-container .button {

        width: 100%;

    }


    /* =============================================
       DETALLE DEL PRODUCTO
    ============================================== */

    .product-detail-section {

        padding:
            30px 0 70px;

    }


    .product-breadcrumb {

        margin-bottom: 25px;

    }


    .product-detail {

        gap: 35px;

    }


    .product-detail-image-wrapper {

        min-height: 380px;

        padding: 35px;

        border-radius:
            var(--radius-medium);

    }


    .product-detail-info h1 {

        font-size:
            clamp(
                2rem,
                10vw,
                2.8rem
            );

    }


    .product-detail-actions {

        flex-direction: column;

    }


    .product-detail-actions .button {

        width: 100%;

    }


    .product-extra-info {

        grid-template-columns:
            1fr;

    }


    .product-extra-item {

        border-right: 0;

        border-bottom:
            1px solid var(--color-border-light);

    }


    .product-extra-item:last-child {

        border-bottom: 0;

    }


    /* =============================================
       FOOTER
    ============================================== */

    .footer-container {

        grid-template-columns:
            1fr;

        gap: 35px;

        padding-top: 50px;

        padding-bottom: 45px;

    }


    .footer-brand {

        grid-column: auto;

    }

}


/* =========================================================
   HASTA 420PX
========================================================= */

@media (max-width: 420px) {

    /* HERO */

    .hero-visual,
    .segment-hero-summary {

        grid-template-columns:
            1fr;

    }


    .hero-visual-item,
    .segment-hero-summary > div {

        min-height: 105px;

    }


    /* PRODUCTOS */

    .product-image-wrapper {

        height: 260px;

    }


    .product-original-price-row,
    .product-discount-price-row {

        align-items: flex-start;

        flex-direction: column;

        gap: 4px;

    }


    .product-discount-price {

        font-size: 1.35rem;

    }

}

/* =========================================================
   PRECIOS CON DESCUENTO

   - Precio original: rojo y tachado.
   - Precio final: debajo del precio original.
========================================================= */


/* PRECIO ORIGINAL */

.product-old-price,
.product-detail-original-price {
    display: block;

    color: #c62828;

    text-decoration-line: line-through;
    text-decoration-color: #c62828;
    text-decoration-thickness: 2px;

    font-weight: 500;

    margin-bottom: 5px;
}


/* PRECIO FINAL EN LAS TARJETAS */

.product-price strong {
    display: block;

    font-weight: 700;
}


/* PRECIO FINAL EN PRODUCTO.HTML */

.product-detail-final-price {
    display: block;

    font-weight: 700;
}

/* =========================================================
   AJUSTES FINALES - LIQUI MOLY

   Este bloque debe permanecer AL FINAL de style.css.

   Funciones:
   1. Eliminar visualmente cualquier sección antigua
      de contacto que todavía exista temporalmente.
   2. Mantener las imágenes de producto limpias.
   3. Mostrar el descuento junto al precio.
   4. Precio original rojo y tachado.
   5. Precio final debajo.
========================================================= */


/* =========================================================
   01. CONTACTO ELIMINADO
========================================================= */

.contact-section {
    display: none !important;
}



/* =========================================================
   02. OCULTAR BADGE ANTIGUO EN IMAGEN

   Esto también protege el diseño si alguna página todavía
   conserva temporalmente markup antiguo.
========================================================= */

.product-image-wrapper > .product-discount-badge {
    display: none !important;
}



/* =========================================================
   03. BLOQUE DE PRECIO DE LAS TARJETAS
========================================================= */

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;

    gap: 4px;

    margin-top: 12px;
}



/* =========================================================
   04. ETIQUETA DE DESCUENTO

   Ahora aparece encima del precio anterior y NO
   encima de la imagen.
========================================================= */

.product-discount-label {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-bottom: 4px;

    padding:
        5px 9px;

    border:
        1px solid
        var(--color-discount);

    border-radius:
        999px;

    background:
        var(--color-discount-light);

    color:
        var(--color-discount-dark);

    font-size:
        0.7rem;

    font-weight:
        800;

    line-height:
        1;

    letter-spacing:
        0.03em;

    text-transform:
        uppercase;
}



/* =========================================================
   05. PRECIO ORIGINAL

   Rojo + tachado.
========================================================= */

.product-old-price,
.product-detail-original-price {
    display: block;

    color:
        var(--color-discount);

    font-size:
        0.84rem;

    font-weight:
        500;

    line-height:
        1.35;

    text-decoration-line:
        line-through;

    text-decoration-color:
        var(--color-discount);

    text-decoration-thickness:
        2px;

    margin:
        0;
}



/* =========================================================
   06. PRECIO FINAL DE LA TARJETA
========================================================= */

.product-final-price,
.product-price > strong {
    display: block;

    margin:
        0;

    color:
        var(--color-primary-dark);

    font-size:
        1rem;

    font-weight:
        800;

    line-height:
        1.3;
}



/* =========================================================
   07. CONSULTAR PRECIO
========================================================= */

.product-consult-price {
    display: block;

    color:
        var(--color-primary);

    font-size:
        0.9rem;

    font-weight:
        800;

    line-height:
        1.4;
}



/* =========================================================
   08. PRODUCTO INDIVIDUAL

   Mantener también el precio original rojo/tachado
   en producto.html.
========================================================= */

.product-detail-original-price {
    margin-bottom:
        5px;
}


.product-detail-final-price {
    display: block;

    color:
        var(--color-primary-dark);

    font-weight:
        800;
}



/* =========================================================
   09. RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .product-discount-label {
        font-size:
            0.67rem;

        padding:
            5px 8px;
    }


    .product-final-price,
    .product-price > strong {
        font-size:
            0.95rem;
    }

}

/* =========================================================
   AJUSTES FINALES DE TARJETAS - LIQUI MOLY
   Mantiene la estructura visual original del catálogo.
========================================================= */

.product-type {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
}

.product-reference {
    display: block;
    margin-top: auto;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
}

.product-original-price {
    color: var(--color-discount);
    text-decoration-color: var(--color-discount);
    text-decoration-thickness: 1.5px;
}

.product-discount-label {
    text-transform: uppercase;
}
