/* =========================================================
   NF ALFOMBRAS SOLUCIONES
   DISEÑO PREMIUM
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f4ef;
    color: #171717;
    line-height: 1.6;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
}
.logo img {
    width: auto;
    height: 58px;
    max-width: 230px;
    object-fit: contain;
    display: block;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #181818;
    color: #d2a45f;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text strong {
    color: #171717;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
}

.logo-text span {
    color: #a5793e;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-top: 6px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    position: relative;
    font-size: 0.92rem;
    font-weight: 700;
    color: #292929;
    transition: 0.25s;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: #bd8c4c;
    transition: 0.25s;
}

.nav-menu a:hover {
    color: #a87434;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-presupuesto {
    padding: 13px 22px;
    border-radius: 9px;
    background: linear-gradient(135deg, #d0a15d, #a87537);
    color: white !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 22px rgba(164, 113, 51, 0.24);
}

.btn-presupuesto::after {
    display: none;
}


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

.hero {
    position: relative;
    min-height: 820px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
rgba(8, 8, 10, 0.48) 0%,rgba(8, 8, 10, 0.40) 38%,
rgba(8, 8, 10, 0.16) 68%,
rgba(8, 8, 10, 0.04) 100%
        ),
        url("portada.jpg") center / cover no-repeat;

    box-shadow: inset 0 -120px 100px rgba(0, 0, 0, 0.18);
}
    .hero::before {
        content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 55px 55px;
    pointer-events: none;
}

.hero::after {
    content: "NF";
    position: absolute;
    right: -40px;
    bottom: -190px;
    font-size: 34rem;
    line-height: 1;
    font-weight: 900;
    color: rgba(255,255,255,0.018);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content,
.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 80px;
}

.hero-copy {
    max-width: 670px;
}

.eyebrow,
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d2a45f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.eyebrow::before,
.hero-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: #d2a45f;
}

.hero h1,
.hero-copy h1 {
    max-width: 680px;
    color: #ffffff;
    font-size: clamp(4rem, 6.3vw, 6.6rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
    font-weight: 900;
    margin-bottom: 27px;
}

.hero h1 span,
.hero-copy h1 span {
    color: #d4a45e;
}

.hero p,
.hero-copy > p {
    max-width: 610px;
    color: #d5d5d5;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.btn,
.hero-buttons a {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: 0.25s;
    cursor: pointer;
}

.btn-primary,
.hero-buttons a:first-child {
    background: linear-gradient(135deg, #d4a45e, #a87335);
    color: white;
    box-shadow: 0 12px 30px rgba(177, 124, 57, 0.25);
}

.btn-primary:hover,
.hero-buttons a:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(177, 124, 57, 0.35);
}

.btn-secondary,
.hero-buttons a:nth-child(2) {
    border-color: rgba(255,255,255,0.35);
    color: white;
    background: rgba(255,255,255,0.04);
}

.btn-secondary:hover,
.hero-buttons a:nth-child(2):hover {
    background: rgba(255,255,255,0.1);
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    color: #eeeeee;
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-benefits span::before {
    content: "✓";
    color: #d4a45e;
    font-weight: 900;
    margin-right: 7px;
}


/* =========================================================
   FORMULARIO DE PRESUPUESTO
========================================================= */

.quote-card,
.hero-form,
.presupuesto-card {
    position: relative;
   max-width: 330px;
width: 100%;
justify-self: end;
padding: 22px;
transform: translateX(95px);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 30px 70px rgba(0,0,0,0.32),
        0 0 0 1px rgba(255,255,255,0.1);
}

.quote-card::before,
.hero-form::before,
.presupuesto-card::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 4px;
    left: 38px;
    top: 0;
    background: linear-gradient(90deg, #d3a25d, #9c6a30);
    border-radius: 0 0 5px 5px;
}

