/* ============================================================
   DECOR.IN — Hoja de estilos
   ============================================================ */

/* --- CONFIGURACIÓN BASE --- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Compensa el header sticky al saltar con anclas (#) */
section[id] { scroll-margin-top: 90px; }

/* --- ANIMACIONES DE APARICIÓN --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

a, button { transition: all 0.3s ease-in-out; }

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in-section { opacity: 1; transform: none; transition: none; }
    .scroll-cue { animation: none !important; }
}

/* === LOGO === */
.brand-logo {
    display: block;
    height: 72px;
    width: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.brand-logo img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: auto;
    object-fit: contain;
}
@media (max-width: 900px) {
    .brand-logo { width: 150px; height: 60px; }
}

/* === HEADER (sombra sutil al hacer scroll) === */
#site-header.scrolled { box-shadow: 0 4px 20px rgba(54, 50, 49, 0.08); }

/* === NAV LINKS (subrayado animado) === */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background-color: #C5A059;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #C5A059; }

/* === EYEBROWS === */
.hero-eyebrow,
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    font-weight: 600;
}
.section-eyebrow {
    color: #707955;
    margin-bottom: 0.75rem;
    display: block;
}
.section-eyebrow.text-center { text-align: center; }
.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px; height: 1px;
    background-color: #C5A059;
    vertical-align: middle;
    margin-right: 10px;
}
.section-eyebrow::after {
    content: '';
    display: inline-block;
    width: 28px; height: 1px;
    background-color: #C5A059;
    vertical-align: middle;
    margin-left: 10px;
}

/* === BOTONES === */
.btn-primary {
    display: inline-block;
    background-color: #C5A059;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
}
.btn-primary:hover {
    background-color: #B08D4A;
    box-shadow: 0 6px 22px rgba(197, 160, 89, 0.45);
    transform: translateY(-2px);
}
.btn-outline-light {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn-outline-light:hover {
    background-color: #fff;
    color: #363231;
    transform: translateY(-2px);
}
.btn-lg {
    padding: 0.95rem 2.5rem;
    font-size: 1.05rem;
}

/* === HERO === */
/* El visor 360° debe cubrir TODO el Hero. Pannellum añade la clase .pnlm-container
   (position: relative) que, con el CSS de Tailwind compilado, gana sobre la utilidad
   .absolute y parte el layout en dos columnas. Forzamos el posicionamiento con un
   selector de ID (mayor prioridad) para que la imagen quede detrás del texto centrado. */
#panorama-hero {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.6) 100%);
}
.scroll-cue { animation: bounce-down 2s infinite; }
@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, 10px); }
    60% { transform: translate(-50%, 5px); }
}

/* === BANDA DE CONFIANZA === */
.trust-item { transition: transform 0.3s ease; }
.trust-item:hover { transform: translateY(-4px); }

