/* ==========================================================================
   EIS - Engineering & Industrial Services
   Industrial Theme Stylesheet
   Palette: Solid Black (#08090C, #0E1015), Industrial Yellow (#FFB800, #FFC72C), White (#FFFFFF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,500;0,600;0,700;1,600&family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --ind-black: #08090C;
    --ind-black-soft: #0E1015;
    --ind-surface: #14171E;
    --ind-surface-hover: #1A1F29;
    --ind-surface-card: rgba(18, 22, 29, 0.85);
    --ind-surface-glass: rgba(14, 17, 23, 0.75);
    --ind-border: rgba(255, 255, 255, 0.08);
    --ind-border-light: rgba(255, 255, 255, 0.14);
    --ind-border-yellow: rgba(255, 184, 0, 0.35);

    --ind-yellow: #FFB800;
    --ind-yellow-light: #FFCF40;
    --ind-yellow-dark: #D99B00;
    --ind-yellow-glow: rgba(255, 184, 0, 0.22);
    --ind-yellow-glow-strong: rgba(255, 184, 0, 0.45);

    --ind-white: #FFFFFF;
    --ind-gray-100: #F3F4F6;
    --ind-gray-300: #D1D5DB;
    --ind-gray-400: #9CA3AF;
    --ind-gray-500: #6B7280;
    --ind-gray-700: #374151;

    --font-heading: 'Chakra Petch', -apple-system, sans-serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--ind-black);
    color: var(--ind-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--ind-black);
    color: var(--ind-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Industrial Grid */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.ind-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.ind-highlight {
    color: var(--ind-yellow);
    text-shadow: 0 0 20px var(--ind-yellow-glow);
}

.ind-badge-hazard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid var(--ind-yellow);
    color: var(--ind-yellow);
    box-shadow: 0 0 15px var(--ind-yellow-glow);
}

.ind-badge-hazard::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--ind-yellow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--ind-yellow);
    animation: indPulse 2s infinite ease-in-out;
}

@keyframes indPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* ── HERO SCROLL SECTION (PINNED 10s ANIMATION) ──────────────────────── */
.ind-hero-scroll-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #000000;
    z-index: 2;
}

.ind-hero-sticky {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000000;
}

.ind-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

/* 16:9 Borderless Video Canvas Frame (30% Larger + 20px Left Shift) */
.ind-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background: #000000;
    border: none;
    box-shadow: none;
    transform: translateX(-60px) scale(1.20);
    transform-origin: left center;
    z-index: 1;
}

/* Seamless Vignette Overlay: Ultra-Thin Micro Edge Feathering */
.ind-video-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    /* 2px outside video boundary to eliminate hard seam lines */
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(ellipse at 50% 50%, transparent 86%, rgba(0, 0, 0, 0.45) 94%, #000000 99%),
        linear-gradient(to right, #000000 0%, transparent 2.5%, transparent 97.5%, #000000 100%),
        linear-gradient(to bottom, #000000 0%, transparent 2.5%, transparent 97.5%, #000000 100%);
}

.ind-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* HUD Overlay on Video */
.ind-video-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(8, 9, 12, 0.6) 0%, transparent 25%, transparent 75%, rgba(8, 9, 12, 0.8) 100%);
}

.ind-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ind-yellow);
    letter-spacing: 0.1em;
}

.ind-hud-rec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.ind-hud-rec-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    animation: indPulse 1s infinite;
}

.ind-hud-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ind-hud-timeline {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.ind-hud-timeline__progress {
    height: 100%;
    width: 0%;
    background: var(--ind-yellow);
    box-shadow: 0 0 10px var(--ind-yellow);
    transition: width 0.05s linear;
}

.ind-hud-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ind-gray-300);
}

/* ── OVERLAY TEXT PANEL ON RIGHT ─────────────────────────────────────── */
.ind-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 380px;
    z-index: 10;
    /* Guaranteed layered on top of the expanded video */
    pointer-events: auto;
}

.ind-scroll-message {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.4s;
    pointer-events: none;
}

.ind-scroll-message.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.ind-scroll-message--0 {
    transform: translateY(-50%);
}

.ind-scroll-message--1 {
    transform: translateY(-40%);
}

.ind-scroll-message--2 {
    transform: translateY(-60%);
}

.ind-scroll-message.is-active,
.ind-scroll-message.is-active.ind-scroll-message--0,
.ind-scroll-message.is-active.ind-scroll-message--1,
.ind-scroll-message.is-active.ind-scroll-message--2 {
    transform: translateY(-50%);
}

.ind-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ind-yellow);
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ind-hero-title {
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    font-weight: 800;
    color: var(--ind-white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.95), 0 1px 6px rgba(0, 0, 0, 0.9);
}

