:root {
    --blue: #00a8e8;
    --blue-dark: #008dcc;
    --blue-light: #eaf8fd;

    --red: #e30613;
    --red-dark: #bd000b;
    --red-light: #fff0f1;

    --green: #20b858;

    --dark: #17202a;
    --text: #333b43;
    --muted: #69737d;

    --white: #ffffff;
    --gray-50: #fafbfc;
    --gray-100: #f3f5f7;
    --gray-200: #e5e9ed;
    --gray-300: #d5dce2;
    --gray-600: #69737d;
    --gray-700: #4d5964;

    --container: 1180px;

    --shadow-sm: 0 4px 14px rgba(23, 32, 42, 0.08);
    --shadow-md: 0 10px 30px rgba(23, 32, 42, 0.12);
    --shadow-lg: 0 18px 45px rgba(23, 32, 42, 0.16);

    --radius: 12px;
    --radius-lg: 18px;

    --transition: 0.25s ease;
}


/* =====================================================
   RESET
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Evita que el header fijo + banner de promoción tapen el
   inicio de cada sección al saltar con un ancla (#contacto, etc.) */
section[id] {
    scroll-margin-top: 160px;
}

.quoting-product {
    display: inline-block;

    margin-bottom: 14px;
    padding: 10px 16px;

    background: var(--blue-light);
    border: 1px solid var(--blue);
    border-radius: var(--radius);

    color: var(--blue-dark);
    font-weight: 700;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
    overflow-x: hidden;

    padding-top: 78px;

    transition: padding-top 0.3s ease;
}

body.promo-closed {
    padding-top: 0;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}


/* =====================================================
   BOTONES
   ===================================================== */

.btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    border-radius: 6px;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--blue);

    box-shadow:
        0 7px 18px rgba(0, 168, 232, 0.22);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-red {
    color: var(--white);
    background: var(--red);

    box-shadow:
        0 7px 18px rgba(227, 6, 19, 0.22);
}

.btn-red:hover {
    background: var(--red-dark);
}

.btn-outline {
    color: var(--red);
    background: var(--white);

    border: 1.5px solid var(--red);
}

.btn-outline:hover {
    color: var(--white);
    background: var(--red);
}

.btn-white {
    color: var(--red);
    background: var(--white);
}

.btn-small {
    min-height: 34px;
    padding: 0 14px;

    font-size: 0.68rem;

    color: var(--white);
    background: var(--blue);

    border-radius: 5px;
}

.btn-small:hover {
    background: var(--red);
}


/* =====================================================
   HEADER
   ===================================================== */

.site-header {
    position: sticky;
    top: 78px;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--gray-200);

    backdrop-filter: blur(10px);

    transition: top 0.3s ease;
}

body.promo-closed .site-header {
    top: 0;
}

.header-container {
    min-height: 76px;

    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-link {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.site-logo {
    width: auto;
    max-width: 165px;
    max-height: 55px;

    object-fit: contain;
}

.main-navigation {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 25px;
}

.main-navigation a {
    position: relative;

    color: var(--dark);

    font-size: 0.75rem;
    font-weight: 700;

    transition: color var(--transition);
}

.main-navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--blue);

    transition: width var(--transition);
}

.main-navigation a:hover {
    color: var(--blue);
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-cta {
    min-height: 40px;

    padding: 0 18px;

    color: var(--white);
    background: var(--red);

    border-radius: 5px;

    white-space: nowrap;
}

.header-cta:hover {
    background: var(--red-dark);
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    background: transparent;
}

.menu-toggle span {
    width: 22px;
    height: 2px;

    background: var(--dark);

    border-radius: 10px;
}


/* =====================================================
   ETIQUETAS Y TÍTULOS
   ===================================================== */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    color: var(--blue);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.1em;
}

.section-label::before {
    content: "";

    width: 23px;
    height: 3px;

    border-radius: 10px;

    background: var(--blue);
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2 {
    color: var(--dark);

    font-size: clamp(2rem, 4vw, 2.8rem);

    line-height: 1.08;

    font-weight: 800;

    margin-bottom: 12px;
}

.section-heading p {
    max-width: 680px;

    color: var(--muted);

    font-size: 0.92rem;
}

.section-heading-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}


/* =====================================================
   HERO
   ===================================================== */

.hero {
    position: relative;

    overflow: hidden;

    padding: 55px 0 42px;

    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #ffffff 52%,
            #f5fafc 100%
        );
}

.hero::after {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    right: -150px;
    top: -120px;

    border-radius: 50%;

    background: rgba(227, 6, 19, 0.08);

    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;

    display: flex;

    justify-content: center;

    text-align: center;
}