/* === TARJETAS DE SERVICIO === */
.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(54, 50, 49, 0.06);
    border: 1px solid #F1F0EC;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(54, 50, 49, 0.12);
    border-color: #C5A059;
}
.service-icon {
    flex-shrink: 0;
    width: 3.25rem; height: 3.25rem;
    display: flex; align-items: center; justify-content: center;
    background-color: #363231;
    color: #fff;
    border-radius: 9999px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover .service-icon {
    background-color: #C5A059;
    transform: scale(1.08);
}

/* === PROCESO === */
.process-grid { position: relative; }
/* Línea conectora entre pasos (solo desktop) */
@media (min-width: 1024px) {
    .process-grid::before {
        content: '';
        position: absolute;
        top: 2.5rem;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: repeating-linear-gradient(to right, #C5A059 0, #C5A059 8px, transparent 8px, transparent 16px);
        opacity: 0.5;
        z-index: 0;
    }
}
.process-step { position: relative; z-index: 1; }
.process-icon {
    display: flex; align-items: center; justify-content: center;
    width: 5rem; height: 5rem;
    background-color: #707955;
    color: #fff;
    border-radius: 9999px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(112, 121, 85, 0.3);
    border: 4px solid #F9F9F9;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.process-step:hover .process-icon {
    transform: scale(1.1);
    background-color: #C5A059;
}
.process-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #C5A059;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* === FILTROS PORTAFOLIO === */
.filter-btn {
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #363231;
    border: 1px solid #d1d5db;
}
.filter-btn:hover { border-color: #C5A059; color: #C5A059; }
.filter-btn.active-filter {
    background-color: #363231;
    color: white;
    border-color: #363231;
}

/* === TARJETAS PORTAFOLIO === */
.portfolio-card {
    background-color: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #F1F0EC;
    box-shadow: 0 1px 3px rgba(54, 50, 49, 0.06);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(54, 50, 49, 0.16);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(54, 50, 49, 0.55), rgba(54, 50, 49, 0) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-view {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255,255,255,0.8);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(2px);
    transform: translateY(8px);
    transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-view { transform: translateY(0); }
.portfolio-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    background-color: rgba(255, 255, 255, 0.92);
    color: #363231;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
}

/* === TESTIMONIOS === */
.testimonial-card {
    position: relative;
    background-color: #fff;
    padding: 2.5rem 2rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(54, 50, 49, 0.06);
    border: 1px solid #F1F0EC;
    text-align: left;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem; right: 1.25rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
    color: #C5A059;
    opacity: 0.18;
}
.testimonial-avatar {
    flex-shrink: 0;
    width: 3rem; height: 3rem;
    display: flex; align-items: center; justify-content: center;
    background-color: #707955;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 9999px;
    letter-spacing: 0.03em;
}
.carousel-btn {
    width: 2.75rem; height: 2.75rem;
    border-radius: 9999px;
    background-color: #363231;
    color: #fff;
    box-shadow: 0 4px 12px rgba(54, 50, 49, 0.25);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.carousel-btn:hover:not(:disabled) {
    opacity: 1;
    background-color: #C5A059;
    transform: scale(1.05);
}
.carousel-btn:disabled { opacity: 0.25; cursor: not-allowed; }

/* === CTA === */
.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

/* === CONTACTO === */
.contact-icon {
    flex-shrink: 0;
    width: 2.75rem; height: 2.75rem;
    display: flex; align-items: center; justify-content: center;
    background-color: #F1F0EC;
    color: #707955;
    border-radius: 9999px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.contact-icon:hover { background-color: #C5A059; color: #fff; }
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #F1F0EC;
    border-radius: 0.375rem;
    background-color: #F9F9F9;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-input:focus {
    outline: none;
    background-color: #fff;
    border-color: #C5A059;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* === FOOTER === */
.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background-color: #C5A059;
    border-color: #C5A059;
    transform: translateY(-3px);
}

/* === PRODUCTOS (catálogo) === */
.product-card {
    background-color: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #F1F0EC;
    box-shadow: 0 1px 3px rgba(54, 50, 49, 0.06);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(54, 50, 49, 0.16);
}
.product-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #C5A059;
    margin-top: 0.5rem;
}
.product-meta {
    font-size: 0.8rem;
    color: #888685;
    margin-top: 0.5rem;
}
.product-meta i { color: #707955; margin-right: 2px; }

/* Badge de galería/video sobre la tarjeta */
.portfolio-media-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background-color: rgba(54, 50, 49, 0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Miniaturas de la galería en el lightbox */
.pl-thumb {
    flex: 0 0 auto;
    width: 4rem;
    height: 3.25rem;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    background: #000;
    padding: 0;
}
.pl-thumb.is-active { border-color: #C5A059; }
.pl-thumb img,
.pl-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.8rem;
}

/* Botón WhatsApp (verde) reutilizable */
.btn-whatsapp {
    display: inline-block;
    background-color: #22c55e;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.btn-whatsapp:hover {
    background-color: #16a34a;
    box-shadow: 0 6px 22px rgba(34, 197, 94, 0.45);
    transform: translateY(-2px);
}

/* === BANNER DE CONSENTIMIENTO DE COOKIES === */
.cookie-banner {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    max-width: 480px;
    background-color: #363231;
    color: #fff;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
    z-index: 60;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner__text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #E7E4DF;
    margin-bottom: 1rem;
}
.cookie-banner__text a { color: #C5A059; text-decoration: underline; }
.cookie-banner__text a:hover { color: #D8B778; }
.cookie-banner__actions { display: flex; gap: 0.6rem; justify-content: flex-end; }
.cookie-banner__btn {
    padding: 0.5rem 1.15rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.cookie-banner__btn--accept { background-color: #C5A059; color: #fff; }
.cookie-banner__btn--accept:hover { background-color: #B08D4A; }
.cookie-banner__btn--ghost { background-color: transparent; color: #E7E4DF; border-color: rgba(255, 255, 255, 0.3); }
.cookie-banner__btn--ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 640px) {
    .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; }
}

/* === WHATSAPP FLOTANTE === */
.whatsapp-float { animation: pulse-ws 2.5s infinite; }
@keyframes pulse-ws {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
