/* index.css */
/* HOME PRINCIPAL - LA CASA DEL REVESTIMIENTO */

* {
    box-sizing: border-box;
}
/* =====================
   NAVBAR
===================== */

.site-header {
    background: #020617;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 48px;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.nav a:hover {
    color: #3b82f6;
}

/* BOTÓN MOBILE */
.nav-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* =====================
   MOBILE
===================== */
@media (max-width: 768px) {

    .nav-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #020617;
        flex-direction: column;
        padding: 15px;
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 10px 0;
        border-bottom: 1px solid #1e293b;
    }
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: #0f172a;
}

/* ================= TOPBAR ================= */
.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: #020617;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
}

/* LOGO */
.logo img {
    height: 45px;
}

/* NAV */
.nav a {
    color: #e5e7eb;
    margin-left: 30px;
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover {
    color: #3b82f6;
}

/* ================= HERO ================= */
.hero {
    height: 90vh;
    margin-top: 80px;
    background: linear-gradient(
        rgba(2,6,23,0.55),
        rgba(2,6,23,0.55)
    ),
    url('img/muestras/hero-showroom.webp') center / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.hero-content {
    max-width: 600px;
    color: #fff;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin: 20px 0;
}

/* BOTÓN */
.btn-primary {
    background: #2563eb;
    color: #fff;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

/* ================= CATEGORÍAS ================= */
.categorias-home {
    padding: 90px 6%;
}

.categorias-home h2 {
    text-align: center;
    margin-bottom: 50px;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 30px;
}

.cat-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.cat-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.cat-card span {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

/* ================= DESTACADOS ================= */
.destacados-home {
    background: #f8fafc;
    padding: 70px 6%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 30px;
}

/* CARD PRODUCTO */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    transition: transform .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.1);
}

.img-wrap {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.img-wrap img {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain;
}

.precio {
    color: #1e40af;
    font-weight: bold;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .nav {
        display: none;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero {
        padding: 0 6%;
    }
}
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    z-index: 9999;
    transition: transform .3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.catalogo {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.catalogo-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.catalogo-top h1 {
    margin: 0 0 10px;
}

.catalogo-filtros,
.categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.catalogo-filtros span,
.categorias span {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.filtro-link,
.categoria-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    color: #0f172a;
    transition: background .2s, border-color .2s;
    font-size: 14px;
}

.filtro-link.activo,
.categoria-link.activo {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.filtro-separator {
    color: #94a3b8;
    margin: 0 4px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.card .img-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.categoria-card-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.card .precio {
    color: #1d4ed8;
    font-weight: 700;
    margin-bottom: 16px;
}

.card .precio small {
    color: #334155;
    font-size: 13px;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    background: #2563eb;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s;
}

.card a:hover {
    background: #1d4ed8;
}

.contacto-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.contact-card h1,
.contact-card h2 {
    margin-top: 0;
}

.contact-card p {
    line-height: 1.75;
    color: #334155;
}

.contact-card .btn-producto {
    margin-top: 20px;
}

.contact-form-card .form-field {
    margin-top: 18px;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: #f8fafc;
}

.contact-form-card textarea {
    min-height: 140px;
    resize: vertical;
}

.nota-formulario {
    margin-top: 14px;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 900px) {
    .contact-grid,
    .catalogo-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .contact-grid,
    .catalogo-top,
    .grid {
        grid-template-columns: 1fr;
    }
}

.page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}


/* =====================
   HERO PRINCIPAL
===================== */

.hero {
    position: relative;
    height: 70vh;
    min-height: 420px;
    background: url('img/muestras/hero-showroom.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 20px;
    color: #ffffff;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #e5e7eb;
}

.hero-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}

/* HERO MOBILE */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }
}


/* =====================
   HOME - CATEGORÍAS
===================== */

.home-categorias {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.home-categorias h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #020617;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.categoria-card {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.categoria-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.categoria-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient(to top, rgba(2,6,23,.8), transparent);
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.categoria-card:hover img {
    transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .categorias-grid {
        grid-template-columns: 1fr;
    }
}
/* =====================
   PRODUCTOS DESTACADOS
===================== */

.destacados {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
}

.destacados-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.destacados-header h2 {
    font-size: 28px;
    color: #020617;
}

.ver-todos {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.producto-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.producto-img {
    height: 220px;
    overflow: hidden;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto-info {
    padding: 18px;
    text-align: center;
}

.producto-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #020617;
}

.producto-info .precio {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 14px;
}

.btn-producto {
    display: inline-block;
    padding: 10px 18px;
    background: #020617;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }

    .destacados-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* =====================
   FOOTER
===================== */

.site-footer {
    background: #020617;
    color: #e5e7eb;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5f5;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
}

.footer-col ul a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 15px 20px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* =====================
   HOME SLIDER (FIJO)
===================== */


.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;     /* 🔑 NO SE CORTA */
    object-position: center;
}



.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(2,6,23,0.2),
        rgba(2,6,23,0.9)
    );
    z-index: 0;
}
.slide img {
    position: relative;
    z-index: 1;
}




.slide-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    background: rgba(2,6,23,.55);
    padding: 12px 22px;
    border-radius: 10px;
}

/* MOBILE */



    .slide-caption {
        font-size: 18px;
        bottom: 20px;
    }



    ********************************************************************

    /* ===== PISOS SHOWROOM ===== */

.pisos-hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.pisos-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.pisos-hero p {
    color: #64748b;
}

.filtros {
    text-align: center;
    margin-bottom: 40px;
}

.filtros a {
    display: inline-block;
    padding: 8px 18px;
    margin: 5px;
    border-radius: 20px;
    text-decoration: none;
    background: #f1f5f9;
    color: #020617;
    font-size: 14px;
}

.filtros a.activo,
.filtros a:hover {
    background: #2563eb;
    color: #fff;
}

.pisos-grid {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 30px;
}

.piso-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    transition: .3s;
}

.piso-card:hover {
    transform: translateY(-8px);
}

.piso-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.piso-info {
    padding: 20px;
}

.piso-info h3 {
    margin-bottom: 5px;
}

.tipo {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.precios {
    font-weight: 600;
    margin-bottom: 15px;
}

.calculadora input {
    width: 100%;
    padding: 8px;
    margin: 6px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.resultado {
    font-size: 14px;
    margin-top: 5px;
}

************************************************************************


/* ======================
   PÁGINA PISOS
====================== */

.pisos-page {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
}

.pisos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.filtros a {
    margin-left: 15px;
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

.pisos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.piso-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
    transition: transform .3s ease;
}

.piso-card:hover {
    transform: translateY(-6px);
}

.piso-img {
    height: 260px;
    overflow: hidden;
}

.piso-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.piso-info {
    padding: 20px;
}

.piso-info h3 {
    margin-bottom: 10px;
}

.precio {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 15px;
}

.calculadora input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.resultado p {
    margin: 4px 0;
    font-size: 14px;
}
