/* =========================================================
   PRODUCTOS - REPSA
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --repsa-orange: #F3542D;
    --repsa-orange-dark: #d94420;
    --repsa-black: #161616;
    --repsa-gray: #666666;
    --repsa-light: #f5f5f5;
    --repsa-white: #ffffff;
    --repsa-border: #e5e5e5;

    --content-width: 1180px;
}


/* =========================================================
   GENERAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    color: var(--repsa-black);

    background: #ffffff;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--content-width);

    margin: 0 auto;

    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================
   ENCABEZADO REPSA - IGUAL QUE INDEX.HTML
   ========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1180px;
    min-height: 90px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LOGO */

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    display: block;
    width: 245px;
    height: auto;
}

/* MENÚ PRINCIPAL */

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 90px;
    padding: 0 15px;
    color: #161616;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.main-nav > ul > li:hover > a,
.main-nav > ul > li.active > a {
    color: #F3542D;
}

/* FLECHAS */

.main-nav li.has-submenu > a > .fa-angle-down,
.main-nav li.has-submenu > a > .fa-angle-right {
    display: inline-block;
    margin-left: 7px;
    font-size: 12px;
    font-weight: normal;
}

.main-nav ul.productos-menu > li.has-submenu > a > .fa-angle-right {
    margin-left: 12px;
}

/* SUBMENÚS */

.main-nav ul.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2000;
    min-width: 230px;
    margin: 0;
    padding: 8px 0;
    background: #ffffff;
    border-top: 3px solid #F3542D;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.main-nav li:hover > ul.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul.submenu li {
    width: 100%;
}

.main-nav ul.submenu li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 18px;
    color: #333333;
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    transition: all 0.2s ease;
}

.main-nav ul.submenu li > a:hover {
    color: #ffffff;
    background: #F3542D;
}

/* SUBMENÚ DE SEGUNDO NIVEL */

.main-nav ul.submenu ul.submenu {
    top: -8px;
    left: 100%;
    border-top: 0;
    border-left: 3px solid #F3542D;
}

/* BOTÓN DEL MENÚ MÓVIL */

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #F3542D;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

/* TABLET */

@media (max-width: 1200px) {
    .site-header-inner {
        padding-left: 25px;
        padding-right: 25px;
    }

    .main-nav > ul > li > a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
    }
}

@media (max-width: 1000px) {
    .site-header-inner {
        min-height: 80px;
    }

    .site-logo img {
        width: 210px;
    }

    .main-nav > ul > li > a {
        min-height: 80px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 11px;
    }
}

/* MENÚ MÓVIL */

@media (max-width: 800px) {
    .site-header-inner {
        position: relative;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1002;
        display: none;
        width: 100%;
        margin: 0;
        background: #ffffff;
        border-top: 1px solid #eeeeee;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav.menu-open {
        display: block;
    }

    .main-nav > ul {
        display: block;
        width: 100%;
    }

    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid #eeeeee;
    }

    .main-nav > ul > li > a {
        min-height: auto;
        justify-content: space-between;
        padding: 15px 20px;
        font-size: 13px;
        white-space: normal;
    }

    .main-nav ul.submenu,
    .main-nav ul.submenu ul.submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        background: #f7f7f7;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-nav li.submenu-open > ul.submenu {
        display: block;
    }

    .main-nav ul.submenu li > a {
        padding: 12px 35px;
        background: #f7f7f7;
        font-size: 12px;
    }

    .main-nav ul.submenu ul.submenu li > a {
        padding-left: 50px;
    }
}

/* CELULARES */

