/* =========================================
   NIVEL DIOS: LUXURY & HIGH-TICKET DESIGN
   ========================================= */

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

:root {
    --bg-black: #121212;
    --bg-surface: #0a0a0a;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --red-action: #7a0000;
    --red-hover: #520000;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    
    /* Tipografía High-End */
    --font-body: 'Inter', system-ui, sans-serif;
    --font-heading: 'Playfair Display', serif;
}

body {
    background-color: var(--bg-black);
    /* EL NUEVO FONDO: Cuadrícula arquitectónica sutil + iluminación */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 85% 30%, rgba(139, 0, 0, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    
    color: var(--text-main);
    line-height: 1.7;
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Efectos de Texto Premium */
.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h1, h2, h3, .section-title-large {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

/* Header Premium */
.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px; /* Añadido para forzar separación pase lo que pase */
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(7, 7, 7, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    justify-self: start;
}

.center-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.center-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.center-nav a:hover {
    color: var(--gold);
}

.header-cta {
    justify-self: end;
}

/* Botones Luxury */
.btn-primary {
    background-color: var(--red-action);
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 2px;
    border: 1px solid var(--red-action);
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--gold);
    color: var(--gold) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main) !important;
    padding: 12px 30px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
}

/* Animaciones Suaves */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* Hero Section */
.hero, .subpage-hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero { height: 90vh; }
.subpage-hero { height: 65vh; }

.hero-content { max-width: 950px; z-index: 2; }

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.15rem;
    color: #b3b3b3;
    margin-bottom: 45px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* Over Ons */
.about-container {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.image-frame {
    position: relative;
    padding: 20px;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 40px; bottom: 40px;
    border: 1px solid var(--gold);
    z-index: 0;
}

.about-image img {
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    filter: grayscale(20%);
    transition: all 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
    transform: translate(10px, 10px);
}

/* Stats */
.stats-container {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--gold);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Grid de Servicios */
.services-container {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.divider {
    height: 1px;
    width: 80px;
    background: var(--gold-gradient);
    margin: 30px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card-link { text-decoration: none; color: inherit; display: block; }

.service-card {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
    background: rgba(20, 20, 20, 0.8);
}

.img-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 50%);
    z-index: 1;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(0%);
}

.service-card:hover .card-img {
    transform: scale(1.02);
    filter: grayscale(0%);
}

.card-content {
    padding: 30px 35px 40px;
    position: relative;
    z-index: 2;
    margin-top: -50px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

.read-more {
    margin-top: auto;
    padding-top: 25px;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-card-link:hover .read-more::after {
    transform: translateX(5px);
}

/* Subpáginas y Galerías */
.service-info-container { max-width: 900px; margin: 60px auto; padding: 0 20px; }
.service-text-box {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    padding: 60px;
    border: 1px solid rgba(255,255,255,0.03);
    border-left: 2px solid var(--gold);
}

.gallery-container { padding: 40px 20px 80px; max-width: 1300px; margin: 0 auto; }
.masonry-grid { column-count: 3; column-gap: 20px; }
.masonry-grid img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
    display: block;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.masonry-grid img:hover { transform: scale(1.02); box-shadow: 0 8px 25px rgba(0,0,0,0.8); }

/* Werkwijze Timeline */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 80px auto;
    padding: 20px 0;
}
.timeline-container::before {
    content: '';
    position: absolute;
    width: 1px;
    background: rgba(212, 175, 55, 0.3);
    top: 0; bottom: 0; left: 50%;
}
.timeline-item {
    padding: 0 60px;
    position: relative;
    width: 50%;
    margin-bottom: 80px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot {
    position: absolute;
    width: 15px; height: 15px;
    background: var(--gold);
    border-radius: 50%;
    top: 30px;
    z-index: 2;
    box-shadow: 0 0 15px var(--gold);
}
.timeline-item:nth-child(odd) .timeline-dot { right: -7px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

/* Quote Section */
.quote-section {
    background: url('img/Ornamentpand-Restauratie-Pieter-Cornelis-hoofdstraat-1.2.jpeg') center/cover fixed;
    position: relative;
    padding: 120px 5%;
    text-align: center;
}
.quote-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 5, 0.85);
}
.quote-section blockquote, .quote-section cite { position: relative; z-index: 2; }
.quote-section blockquote {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #ffffff;
    font-family: var(--font-heading);
    font-style: italic;
    max-width: 1000px;
    margin: 0 auto 30px;
    line-height: 1.3;
}
.quote-section cite { color: var(--gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; }

/* Footer */
.footer {
    background-color: rgba(3, 3, 3, 0.95);
    padding: 100px 5% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}
.footer-info p, .footer-contact li { color: var(--text-muted); font-size: 0.9rem; list-style: none; margin-bottom: 15px; font-weight: 300; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: #555; font-size: 0.8rem; }

/* ==============================================================
   BOTÓN WHATSAPP FLOTANTE
   ============================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white !important;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    background-color: #20b858;
}
.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 900px) {
    .masonry-grid { column-count: 2; }
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .image-frame::before { display: none; }
    .stats-container { flex-direction: column; gap: 20px; }
    .timeline-container::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 0; text-align: left !important; left: 0 !important; }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 13px; }
}
@media (max-width: 768px) {
    .center-nav, .header-cta { display: none; }
    .header { grid-template-columns: 1fr; justify-content: center; text-align: center; }
    .hero-buttons { flex-direction: column; }
    .whatsapp-float { bottom: 20px; right: 20px; padding: 10px 15px; font-size: 0.9rem; }
}
@media (max-width: 600px) { .masonry-grid { column-count: 1; } }

/* Utilidad para encuadrar imágenes altas en las tarjetas */
.card-img.align-top {
    object-position: center 20%;
}

/* =========================================
   OVERRIDE: BORDEAUX RED LUXURY BACKGROUND
   ========================================= */
:root {
    --bg-black: #140406 !important; /* Un burdeos extremadamente oscuro, casi negro */
    --bg-surface: #1f0709 !important;
}

body {
    background-color: var(--bg-black) !important;
    /* Foco de luz burdeos intenso a la izquierda, leve dorado a la derecha, manteniendo la cuadrícula */
    background-image: 
        radial-gradient(circle at 15% 40%, rgba(138, 17, 30, 0.22) 0%, transparent 65%),
        radial-gradient(circle at 85% 60%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px) !important;
}