.hero-content {
    max-width: 700px;
}

.hero-content .section-label {
    color: var(--dark);

    font-size: 0.74rem;
}

.hero-content .section-label::before {
    background: var(--red);
}

.hero-content h1 {
    color: var(--dark);

    font-size: clamp(2.5rem, 4.5vw, 4rem);

    line-height: 1.02;

    letter-spacing: -0.035em;

    font-weight: 900;

    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--blue);
}

.hero-discount-pill {
    display: inline-flex;
    align-items: center;

    padding: 10px 26px;
    margin-bottom: 25px;

    color: var(--white);
    background: var(--red);

    border-radius: 30px;

    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;

    box-shadow: 0 10px 25px rgba(227, 6, 19, 0.3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 12px;
}

.hero-media {
    position: relative;

    min-height: 385px;

    overflow: hidden;

    border-radius: var(--radius-lg);

    background: var(--gray-100);

    box-shadow: var(--shadow-lg);
}

.hero-media::after {
    content: "";

    position: absolute;
    inset: 0;

    border: 5px solid rgba(255, 255, 255, 0.8);

    border-radius: inherit;

    pointer-events: none;
}

.hero-media img {
    width: 100%;
    height: 100%;

    min-height: 385px;

    object-fit: cover;
}


/* =====================================================
   BENEFICIOS
   ===================================================== */

.benefits {
    padding: 38px 0 50px;

    background: var(--white);
}

.benefits .section-heading {
    margin-bottom: 30px;
}

.benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.benefit-card {
    position: relative;

    padding: 25px 22px;

    background: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}

.benefit-card:nth-child(3)::before {
    background: var(--red);
}

.benefit-card::before {
    content: "";

    position: absolute;

    left: 22px;
    top: 0;

    width: 45px;
    height: 3px;

    background: var(--blue);

    border-radius: 0 0 5px 5px;
}

.benefit-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 15px;

    border-radius: 50%;

    background: var(--blue-light);
}

.benefit-card:nth-child(3) .benefit-icon {
    background: var(--red-light);
}

.benefit-icon img {
    width: 28px;
    height: 28px;

    object-fit: contain;
}

.benefit-card h3 {
    color: var(--dark);

    font-size: 1rem;

    margin-bottom: 7px;
}

.benefit-card p {
    color: var(--muted);

    font-size: 0.82rem;
}


/* =====================================================
   CATEGORÍAS
   ===================================================== */

.categories {
    padding: 70px 0;

    background: var(--gray-50);
}

.categories-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.category-card {
    text-align: center;

    background: transparent;

    border: 0;

    box-shadow: none;

    transition: transform var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 105px;
    height: 105px;

    margin: 0 auto 12px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: 50%;

    box-shadow: var(--shadow-sm);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.category-card:hover .category-image {
    border-color: var(--blue);

    box-shadow:
        0 8px 20px rgba(0, 168, 232, 0.18);
}

.category-image img {
    width: 78%;
    height: 78%;

    object-fit: contain;
}

.category-content {
    padding: 0;
}

.category-content h3 {
    color: var(--blue);

    font-size: 0.74rem;
    font-weight: 800;

    line-height: 1.25;

    margin-bottom: 0;
}

.category-content p,
.category-link {
    display: none;
}


/* =====================================================
   PRODUCTOS
   ===================================================== */

.products {
    padding: 70px 0;

    background: var(--white);
}

.text-link {
    color: var(--blue);

    font-size: 0.78rem;
    font-weight: 800;
}

.text-link:hover {
    color: var(--red);
}

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}

.product-image {
    height: 300px;
    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: var(--gray-50);
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px;
}

.product-category {
    display: block;

    color: var(--blue);

    font-size: 0.63rem;
    font-weight: 800;

    letter-spacing: 0.08em;

    margin-bottom: 6px;
}

.product-content h3 {
    min-height: 40px;

    color: var(--dark);

    font-size: 0.88rem;

    line-height: 1.3;

    margin-bottom: 7px;
}

.product-content p {
    flex: 1;
    color: var(--muted);

    font-size: 0.74rem;

    margin-bottom: 13px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding-top: 12px;

    border-top: 1px solid var(--gray-200);
}

.product-footer strong {
    color: var(--red);

    font-size: 0.76rem;
}

.product-price-block {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin-bottom: 10px;
}

.product-price-row {
    display: flex;
    align-items: baseline;

    gap: 8px;
}

.product-price-old {
    color: var(--muted);

    font-size: 0.78rem;
    font-weight: 600;

    text-decoration: line-through;
}

