/* ==========================
    VARIABLES DE COLOR Y DISEÑO
========================== */
:root {
    --primary: #003352;
    --accent: #005288;
    --muted: #6b7885;
    --bg: #f7f7f7;
    --card: #ffffff;
    --radius: 14px;
}

/* ==========================
    RESET Y BASE
========================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
    background: var(--bg);
    color: var(--primary);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: 6px; }
a { text-decoration: none; color: var(--primary); transition: 0.3s; }
a:hover { color: var(--accent); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ==========================
    HEADER Y NAVEGACIÓN
========================== */
header {
    position: sticky; top: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px); z-index: 1100;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: background 0.3s;
}
header:hover { background: rgba(255,255,255,0.97); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }

.logo { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; }
.logo img { height: 60px; transition: transform 0.3s; }
.logo img:hover { transform: scale(1.05); }
.logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.logo-title { font-weight: 800; color: var(--primary); }
.logo-subtitle { font-size: 12px; color: var(--muted); }

.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--primary); font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { background: rgba(0,82,136,0.08); color: var(--accent); }

.menu-toggle { display: none; background: transparent; border: none; color: var(--primary); font-size: 24px; cursor: pointer; z-index: 1101; }

/* ==========================
    HERO
========================== */
.hero {
    min-height: 70vh;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35)), url('img/mueble-cocina-melamina-blanca-mesada-granito-negro-brasil.jpg');
    background-size: cover;
    background-position: center;
    display: flex; align-items: center;
    transition: background 0.5s;
}
.hero-inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 80px 0; 
}
.hero-copy { flex: 1; color: #fff; padding: 48px 24px; }

.h-eyebrow {
    display: inline-block; background: rgba(255,255,255,0.1);
    padding: 6px 10px; border-radius: 999px; font-weight: 700;
    margin-bottom: 18px; letter-spacing: 0.5px;
}

@keyframes subtleFloat { 0% { transform: translateY(0); opacity:0.95; } 50% { transform: translateY(-3px); opacity:1; } 100% { transform: translateY(0); opacity:0.95; } }

.h-title {
    font-size: 2.4rem; 
    line-height: 1.05; 
    margin-bottom: 12px; 
    font-weight: 800;
    /* Eliminamos la línea de animation: subtleFloat... */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.85);
}
.h-sub { color: rgba(255,255,255,0.92); margin-bottom: 20px; font-weight: 500; text-shadow: 1px 1px 4px rgba(0,0,0,0.85); }