@media (max-width: 600px) {
    .site-header-inner {
        min-height: 72px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-logo img {
        width: 180px;
    }
}

/* =========================================================
   CABECERA DE PÁGINA
   ========================================================= */

.page-hero {
    padding: 80px 0;

    background:
        linear-gradient(
            135deg,
            #171717 0%,
            #262626 100%
        );

    color: #ffffff;

    text-align: center;
}


.page-hero-kicker {
    display: block;

    margin-bottom: 12px;

    color: var(--repsa-orange);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.page-hero h1 {
    margin: 0 0 15px;

    font-size: 46px;

    line-height: 1.1;

    font-weight: 700;
}


.page-hero p {
    max-width: 650px;

    margin: 0 auto;

    color: #dddddd;

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   INTRODUCCIÓN
   ========================================================= */

.productos-intro {
    padding: 90px 0;
}


.productos-intro-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 65px;

    align-items: center;
}


.productos-intro-image {
    overflow: hidden;

    border-radius: 4px;

    background: #f5f5f5;
}


.productos-intro-image img {
    display: block;

    width: 100%;

    height: 450px;

    object-fit: cover;
}


.productos-intro-content {
    padding-right: 10px;
    text-align: justify;
}


.section-kicker {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--repsa-orange);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.productos-intro-content h2 {
    margin: 0 0 22px;

    color: var(--repsa-black);

    font-size: 34px;

    line-height: 1.2;
}


.productos-intro-content p {
    margin: 0 0 15px;

    color: var(--repsa-gray);

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   SECCIONES DE PRODUCTOS
   ========================================================= */

.productos-section {
    padding: 90px 0;
}


.productos-section-gray {
    background: var(--repsa-light);
}


.section-heading {
    max-width: 700px;

    margin: 0 auto 45px;

    text-align: center;
}


.section-heading h2 {
    margin: 0 0 12px;

    font-size: 34px;

    line-height: 1.2;
}


.section-heading p {
    margin: 0;

    color: var(--repsa-gray);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   GRID DE PRODUCTOS
   ========================================================= */

.productos-grid {
    display: grid;

    gap: 25px;

    align-items: stretch;
}


/* 4 TARJETAS */

.productos-grid-four {
    grid-template-columns: repeat(4, 1fr);
}


/* 5 TARJETAS */

.productos-grid-five {
    grid-template-columns: repeat(5, 1fr);
}


/* =========================================================
   TARJETA
   ========================================================= */

.producto-card {
    display: flex;

    flex-direction: column;

    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--repsa-border);

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.producto-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   IMAGEN TARJETA
   ========================================================= */

.producto-card-image {
    width: 100%;

    height: 225px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #f7f7f7;
}


.producto-card-image img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    transition: transform 0.35s ease;
}


.producto-card:hover .producto-card-image img {
    transform: scale(1.05);
}


/* =========================================================
   CONTENIDO TARJETA
   ========================================================= */

.producto-card-content {
    display: flex;
    text-align: justify;
    flex-direction: column;

    flex: 1;

    padding: 24px;
}


.producto-card-category {
    display: block;

    margin-bottom: 10px;

    color: var(--repsa-orange);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    line-height: 1.4;

    text-transform: uppercase;
}


.producto-card h3 {
    min-height: 48px;

    margin: 0 0 22px;

    color: var(--repsa-black);

    font-size: 20px;

    line-height: 1.3;
}


/* =========================================================
   BOTÓN VER MÁS
   ========================================================= */

.producto-card-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    width: 100%;

    margin-top: auto;

    padding: 12px 18px;

    background: var(--repsa-orange);

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.producto-card-button:hover {
    background: var(--repsa-orange-dark);

    color: #ffffff;
}


.producto-card-button i {
    transition: transform 0.25s ease;
}


.producto-card-button:hover i {
    transform: translateX(4px);
}


/* =========================================================
   MERCADERÍAS
   ========================================================= */

.mercaderias-wrapper {
    display: flex;

    justify-content: center;
}


.producto-card-mercaderia {
    width: 330px;

    max-width: 100%;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #161616;
    color: #ffffff;
}


.footer-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1.2fr;

    gap: 45px;

    padding-top: 38px;
    padding-bottom: 30px;
}


.footer-column {
    min-width: 0;
}


.footer-logo {
    width: 190px;

    height: auto;

    margin-bottom: 10px;
}


.footer-column h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;
}


.footer-column p {
    margin: 0 0 9px;

    color: #bbbbbb;

    font-size: 13px;

    line-height: 1.55;
}


.footer-column p i {
    width: 18px;

    color: #F3542D;

    margin-right: 4px;
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    padding: 13px 0;

    text-align: center;
}


.footer-bottom p {
    margin: 0;

    color: #888888;

    font-size: 11px;
}


/* =========================================================
   BOTÓN SUBIR
   ========================================================= */

.back-to-top {
    position: fixed;

    right: 25px;

    bottom: 25px;

    z-index: 999;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 3px;

    background: var(--repsa-orange);

    color: #ffffff;

    font-size: 17px;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.2s ease;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


.back-to-top:hover {
    background: var(--repsa-orange-dark);

    transform: translateY(-2px);
}


.back-to-top.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .site-header-inner {
        padding-left: 25px;
        padding-right: 25px;
    }

    .main-nav > ul > li > a {
        padding-left: 10px;
        padding-right: 10px;

        font-size: 12px;
    }

    .productos-grid-five {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 1000px) {

    .site-header-inner {
        min-height: 80px;
    }

    .site-logo img {
        width: 210px;
    }

    .main-nav > ul > li > a {
        min-height: 80px;

        padding-left: 8px;
        padding-right: 8px;

        font-size: 11px;
    }

    .productos-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }

    .productos-grid-five {
        grid-template-columns: repeat(2, 1fr);
    }

    .productos-intro-grid {
        gap: 40px;
    }

}


@media (max-width: 800px) {

    .menu-toggle {
        display: flex;

        align-items: center;

        justify-content: center;
    }


    .main-nav {
        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        display: none;

        background: #ffffff;

        border-top: 1px solid #eeeeee;

        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }


    .main-nav.menu-open {
        display: block;
    }


    .main-nav > ul {
        display: block;

        width: 100%;
    }


    .main-nav > ul > li {
        width: 100%;

        border-bottom: 1px solid #eeeeee;
    }


    .main-nav > ul > li > a {
        min-height: auto;

        padding: 15px 20px;

        justify-content: space-between;

        font-size: 13px;
    }


    .main-nav ul ul,
    .main-nav ul ul ul {
        position: static;

        width: 100%;

        min-width: 0;

        display: block;

        opacity: 1;

        visibility: visible;

        transform: none;

        border-top: 0;

        border-left: 0;

        box-shadow: none;

        padding: 0;

        background: #f7f7f7;
    }


    .main-nav ul ul li a {
        padding: 12px 35px;

        background: #f7f7f7;

        font-size: 12px;
    }


    .main-nav ul ul ul li a {
        padding-left: 50px;
    }


    .productos-intro-grid {
        grid-template-columns: 1fr;
    }


    .productos-intro-image img {
        height: 350px;
    }


    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 600px) {

    .site-header-inner {
        min-height: 72px;

        padding-left: 15px;
        padding-right: 15px;
    }


    .site-logo img {
        width: 180px;
    }


    .page-hero {
        padding: 60px 0;
    }


    .page-hero h1 {
        font-size: 36px;
    }


    .page-hero p {
        font-size: 15px;
    }


    .productos-intro {
        padding: 60px 0;
    }


    .productos-intro-content h2 {
        font-size: 28px;
    }


    .productos-section {
        padding: 65px 0;
    }


    .section-heading h2 {
        font-size: 28px;
    }


    .productos-grid-four,
    .productos-grid-five {
        grid-template-columns: 1fr;
    }


    .producto-card-image {
        height: 240px;
    }


    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }


    .back-to-top {
        right: 15px;

        bottom: 15px;

        width: 44px;

        height: 44px;
    }

}