.product-price-discount-tag {
    display: inline-flex;
    align-items: center;

    padding: 1px 7px;

    color: var(--white);
    background: var(--muted);

    border-radius: 4px;

    font-size: 0.65rem;
    font-weight: 800;

    white-space: nowrap;
}

.product-price-final-label {
    color: var(--gray-600);

    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-price-new {
    color: var(--red);

    font-size: 1.15rem;
    font-weight: 800;
}

.product-price-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;

    padding: 2px 9px;

    color: var(--red-dark);
    background: var(--red-light);

    border-radius: 20px;

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;

    white-space: nowrap;
}

.product-modal-price {
    display: flex;
    flex-direction: column;

    gap: 6px;

    margin-bottom: 10px;
}

.product-modal-price .product-price-old {
    font-size: 0.9rem;
}

.product-modal-price .product-price-final-label {
    font-size: 0.74rem;
}

.product-modal-price .product-price-new {
    font-size: 1.75rem;
}

.product-modal-price .product-price-badge {
    font-size: 0.68rem;
    padding: 3px 11px;
}


/* =====================================================
   SERVICIOS / BLOQUES COMERCIALES
   ===================================================== */

.services {
    padding: 60px 0;

    background: var(--gray-50);
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.service-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}

.service-card > img {
    width: 100%;
    height: 175px;

    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--dark);

    font-size: 1rem;

    margin-bottom: 8px;
}

.service-content p {
    color: var(--muted);

    font-size: 0.8rem;

    margin-bottom: 12px;
}

.service-content a {
    color: var(--blue);

    font-size: 0.75rem;
    font-weight: 800;
}

.service-card:nth-child(3) .service-content a {
    color: var(--red);
}


/* =====================================================
   NOSOTROS
   ===================================================== */

.about {
    padding: 75px 0;

    background: var(--white);
}

.about-container {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 55px;
}

.about-media {
    position: relative;

    min-height: 390px;
}

.about-media::before {
    content: "";

    position: absolute;

    left: -12px;
    bottom: -12px;

    width: 75%;
    height: 75%;

    background: var(--blue);

    border-radius: var(--radius-lg);

    z-index: 0;
}

.about-media img {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 390px;

    object-fit: cover;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    color: var(--dark);

    font-size: clamp(2rem, 4vw, 2.8rem);

    line-height: 1.08;

    margin-bottom: 15px;
}

.about-content p {
    color: var(--muted);

    font-size: 0.92rem;

    max-width: 540px;

    margin-bottom: 25px;
}


/* =====================================================
   PROYECTOS
   ===================================================== */

.projects {
    padding: 65px 0;

    background: var(--gray-50);
}

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.project-card {
    position: relative;

    height: 270px;

    overflow: hidden;

    border-radius: var(--radius);

    background: var(--gray-200);
}

.project-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.35),
            transparent 55%
        );
}

.project-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

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

.project-card-caption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 18px 20px;
}

.project-card-caption h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.project-card-caption p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    line-height: 1.35;
}

.projects-cta {
    display: flex;
    justify-content: center;

    margin-top: 32px;
}


/* =====================================================
   FRANJA DE COTIZACIÓN
   ===================================================== */

.quote-cta {
    padding: 0;

    background: var(--blue);
}

.quote-container {
    min-height: 135px;

    display: flex;
    align-items: center;

    gap: 30px;
}

.quote-content {
    flex: 1;

    padding: 25px 0;
}

.quote-content .section-label {
    color: var(--white);
}

.quote-content .section-label::before {
    background: var(--white);
}

.quote-content h2 {
    color: var(--white);

    font-size: 1.5rem;

    line-height: 1.1;

    margin-bottom: 5px;
}

.quote-content p {
    color: rgba(255, 255, 255, 0.88);

    font-size: 0.78rem;
}

.quote-container .btn {
    min-width: 185px;

    color: var(--white);

    background: var(--red);
}

.quote-container .btn:hover {
    background: var(--red-dark);
}


/* =====================================================
   CONTACTO
   ===================================================== */

.contact {
    padding: 70px 0;

    background: var(--white);
}

.contact-grid {
    display: grid;

    grid-template-columns:
        0.75fr 1.25fr;

    gap: 40px;
}