.quote-card small,
.hero-form small,
.presupuesto-card small {
    display: block;
    color: #a87537;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.quote-card h2,
.hero-form h2,
.presupuesto-card h2 {
    color: #181818;
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.quote-card p,
.hero-form p,
.presupuesto-card p {
    color: #6b6b6b;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.quote-card label,
.hero-form label,
.presupuesto-card label {
    display: block;
    color: #292929;
    font-size: 0.78rem;
    font-weight: 800;
    margin: 14px 0 7px;
}

.quote-card input,
.quote-card select,
.hero-form input,
.hero-form select,
.presupuesto-card input,
.presupuesto-card select {
    width: 100%;
    height: 49px;
    border: 1px solid #dedbd5;
    border-radius: 8px;
    padding: 0 14px;
    outline: none;
    background: #faf9f7;
    color: #222;
    transition: 0.2s;
}

.quote-card input:focus,
.quote-card select:focus,
.hero-form input:focus,
.hero-form select:focus,
.presupuesto-card input:focus,
.presupuesto-card select:focus {
    border-color: #bd8b4a;
    box-shadow: 0 0 0 3px rgba(189,139,74,0.12);
}

.quote-card button,
.hero-form button,
.presupuesto-card button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 9px;
    margin-top: 20px;
    background: linear-gradient(135deg, #d3a15c, #a66f32);
    color: white;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(166,111,50,0.23);
    transition: 0.25s;
}

.quote-card button:hover,
.hero-form button:hover,
.presupuesto-card button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   FRANJA DE CONFIANZA
========================================================= */

.trust-bar,
.benefits-bar {
    background: #ffffff;
    border-bottom: 1px solid #e8e4de;
}

.trust-bar .container,
.benefits-bar .container {
    min-height: 105px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 25px;
}

.trust-item,
.benefit-item {
    text-align: center;
    border-right: 1px solid #e5e1db;
}

.trust-item:last-child,
.benefit-item:last-child {
    border-right: 0;
}

.trust-item strong,
.benefit-item strong {
    display: block;
    color: #1b1b1b;
    font-size: 0.96rem;
}

.trust-item span,
.benefit-item span {
    display: block;
    color: #8a8177;
    font-size: 0.78rem;
    margin-top: 3px;
}


/* =========================================================
   SECCIONES GENERALES
========================================================= */

section {
    scroll-margin-top: 90px;
}

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-kicker {
    color: #ad793a;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-heading h2 {
    color: #171717;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

.section-heading p {
    color: #716c66;
    font-size: 1.05rem;
}


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

.products,
.productos {
    background: #f5f2ed;
}

.product-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    overflow: hidden;
    min-height: 400px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}
.hero-logo {
    display: block;
    width: 330px;
    max-width: 100%;
    height: auto;
    margin: 15px 0 20px 0;
}
/* =========================
   PRODUCTOS INTERACTIVOS
========================= */

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

.productos-titulo {
    text-align: center;
    margin-bottom: 45px;
}

.productos-titulo span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #b88a45;
}

.productos-titulo h2 {
    margin: 10px 0;
    font-size: 42px;
    color: #181818;
}

.productos-titulo p {
    color: #666;
    font-size: 17px;
}

.productos-interactivo {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 35px;
    align-items: stretch;
}


/* LISTA DE PRODUCTOS */

.productos-lista {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.producto-btn {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #ddd;
    background: #ffffff;
    color: #222;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.25s;
}

.producto-btn:hover {
    background: #f0e5d4;
    border-color: #b88a45;
}

.producto-btn.active {
    background: #181818;
    color: #ffffff;
    border-color: #181818;
}


/* FICHA DEL PRODUCTO */

.producto-ficha {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.producto-visual {
    height: 390px;
    background: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    color: #888;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.producto-info {
    padding: 30px;
}

.producto-etiqueta {
    color: #b88a45;
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.producto-info h3 {
    margin: 8px 0 12px;
    font-size: 30px;
    color: #181818;
}

.producto-info p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 22px;
}

.producto-presupuesto {
    display: inline-block;
    padding: 13px 22px;
    background: #b88a45;
    color: #ffffff;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 800;
}


/* ADAPTACIÓN PARA CELULAR */

@media (max-width: 800px) {

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

    .producto-visual {
        height: 260px;
    }

    .productos-titulo h2 {
        font-size: 32px;
    }
}

/* GALERÍA ALFOMBRAS DE VINILO */

.producto-visual {
    height: auto;
    min-height: 390px;
    padding: 15px;
    background: #f2f2f2;
    display: block;
}

#imagenProductoPrincipal {
    width: 100%;
    height: 330px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    transition: transform 0.45s ease, opacity 0.45s ease;
transform-origin: left center;
}

.producto-miniaturas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.producto-miniaturas img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 7px;
    cursor: pointer;
    border: 2px solid transparent;
}

.producto-miniaturas img:hover {
    border-color: #b88a45;
}
#presupuesto {
    scroll-margin-top: 110px;
}
/* GALERÍA DE ALFOMBRAS PERSONALIZADAS */

.galeria-personalizadas {
    padding: 70px 0;
    background: #f7f7f7;
    text-align: center;
}

.galeria-personalizadas h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.galeria-personalizadas p {
    margin-bottom: 30px;
}

#galeriaPersonalizadas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

#galeriaPersonalizadas img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* =========================================================
   ENCABEZADO RESPONSIVE - CORRECCIÓN ESTABLE
========================================================= */
@media (max-width: 900px) {
    .navbar {
        min-height: 72px;
        gap: 14px;
    }

    .logo img {
        height: 50px;
        max-width: 190px;
    }

    .nav-menu {
        gap: 14px;
    }

    .nav-menu a {
        font-size: 0.82rem;
    }

    .btn-presupuesto {
        padding: 10px 14px;
        white-space: nowrap;
    }
}

@media (max-width: 700px) {
    .header {
        position: sticky;
    }

    .navbar {
        min-height: 68px;
        width: min(94%, 1180px);
        gap: 10px;
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .logo img {
        width: auto;
        height: 46px;
        max-width: 175px;
    }

    .nav-menu {
        display: none;
    }

    .btn-presupuesto {
        flex: 0 0 auto;
        padding: 9px 11px;
        border-radius: 8px;
        font-size: 0.76rem;
    }
}

@media (max-width: 390px) {
    .logo img {
        height: 42px;
        max-width: 150px;
    }

    .btn-presupuesto {
        padding: 8px 9px;
        font-size: 0.7rem;
    }
}

.nosotros-section {
    padding: 70px 0;
    background: #f7f9fc;
}

.nosotros-section h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 25px;
}

.nosotros-section p {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.nosotros-section strong {
    font-weight: 800;
}
.contacto-section {
    padding: 70px 0;
    background: #ffffff;
}

.contacto-section h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 25px;
}

.contacto-section p {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.contacto-whatsapp,
.contacto-email {
    display: inline-block;
    padding: 14px 24px;
    margin-top: 15px;
    margin-right: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.contacto-whatsapp {
    background: #25D366;
    color: white;
}

.contacto-email {
    background: #111111;
    color: white;
}