/* =========================================
   COLORES INTERCALADOS DE PRODUCTOS
   ========================================= */

/* PRODUCTOS - BLANCO */
.productos-intro {
    background: #ffffff;
    color: #161616;
}


/* LADRILLOS - NARANJA */
#ladrillos {
    background: #F3542D;
    color: #ffffff;
}


/* MASAS - BLANCO */
#masas {
    background: #ffffff;
    color: #161616;
}


/* MERCADERÍAS - NARANJA */
#mercaderias {
    background: #F3542D;
    color: #ffffff;
}

/* =========================================
   TARJETAS SOBRE FONDO NARANJA
   ========================================= */

#ladrillos .producto-card,
#mercaderias .producto-card {
    background: #ffffff;
    color: #161616;
}

#ladrillos .producto-card h3,
#mercaderias .producto-card h3 {
    color: #161616;
}

#ladrillos .producto-card-category,
#mercaderias .producto-card-category {
    color: #F3542D;
}

#ladrillos .section-heading h2,
#ladrillos .section-heading p,
#mercaderias .section-heading h2,
#mercaderias .section-heading p {
    color: #ffffff;
}

#ladrillos .section-kicker,
#mercaderias .section-kicker {
    color: #ffffff;
}


/* =========================================
   MERCADERÍAS
   ========================================= */