.contact-info {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.contact-item {
    padding: 17px 20px;

    background: var(--gray-50);

    border-left: 3px solid var(--blue);

    border-radius: 7px;
}

.contact-item:nth-child(2) {
    border-left-color: var(--red);
}

.contact-item strong {
    display: block;

    color: var(--dark);

    font-size: 0.78rem;

    margin-bottom: 3px;
}

.contact-item span {
    color: var(--muted);

    font-size: 0.78rem;
}

.contact-form {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 16px;

    padding: 25px;

    background: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: var(--radius);

    box-shadow: var(--shadow-md);
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.form-group:nth-child(4) {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--dark);

    font-size: 0.75rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 11px 13px;

    color: var(--dark);

    background: var(--gray-50);

    border: 1px solid var(--gray-200);

    border-radius: 6px;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group textarea {
    min-height: 115px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(0, 168, 232, 0.1);
}


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

.site-footer {
    color: rgba(255, 255, 255, 0.85);

    background:
        linear-gradient(
            135deg,
            #00a8e8,
            #008dcc
        );
}

.footer-container {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1.25fr 1fr;

    gap: 35px;

    padding-top: 45px;
    padding-bottom: 35px;
}

.footer-brand img {
    max-width: 160px;
    max-height: 55px;

    margin-bottom: 13px;
}

.footer-brand p {
    max-width: 300px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.76rem;
}

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 7px;
}

.footer-column h3 {
    color: var(--white);

    font-size: 0.82rem;

    margin-bottom: 7px;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, 0.82);

    font-size: 0.72rem;

    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--red);
}

.social-links {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.social-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;
}

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

.footer-bottom .container {
    min-height: 55px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.72);

    font-size: 0.65rem;
}

.footer-bottom div div {
    display: flex;
    gap: 15px;
}


/* =====================================================
   WHATSAPP FLOTANTE
   ===================================================== */

.whatsapp-float {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 1100;

    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--white);

    background: var(--green);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.04);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
}

.whatsapp-float span {
    font-size: 1.6rem;
    line-height: 1;
}


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