.cta-group { display: flex; gap: 12px; }
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 12px; border: none;
    cursor: pointer; font-weight: 700; transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.btn-primary {
    background: var(--primary); color: #fff;
}
.btn-primary:hover {
    background: var(--accent); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.btn-ghost {
    background: rgba(255,255,255,0.12); color: #fff;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.2); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.hero-media { width: 420px; max-width: 40%; min-width: 260px; }

/* ==========================
    TARJETAS Y SERVICIOS
========================== */
.card {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 28px rgba(3,19,34,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(3,19,34,0.12); }
.media-preview-img {
    width: 100%;
    border-radius: 10px; 
    height: 260px; 
    object-fit: cover;
    margin-bottom: 15px; 
}
.media-preview-info { padding-top: 12px; }
.media-preview-sub { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

.services { padding: 110px 0; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
    background: var(--card); padding: 24px 20px; border-radius: 14px;
    box-shadow: 0 6px 22px rgba(3,19,34,0.06);
    text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(3,19,34,0.08); }
.service i { font-size: 28px; color: var(--primary); margin-bottom: 12px; }
.service h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.service p { color: var(--muted); font-size: 0.95rem; }
.services-note {
    background: var(--card);
    color: var(--primary);
    text-align: center;
    padding: 25px 30px;
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(3,19,34,0.08);
    max-width: 1100px;
    margin: 80px auto 10px auto; 
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.services-note:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(3,19,34,0.15);
    transition: all 0.3s ease;
}
.services-note i, 
.services-note strong { color: var(--accent); }
.services-note i { color: var(--accent); font-size: 1.3rem; }

/* ==========================
    TITULOS Y GALERÍA
========================== */
.section-title { text-align: center; margin-bottom: 30px; width: 100%; }
.section-title h2 { font-size: 1.9rem; font-weight: 700; position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent); margin: 8px auto 0; border-radius: 2px; }

.gallery-section { padding: 45px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.gallery-img{
width:100%;
height:230px;
object-fit:cover;
border-radius:12px;
cursor:pointer;
transition:transform .3s ease, box-shadow .3s ease;
}

.gallery-img:hover{
transform:scale(1.06);
box-shadow:0 12px 28px rgba(0,0,0,0.18);
}

/* ==========================
    CONTACTO
========================== */
.contact-section { padding: 50px 0; }
.contact-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: start; }
.contact-card { background: var(--card); padding: 24px; border-radius: 14px; box-shadow: 0 10px 32px rgba(3,19,34,0.06); }
.contact-info-text { color: var(--muted); margin-bottom: 12px; }
.form-row { display: flex; gap: 12px; }
.form-row .col { flex: 1; }
.input, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #e6e9ee; font-size: 0.98rem; margin-bottom: 12px; font-family: inherit; }
textarea { min-height: 140px; resize: vertical; }
.submit-row { display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.status { font-weight: 600; font-size: 0.95rem; }

.contact-direct { padding: 18px; }
.contact-direct-details { margin-top: 10px; color: var(--muted); }
.contact-detail-row { margin-top: 8px; }
.map-embed {
    position: relative; padding-bottom: 74%; height: 0; overflow: hidden; border-radius: 12px; margin-top: 50px;
}
.map-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ==========================
    REVIEWS (Google)
========================== */
.google-reviews { background-color: transparent; padding: 60px 0 100px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.review-card { 
    background: #ffffff; 
    padding: 40px 30px; 
    border-radius: 8px; 
    border: 1px solid rgba(0,0,0,0.05); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.02); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: transform 0.3s; 
}
.review-card:hover { transform: translateY(-5px); }
.review-stars { color: #ffc107; font-size: 0.85rem; margin-bottom: 20px; }
.review-text { font-style: italic; color: #555; line-height: 1.6; margin-bottom: 25px; font-size: 1rem; }
.review-author strong { display: block; font-size: 1rem; }
.review-author span { font-size: 0.85rem; color: var(--muted); }
.reviews-footer { text-align: center; margin-top: 50px; }
.btn-link { 
    color: var(--accent); 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    letter-spacing: 1px; 
    transition: border 0.3s ease; 
}

/* ==========================
    FOOTER Y OTROS
========================== */
.footer { background: var(--primary); color: #fff; padding: 28px 0; margin-top: 30px; }
.footer .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-title { font-weight: 700; color: #fff; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
    color: #fff; font-size: 20px; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 8px; background: rgba(255,255,255,0.06); transition: 0.3s;
}
.social-icons a:hover { background: #fff; color: var(--accent); }
.small { font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.footer-copyright { text-align: center; margin-top: 14px; color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* LIGHTBOX */
.lightbox { 
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.95); 
    justify-content: center; 
    align-items: center; 
}
.lightbox-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-content { 
    max-width: 100%; 
    max-height: 85vh; 
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.lightbox-caption {
    position: absolute;
    bottom: 25px; 
    left: 50%;
    transform: translateX(-50%);
    width: 80%; 
    max-width: 600px;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff !important;
    padding: 12px 25px !important;
    font-size: 0.92rem !important;      
    font-weight: 400 !important;
    letter-spacing: 0.3px !important; 
    line-height: 1.5;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    box-sizing: border-box;
    animation: fadeInCaption 0.5s ease-out;
}
@keyframes fadeInCaption {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.close-btn { 
    position: absolute; 
    top: 20px; 
    right: 35px; 
    color: #f1f1f1; 
    font-size: 45px; 
    font-weight: 200; 
    cursor: pointer; 
    transition: 0.3s; 
    z-index: 10002;
}
.close-btn:hover { color: #bbb; }
@keyframes zoom { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2.5rem;
    padding: 30px 15px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.3s;
    border-radius: 4px;
}
.prev-btn:hover, .next-btn:hover { background: rgba(255, 255, 255, 0.3); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* ==========================
    RESPONSIVE
========================== */
@media (max-width: 980px) { .contact-wrap { grid-template-columns: 1fr; } }
@media (max-width: 900px) { 
    .services-grid { grid-template-columns: repeat(2,1fr); } 
    .hero-media { display: none; } 
    .h-title { font-size: 1.6rem; } 
}
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .header-inner { padding: 12px; }
    .hero { min-height: 56vh; }
    .menu-toggle { display: block; }
    .nav {
        position: absolute; top: 86px; left: 0; width: 100%; background: var(--card);
        flex-direction: column; align-items: center; padding: 20px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none; transform: translateY(-100%); transition: transform 0.3s ease-in-out; z-index: 1050;
    }
    .nav.open { display: flex; transform: translateY(0); }
    .nav a { width: 90%; text-align: center; padding: 12px; border-bottom: 1px solid var(--bg); }
    .nav a:last-child { border-bottom: none; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-img { height: auto; }
    .prev-btn, .next-btn { padding: 15px 10px; font-size: 1.8rem; }
}

/* ==========================
   WHATSAPP FLOATING (CORREGIDO ESMERILADO)
   ========================== */
.wsp-final-container {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.wsp-final-text {
    /* FONDO OSCURO ESMERILADO */
    background: rgba(0, 51, 82, 0.8) !important; 
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    
    padding: 10px 18px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-right: 15px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    
    /* ANIMACIÓN HOVER PC */
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease-in-out;
}

.wsp-final-container:hover .wsp-final-text { 
    opacity: 1 !important; 
    transform: translateX(0) !important; 
}

.wsp-final-icon {
    width: 62px !important;
    height: 62px !important;
    background-color: #25d366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: pulse-wsp 2s infinite ease-in-out;
}

.wsp-final-icon img { width: 32px !important; height: 32px !important; }

/* MEJORA ROI MÓVIL (CARTEL SIEMPRE VISIBLE) */
@media (max-width: 600px) {
    .wsp-final-text {
        opacity: 1 !important;
        transform: translateX(0) !important;
        font-size: 13px !important;
        padding: 8px 14px !important;
        margin-right: 10px !important;
    }
    .wsp-final-icon {
        width: 55px !important;
        height: 55px !important;
        animation: pulse-wsp 1.5s infinite ease-in-out !important;
    }
}

.btn-wsp{
background:#25D366 !important;
border:none;
color:#003352;
font-weight:700;
animation: wsp-bounce 2.5s infinite ease-in-out;
}

.btn-wsp:hover{
background:#1ebe5d !important;
transform:translateY(-2px);
transition:all .25s ease;
}

/* AJUSTE HERO MEDIA */
.hero-inner { padding: 60px 0 !important; }
.hero-media .card { max-height: 520px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-media .card img.media-preview-img { height: 280px !important; object-fit: cover; }
@media (max-width: 1100px) { .hero-media .card { max-width: 350px; } }

@keyframes pulse-wsp {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    50% { transform: scale(1.06); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
}

/* ==========================
    FAJA DE PROVEEDORES
========================== */
.brand-strip {
    width: 100%;
    margin-top: -30px !important; 
    padding: 10px 0 30px 0;
    background: transparent;
}
.brand-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.brand-grid img {
    height: auto;
    max-height: 80px; 
    width: auto;
    filter: grayscale(100%);
    opacity: 0.45;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.brand-grid img[alt*="Johnson"] { max-height: 150px !important; }
.brand-grid img[alt*="Faplac"] { max-height: 50px !important; }
.brand-grid img[alt*="Egger"] { max-height: 30px !important; }
.brand-grid img[alt*="Hafele"] { max-height: 25px !important; }
.brand-grid img[alt*="Purastone"] { max-height: 55px !important; width: auto !important; object-fit: contain; }

.brand-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .brand-grid { flex-wrap: wrap; justify-content: center; gap: 40px; }
}

/* ==========================
    TRUST SECTION & OTROS
========================== */
.trust-intro{ text-align:center; margin-top:60px; margin-bottom:10px; color:var(--muted); font-weight:600; }
.trust-section{ padding:50px 0; background:var(--bg); }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.trust-item{
background:var(--card); border-radius:var(--radius); padding:28px 22px; text-align:center;
box-shadow:0 10px 30px rgba(3,19,34,0.06); transition:all .3s ease; position:relative; overflow:hidden;
}
.trust-item:hover{ transform:translateY(-6px); box-shadow:0 16px 40px rgba(3,19,34,0.12); }
.trust-item i{ font-size:26px; color:var(--primary); margin-bottom:10px; }
.trust-item h3{ font-size:36px; font-weight:800; color:var(--accent); margin-bottom:6px; }
.trust-item p{ color:var(--muted); font-weight:600; font-size:14px; }

@media (max-width:800px){ .trust-grid{ grid-template-columns:repeat(2,1fr); } }

@keyframes wsp-bounce {
0% { transform: translateY(0); }
50% { transform: translateY(-3px); }
100% { transform: translateY(0); }
}

.gallery-cta{ text-align:center; margin-top:35px; }
.gallery-cta p{ font-weight:600; margin-bottom:14px; color:var(--primary); }
.gallery-item{ position:relative; overflow:hidden; border-radius:12px; }
.gallery-img{ width:100%; height:230px; object-fit:cover; transition:transform .4s ease; }
.gallery-item:hover .gallery-img{ transform:scale(1.08); }

.gallery-overlay{
position:absolute; bottom:0; left:0; right:0; padding:14px;
background:linear-gradient(transparent, rgba(0,0,0,0.7));
color:white; font-weight:600; font-size:14px; opacity:0; transition:opacity .3s ease;
}
.gallery-item:hover .gallery-overlay{ opacity:1; }

.gallery-filters{ display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-bottom:35px; }
.gallery-filters button{
padding:10px 18px; border-radius:30px; border:1px solid #dcdcdc; background:white;
color:#333; font-weight:600; font-size:14px; cursor:pointer; transition:all .25s ease;
}
.gallery-filters button:hover{ background:#003352; color:white; border-color:#003352; transform:translateY(-2px); }
.gallery-filters button.active{ background:#25D366; color:white; border-color:#25D366; box-shadow:0 6px 14px rgba(0,0,0,0.15); }

/* SLIDER */
.hero-slider{ position:relative; overflow:hidden; border-radius:10px; height:260px; }
.hero-slide{ position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .8s ease; }
.hero-slide.active{ opacity:1; }