.mercaderias-section {
    background: #F3542D;
    padding: 80px 0;
}

/* ENCABEZADO */

.mercaderias-section .section-heading {
    margin-bottom: 40px;
}

.mercaderias-section .section-kicker,
.mercaderias-section .section-heading h2 {
    color: #ffffff;
}

.mercaderias-section .section-heading p {
    color: rgba(255, 255, 255, 0.9);
}

/* CONTENEDOR PRINCIPAL */

.mercaderias-box {
    display: grid;

    /* Foto más ancha que el texto */
    grid-template-columns: 55% 45%;

    align-items: stretch;
    background: #ffffff;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

/* =========================================
   IMAGEN
   ========================================= */

.mercaderias-image {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mercaderias-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

/* =========================================
   INFORMACIÓN
   ========================================= */

.mercaderias-info {
    min-width: 0;
    padding: 40px 35px;
    background: #ffffff;
    box-sizing: border-box;
}

/* ETIQUETA */

.mercaderias-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #F3542D;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* TÍTULO */

.mercaderias-info h3 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 17px;
    color: #161616;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.mercaderias-info h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 55px;
    height: 3px;
    background: #F3542D;
}

/* TEXTO INTRODUCTORIO */

.mercaderias-intro {
    margin: 0 0 22px;
    color: #555555;
    font-size: 13px;
    line-height: 1.7;
    text-align: justify;
}

/* LISTA */

.mercaderias-lista {
    border-top: 1px solid #eeeeee;
    padding-top: 18px;
}

.mercaderias-lista ol {
    margin: 0;
    padding-left: 22px;
    columns: 1;
}

.mercaderias-lista li {
    margin-bottom: 7px;
    padding-left: 3px;
    color: #333333;
    font-size: 12px;
    line-height: 1.45;
    break-inside: avoid;
}

.mercaderias-lista li::marker {
    color: #F3542D;
    font-weight: 700;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1000px) {

    .mercaderias-box {
        grid-template-columns: 50% 50%;
    }

    .mercaderias-info {
        padding: 30px 25px;
    }

    .mercaderias-info h3 {
        font-size: 25px;
    }

    .mercaderias-intro {
        font-size: 12px;
    }

    .mercaderias-lista li {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 800px) {

    .mercaderias-section {
        padding: 60px 0;
    }

    .mercaderias-box {
        grid-template-columns: 1fr;
    }

    .mercaderias-image {
        height: auto;
        min-height: 0;
        padding: 0;
    }

    .mercaderias-image img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
    }

    .mercaderias-info {
        padding: 30px 25px;
    }

    .mercaderias-info h3 {
        font-size: 25px;
    }

    .mercaderias-intro {
        font-size: 13px;
        text-align: left;
    }

    .mercaderias-lista li {
        font-size: 12px;
    }
}

/* =========================================
   MÓVIL PEQUEÑO
   ========================================= */

@media (max-width: 500px) {

    .mercaderias-section {
        padding: 45px 0;
    }

    .mercaderias-info {
        padding: 25px 20px;
    }

    .mercaderias-info h3 {
        font-size: 23px;
    }

    .mercaderias-label {
        font-size: 11px;
    }

    .mercaderias-lista li {
        font-size: 12px;
        margin-bottom: 8px;
    }
}


/* =========================================
   TARJETAS DE LADRILLOS
   ========================================= */

#ladrillos .productos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Todas las tarjetas tienen la misma altura */
#ladrillos .producto-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
}

/* Imágenes del mismo tamaño, sin espacios interiores */
#ladrillos .producto-card-image {
    width: 100%;
    height: 210px;
    flex: 0 0 210px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #f4f4f4;
    box-sizing: border-box;
}

#ladrillos .producto-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

/* Contenido de altura uniforme */
#ladrillos .producto-card-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    padding: 18px 18px 20px;
    box-sizing: border-box;
}