@media (max-width: 1050px) {

    .main-navigation {
        gap: 16px;
    }

    .main-navigation a {
        font-size: 0.7rem;
    }

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

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

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

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


/* =====================================================
   TABLET PEQUEÑA
   ===================================================== */

@media (max-width: 850px) {

    .hero-content {
        max-width: 700px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

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

    .quote-container {
        flex-direction: column;
        align-items: stretch;

        padding: 20px 0;
    }

    .quote-content {
        padding: 0;
    }

    .quote-container .btn {
        align-self: flex-start;
    }
}


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

@media (max-width: 700px) {

    body {
        padding-top: 66px;
    }

    body.promo-closed {
        padding-top: 0;
    }

    section[id] {
        scroll-margin-top: 140px;
    }

    .site-header {
        top: 66px;
    }

    body.promo-closed .site-header {
        top: 0;
    }

    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    /* HEADER */

    .header-container {
        min-height: 70px;
    }

    .site-logo {
        max-width: 140px;
    }

    .menu-toggle {
        display: flex;

        margin-left: auto;
    }

    .main-navigation {
        position: absolute;

        top: 100%;
        left: 15px;
        right: 15px;

        display: none;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px;

        background: var(--white);

        border: 1px solid var(--gray-200);

        border-radius: 0 0 10px 10px;

        box-shadow: var(--shadow-md);
    }

    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation a {
        padding: 12px;

        font-size: 0.8rem;
    }

    .main-navigation a::after {
        display: none;
    }

    .header-cta {
        display: none;
    }


    /* HERO */

    .hero {
        padding: 42px 0 35px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-media {
        min-height: 280px;
    }

    .hero-media img {
        min-height: 280px;
    }


    /* BENEFICIOS */

    .benefits {
        padding: 45px 0;
    }

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


    /* CATEGORÍAS */

    .categories {
        padding: 55px 0;
    }

    .categories-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 22px 10px;
    }

    .category-image {
        width: 82px;
        height: 82px;
    }


    /* PRODUCTOS */

    .products {
        padding: 55px 0;
    }

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

    .product-image {
        height: 230px;
    }


    /* SERVICIOS */

    .services {
        padding: 55px 0;
    }

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


    /* NOSOTROS */

    .about {
        padding: 60px 0;
    }

    .about-media {
        min-height: 280px;
    }

    .about-media img {
        height: 280px;
    }


    /* PROYECTOS */

    .projects {
        padding: 55px 0;
    }

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

    .project-card {
        height: 250px;
    }


    /* CONTACTO */

    .contact {
        padding: 55px 0;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group:nth-child(4) {
        grid-column: auto;
    }

    .contact-form .btn {
        width: 100%;
    }


    /* FOOTER */

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

        padding-top: 40px;
    }

    .footer-bottom .container {
        min-height: auto;

        align-items: flex-start;

        flex-direction: column;

        padding-top: 18px;
        padding-bottom: 18px;
    }

    .footer-bottom div div {
        flex-wrap: wrap;
    }


    /* WHATSAPP */

    .whatsapp-float {
        right: 15px;
        bottom: 15px;

        width: 52px;
        height: 52px;
    }
}


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

@media (max-width: 420px) {

    .hero-content h1 {
        font-size: 2.15rem;
    }

    .section-heading h2 {
        font-size: 1.85rem;
    }

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

    .category-image {
        width: 90px;
        height: 90px;
    }
}

/* =====================================================
   CATÁLOGO DE PRODUCTOS — SANSON-SALDOS
   ===================================================== */

.product-category-block {
    margin-top: 28px;
}

.product-category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.product-category-heading h3 {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.product-count {
    color: var(--gray-600);
    font-size: .78rem;
    font-weight: 700;
}

.product-footer-actions {
    align-items: stretch;
    gap: 9px;
}

.product-footer-actions .btn {
    flex: 1;
    text-align: center;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.product-modal.is-open {
    display: block;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 32, .72);
    backdrop-filter: blur(4px);
}

.product-modal-dialog {
    position: relative;
    width: min(1120px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    margin: 14px auto;
    overflow: auto;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.product-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--gray-700);
    background: var(--gray-50);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.product-modal-header {
    padding: 32px 36px 22px;
    border-bottom: 1px solid var(--gray-200);
}

.product-modal-header h2 {
    margin: 5px 0 4px;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.product-modal-header p {
    margin: 0;
    color: var(--gray-600);
}

.product-modal-body {
    padding: 28px 36px 36px;
}

.product-modal-summary {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 34px;
    align-items: center;
}

.product-modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 18px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: #fff;
}

.product-modal-image img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.product-modal-info h3 {
    margin: 5px 0 8px;
    font-size: 1.65rem;
}

.product-modal-info > p {
    margin: 0 0 18px;
    color: var(--gray-600);
}

.product-highlight {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 18px 0 22px;
    padding: 16px 18px;
    border-left: 4px solid var(--red);
    background: var(--gray-50);
}

.product-highlight strong {
    font-size: 1.25rem;
}

.product-highlight span {
    color: var(--gray-600);
    font-size: .88rem;
}

.product-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-sheet-viewer {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-200);
}

.product-sheet-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.product-sheet-heading h3 {
    margin: 4px 0 0;
}

.product-sheet-heading > span {
    color: var(--gray-600);
    font-size: .78rem;
}

.product-sheet-frame {
    height: 620px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--gray-50);
}

.product-sheet-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 850px) {
    .product-modal-summary {
        grid-template-columns: 1fr;
    }

    .product-modal-header,
    .product-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .product-sheet-frame {
        height: 520px;
    }
}

@media (max-width: 700px) {
    .product-image {
        height: 230px;
        padding: 10px;
    }
}

@media (max-width: 520px) {
    .product-category-heading,
    .product-sheet-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .product-footer-actions,
    .product-modal-actions {
        flex-direction: column;
    }

    .product-image {
        height: 220px;
    }
}

/* ============================================
   EFECTO FLOTANTE — imagen del hero
   ============================================ */

.hero-floating-img {
    animation: floatHero 4s ease-in-out infinite;
}

@keyframes floatHero {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-14px);
    }
    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 700px) {
    .hero-floating-img {
        animation: floatHeroMobile 4s ease-in-out infinite;
    }
}

@keyframes floatHeroMobile {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ============================================
   BANNER FLOTANTE — promociones
   ============================================ */

.promo-float {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;

    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 44px;
    padding: 0 40px 0 18px;

    background: var(--red);
    color: var(--white);

    border-radius: 30px;

    box-shadow: 0 8px 22px rgba(227, 6, 19, 0.35);

    max-width: calc(100% - 30px);
}

.promo-float-messages {
    position: relative;
    display: grid;
    align-items: center;

    height: 20px;
    overflow: hidden;
}

.promo-float-msg {
    grid-area: 1 / 1;

    white-space: nowrap;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;

    opacity: 0;
    transform: translateY(6px);

    transition: opacity 0.5s ease, transform 0.5s ease;
}

.promo-float-msg.active {
    opacity: 1;
    transform: translateY(0);
}

.promo-float-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);

    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background: rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    font-size: 1.1rem;
    line-height: 1;

    transition: background var(--transition);
}

.promo-float-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.promo-float.is-hidden {
    display: none;
}

@media (max-width: 700px) {
    .promo-float {
        top: 12px;
        padding: 0 36px 0 14px;
        min-height: 40px;
    }

    .promo-float-msg {
        font-size: 0.68rem;
    }
}