.ind-hero-desc {
    font-size: 1.1rem;
    color: var(--ind-gray-300);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 480px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.95);
}

.ind-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ind-tag {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ind-border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ind-gray-300);
}

.ind-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ind-yellow);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.ind-scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--ind-yellow);
    border-radius: 12px;
    position: relative;
}

.ind-scroll-wheel {
    width: 4px;
    height: 6px;
    background: var(--ind-yellow);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: indScrollWheel 1.5s infinite;
}

@keyframes indScrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }
}

/* ── SECTIONS SHARED STYLING ─────────────────────────────────────────── */
.ind-section {
    padding: 6rem 0;
    position: relative;
    border-top: 1px solid var(--ind-border);
}

.ind-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem auto;
}

.ind-section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--ind-yellow);
    margin-bottom: 0.75rem;
}

.ind-section-title {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 800;
    color: var(--ind-white);
    margin-bottom: 1rem;
}

.ind-section-subtitle {
    font-size: 1.05rem;
    color: var(--ind-gray-400);
}

/* ── PROYECTOS SECTION ───────────────────────────────────────────────── */
.ind-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

.ind-project-card {
    background: var(--ind-surface-card);
    border: 1px solid var(--ind-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ind-project-card:hover {
    transform: translateY(-6px);
    border-color: var(--ind-border-yellow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px var(--ind-yellow-glow);
}

.ind-project-img-box {
    width: 100%;
    height: 240px;
    background: #0f1217;
    position: relative;
    overflow: hidden;
}

.ind-project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ind-project-card:hover .ind-project-img-box img {
    transform: scale(1.05);
}

.ind-project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(8, 9, 12, 0.85);
    border: 1px solid var(--ind-yellow);
    color: var(--ind-yellow);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    backdrop-filter: blur(8px);
}

.ind-project-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ind-project-title {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--ind-white);
}

.ind-project-desc {
    color: var(--ind-gray-400);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.ind-project-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--ind-border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.ind-spec-item span:first-child {
    display: block;
    color: var(--ind-gray-500);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.ind-spec-item span:last-child {
    color: var(--ind-yellow);
    font-weight: 600;
}

/* ── SERVICIOS SECTION ───────────────────────────────────────────────── */
.ind-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ind-service-card {
    background: var(--ind-surface-card);
    border: 1px solid var(--ind-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ind-service-card:hover {
    border-color: var(--ind-border-yellow);
    background: var(--ind-surface-hover);
    transform: translateY(-4px);
}

.ind-service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--ind-white);
}

.ind-service-desc {
    color: var(--ind-gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── RESPONSIVE RULES ────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .ind-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ind-video-wrapper {
        transform: scale(1.0);
        transform-origin: center center;
    }

    .ind-hero-content {
        min-height: 260px;
    }
}

@media (max-width: 768px) {

    .ind-video-wrapper {
        aspect-ratio: 16 / 9;
        transform: scale(1.25);
        transform-origin: center bottom;
    }
}

/* ── MARKER CIRCLE LOOP ANIMATION (5s LOOP) ─────────────────────────── */
.ind-marker-wrap {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    white-space: nowrap;
    color: var(--ind-yellow);
}

.ind-marker-svg {
    position: absolute;
    top: -16%;
    left: -12%;
    width: 124%;
    height: 132%;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.ind-marker-svg path {
    stroke: var(--ind-yellow);
    stroke-width: 3.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.45));
    animation: indMarkerLoop 5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes indMarkerLoop {
    0% {
        stroke-dashoffset: 600;
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    30%, 75% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    88% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
    100% {
        stroke-dashoffset: 600;
        opacity: 0;
    }
}

/* ── CONTINUOUS AUTOMATIC LOGO MARQUEE SLIDER (CLEAN BACKGROUND) ────── */
.ind-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 28px;
    box-shadow: none;
    pointer-events: none;
}

.ind-marquee-fade-left,
.ind-marquee-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 65px;
    pointer-events: none;
    z-index: 4;
}

.ind-marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, #000000 15%, transparent 100%);
}

.ind-marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, #000000 15%, transparent 100%);
}

.ind-marquee-track {
    display: flex;
    gap: 5.5rem;
    width: max-content;
    padding-right: 5.5rem;
    animation: indMarquee 24s linear infinite;
    align-items: center;
}

@keyframes indMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ind-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 185px;
    height: 90px;
    padding: 0.5rem 1rem;
    filter: none;
    opacity: 0.94;
}

.ind-logo-item img {
    height: var(--logo-h, 56px);
    width: auto;
    object-fit: contain;
    display: block;
}