/* Custom overrides for Bootstrap Light Premium Theme */
:root {
    --color-gold: #c2954a; /* Muted elegant gold */
    --color-gold-hover: #e3b871;
    --color-cream: #faf7f2;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #F9F6F0; /* Fondo crema pastel estilo matrimonio */
    color: #333333;
}

h1, h2, h3, h4, h5, h6, .logo-text, .section-title {
    font-family: var(--font-heading);
}

.bg-cream {
    background-color: #FDFBF7 !important; /* Más claro para contrastar con body */
}

/* Tipografía Editorial */
.display-huge {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
}
@media (min-width: 992px) {
    .display-huge {
        font-size: 5.5rem;
    }
}
.italic-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--color-gold);
}

/* Formas Asimétricas (Arco) */
.arch-shape {
    border-radius: 12rem 12rem 0 0;
    object-fit: cover;
}

/* Galería Marquee Continua */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}
.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
    gap: 15px;
}
.marquee-content:hover {
    animation-play-state: paused;
}
.marquee-content img {
    height: 350px;
    width: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.text-gold {
    color: var(--color-gold) !important;
}

.bg-gold {
    background-color: var(--color-gold) !important;
}

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

.btn-gold {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    transition: all 0.3s ease;
}

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

/* Navbar */
.navbar {
    background-color: rgba(231, 222, 205, 0.95) !important; /* #E7DECD */
    backdrop-filter: blur(10px);
}
.navbar .nav-link {
    color: #555555;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar .nav-link:hover {
    color: var(--color-gold);
}

/* Hero Section */
.hero-section {
    height: 85vh;
    min-height: 500px;
    margin-top: 76px; /* Offset for navbar */
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    padding-bottom: 5rem;
}

/* Hover effects (Zoom and rounding) */
.hover-zoom {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hover-zoom:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

/* Image Cards (Services) */
.service-image-card {
    height: 350px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
}
.service-image-card img {
    height: 100%;
    transition: transform 0.5s ease;
}
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    transition: background 0.4s ease;
}
.transition-all {
    transition: all 0.4s ease;
}

/* Hover behaviors for Service Cards */
.service-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2) !important;
}
.service-image-card:hover img {
    transform: scale(1.08);
}
.service-image-card:hover .service-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 100%);
}
.service-image-card:hover .opacity-0 {
    opacity: 1 !important;
}

/* Gallery Images */
.gallery-img {
    height: 250px;
}
@media (max-width: 768px) {
    .gallery-img {
        height: 180px;
    }
    .hero-section {
        height: 60vh;
    }
}

/* Contacto Section (Video Background) */
.contacto-section {
    position: relative;
    overflow: hidden;
    min-height: 85vh; /* Much taller vertically */
    display: flex;
    align-items: center;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    /* Scale 1.30 zooms the video to ensure all watermarks are completely cropped out */
    transform: translateX(-50%) translateY(-50%) scale(1.30);
    object-fit: cover;
}

.contacto-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Clean gradient: Solid white at top to blend seamlessly, fading slowly to transparent, then dark overlay at bottom for text readability */
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0) 25%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

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

.text-shadow-dark {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Premium Glassmorphism Form */
.glass-form-card {
    background: rgba(15, 5, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(213, 159, 90, 0.2);
}

.premium-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(213, 159, 90, 0.3);
    color: white !important;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.premium-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 0.2rem rgba(213, 159, 90, 0.25);
    color: white !important;
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.font-heading {
    font-family: var(--font-heading);
}

/* Portfolio Gallery Ampliada */
.portfolio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.portfolio-img {
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}
.portfolio-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.portfolio-text {
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.3s ease;
}
.portfolio-card:hover .portfolio-text {
    transform: translateY(0);
    opacity: 1;
}
@media (max-width: 768px) {
    .portfolio-text {
        transform: translateY(0);
        opacity: 1;
    }
}