/* Categoría */
#ladrillos .producto-card-category {
    display: block;
    margin: 0 0 7px;
    font-size: 10px;
    line-height: 1.4;
}

/* Título */
#ladrillos .producto-card-content h3 {
    margin: 0 0 10px;
    min-height: 25px;
    font-size: 19px;
    line-height: 1.3;
}

/* Reserva el mismo espacio para todas las descripciones */
#ladrillos .producto-card-description {
    margin: 0 0 18px;
    min-height: 58px;
    color: #666666;
    font-size: 12px;
    line-height: 1.5;
}

/* Todos los botones se alinean abajo */
#ladrillos .producto-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 10px 12px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Tablet */
@media (max-width: 900px) {
    #ladrillos .productos-grid,
    #ladrillos .productos-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Móvil */
@media (max-width: 520px) {
    #ladrillos .productos-grid,
    #ladrillos .productos-grid-four {
        grid-template-columns: 1fr;
    }

    #ladrillos .producto-card-image {
        height: 240px;
        flex-basis: 240px;
    }
}

/* =========================================
   TARJETAS DE MASAS REFRACTARIAS
   ========================================= */

#masas .productos-grid,
#masas .productos-grid-five {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* Tarjetas con estructura uniforme */
#masas .producto-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

#masas .producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.13);
}

/* Imágenes del mismo tamaño */
#masas .producto-card-image {
    width: 100%;
    height: 185px;
    flex: 0 0 185px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #f3f3f3;
    box-sizing: border-box;
}

#masas .producto-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

#masas .producto-card:hover .producto-card-image img {
    transform: scale(1.04);
}

/* Contenido compacto */
#masas .producto-card-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    padding: 17px 15px 18px;
    box-sizing: border-box;
}

#masas .producto-card-category {
    display: block;
    margin: 0 0 7px;
    color: #F3542D;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.8px;
}

#masas .producto-card-content h3 {
    margin: 0 0 9px;
    color: #161616;
    font-size: 17px;
    line-height: 1.35;
}

/* Misma altura para las descripciones */
#masas .producto-card-description {
    margin: 0 0 16px;
    min-height: 76px;
    color: #666666;
    font-size: 12px;
    line-height: 1.55;
}

/* Botones alineados en la parte inferior */
#masas .producto-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 8px;
    box-sizing: border-box;
    background: #F3542D;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.25s ease;
}

#masas .producto-card-button:hover {
    background: #161616;
}

/* Pantallas medianas: tres tarjetas por fila */
@media (max-width: 1100px) {
    #masas .productos-grid,
    #masas .productos-grid-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet: dos tarjetas por fila */
@media (max-width: 760px) {
    #masas .productos-grid,
    #masas .productos-grid-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    #masas .producto-card-image {
        height: 210px;
        flex-basis: 210px;
    }
}

/* Celular: una tarjeta por fila */
@media (max-width: 520px) {
    #masas .productos-grid,
    #masas .productos-grid-five {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #masas .producto-card-image {
        height: 240px;
        flex-basis: 240px;
    }

    #masas .producto-card-content {
        padding: 20px;
    }

    #masas .producto-card-description {
        min-height: 0;
    }
}

/* LINKEDIN EN EL HEADER - SOLO INDEX */
.header-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-left: 10px;
    color: #0A66C2;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-linkedin:hover {
    color: #F3542D;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 800px) {
    .header-linkedin {
        margin-left: auto;
        margin-right: 10px;
    }
}


/* Corregir únicamente los márgenes de estos dos botones */
#ladrillos .producto-card:nth-child(4) .producto-card-button,
#masas .producto-card:nth-child(4) .producto-card-button {
    margin-top: 30px !important;
}


/* Igualar el margen de los botones de masas */
#masas .producto-card-button {
    margin-top: 60px !important;
}

/* Mantener alineados los botones de ladrillos */
#ladrillos .producto-card-button {
    margin-top: 30px !important;
}



#masas .producto-card:has(h3) .producto-card-button {
    margin-top: 60px !important;
}


/* Ajustar solo los botones de Apisonables y Proyectables */
#masas .productos-grid-five > .producto-card:nth-child(4) .producto-card-button,
#masas .productos-grid-five > .producto-card:nth-child(5) .producto-card-button {
    margin-top: 60px !important;
}
