/* Explain: Styles for cinematic demonstrations, including hero sections, cards, and call-to-actions. */
/* ============================================================
   DEMOSTRACIONES — Estilos cinematográficos compartidos
   ============================================================ */

/* ---------- Barra de aviso ---------- */
.demo-bar {
    position: relative;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.demo-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.demo-bar-link:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* ---------- Navegación ---------- */
.demo-nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.demo-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 2px;
    width: 0;
    background: var(--accent-color);
    transition: width 0.25s ease;
}

.demo-nav-link:hover::after {
    width: 100%;
}

/* ---------- Portada cinematográfica ---------- */
.demo-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 92vh;
}

.demo-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.demo-hero-scrim {
    position: absolute;
    inset: 0;
}

.demo-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 6rem 1rem;
}

.demo-scrim-corralon {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.82) 0%, rgba(17, 24, 39, 0.52) 45%, rgba(17, 24, 39, 0.94) 100%),
        radial-gradient(900px 520px at 82% 15%, rgba(234, 88, 12, 0.3), transparent 62%);
}

.demo-scrim-iglesia {
    background:
        linear-gradient(180deg, rgba(46, 33, 4, 0.78) 0%, rgba(46, 33, 4, 0.5) 45%, rgba(46, 33, 4, 0.93) 100%),
        radial-gradient(900px 520px at 80% 15%, rgba(255, 200, 87, 0.34), transparent 62%);
}

.demo-scrim-estudio {
    background:
        linear-gradient(180deg, rgba(7, 27, 48, 0.6) 0%, rgba(7, 27, 48, 0.28) 45%, rgba(7, 27, 48, 0.78) 100%),
        radial-gradient(900px 520px at 80% 14%, rgba(255, 200, 87, 0.28), transparent 62%);
}

.demo-scrim-electricista {
    background:
        linear-gradient(180deg, rgba(5, 15, 30, 0.84) 0%, rgba(5, 15, 30, 0.5) 45%, rgba(5, 15, 30, 0.95) 100%),
        radial-gradient(900px 520px at 82% 12%, rgba(255, 200, 87, 0.26), transparent 62%);
}

/* ---------- Tarjetas cinematográficas ---------- */
.demo-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.demo-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.12);
}

.demo-tile-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.demo-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-tile:hover .demo-tile-media img {
    transform: scale(1.07);
}

.demo-tile-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.6rem 1.4rem 1.4rem;
}

.demo-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(234, 88, 12, 0.14);
    color: #c2410c;
    font-size: 1.2rem;
    margin-top: -2.9rem;
    margin-bottom: 0.7rem;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-md);
}

.demo-tile-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-color);
}

.demo-tile-body p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.demo-tile--warm .demo-tile-icon {
    background: rgba(138, 106, 22, 0.12);
    color: #6E5512;
}

/* ---------- Galería deslizante ---------- */
.demo-marquee {
    display: flex;
    overflow: hidden;
    padding-bottom: 0.5rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.demo-marquee-track {
    display: flex;
    width: max-content;
    animation: demoMarquee 48s linear infinite;
}

.demo-marquee:hover .demo-marquee-track {
    animation-play-state: paused;
}

.demo-marquee-track img {
    width: 300px;
    height: 206px;
    object-fit: cover;
    border-radius: 16px;
    margin-right: 1rem;
    flex-shrink: 0;
}

@keyframes demoMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Íconos de servicios ---------- */
.demo-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.2rem;
}

/* ---------- Cierre cinematográfico ---------- */
.demo-closing {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 62vh;
}

.demo-closing-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Sección de la agencia ---------- */
.demo-agency {
    border-top: 4px solid var(--accent-color);
}

@media (max-width: 640px) {
    .demo-marquee-track img {
        width: 230px;
        height: 160px;
    }

    .demo-hero {
        min-height: 88vh;
    }

    .demo-hero-inner {
        padding: 5rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .demo-marquee-track {
        animation: none;
    }
}