/* ========================================
   ANAVI PRODUCCIONES - NEW DESIGN SYSTEM
   Adapted from Opus Editorial Design
   Colors: Brand Red (#A21111), Dark (#232323), Light (#F5F5F5)
   Fonts: Montserrat (headings), Kumbh Sans (body), Dancing Script (decorative)
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --bg: #F5F5F5;
    --bg-rgb: 245, 245, 245;
    --fg: #232323;
    --fg-rgb: 35, 35, 35;
    --primary: #A21111;
    --primary-rgb: 162, 17, 17;
    --primary-fg: #FFFFFF;
    --accent: #D32F2F;
    --accent-rgb: 211, 47, 47;
    --secondary: #EFEFEF;
    --secondary-rgb: 239, 239, 239;
    --surface: #F0F0F0;
    --muted: #888888;
    --border: #E0E0E0;
    --lime: #FFCDD2; /* soft red tint instead of lime */
    --card-bg: #FFFFFF;
    --radius: 0.75rem;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Kumbh Sans', sans-serif;
    --font-decorative: 'Dancing Script', cursive;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.new-design {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== LENIS SMOOTH SCROLL ===== */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

/* ===== CUSTOM CURSOR (disabled — using native cursor with custom style) ===== */
#custom-cursor {
    display: none !important;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@keyframes clipRevealUp {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes scaleTypography {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(162, 17, 17, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(162, 17, 17, 0.15); }
}

/* ===== SCROLL ANIMATION UTILITIES ===== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.anim-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade-in {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out-expo);
}
.anim-fade-in.in-view {
    opacity: 1;
}

.anim-clip-up {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1s var(--ease-out-expo);
}
.anim-clip-up.in-view {
    clip-path: inset(0 0 0 0);
}

.anim-scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.anim-scale-in.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ===== ANNOUNCEMENT BANNER ===== */
.nd-announcement {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    cursor: pointer;
    padding: 0.6rem 1rem;
    margin-top: 3.75rem; /* below fixed header */
    position: relative;
    z-index: 50;
    transition: filter 0.3s ease;
}
.nd-announcement:hover {
    filter: brightness(1.1);
}
.nd-announcement-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.nd-announcement-badge {
    background: #F5A623;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.nd-announcement-text {
    color: white;
    font-family: var(--font-body);
    font-size: 0.8rem;
}
.nd-announcement-text strong {
    font-weight: 700;
}
.nd-announcement-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: white;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    flex-shrink: 0;
}
.nd-announcement-cta svg {
    transition: transform 0.3s ease;
}
.nd-announcement:hover .nd-announcement-cta svg {
    transform: translateX(3px);
}

/* ===== HEADER / NAVIGATION ===== */
.nd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nd-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.nd-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nd-logo {
    flex-shrink: 0;
}
.nd-logo img {
    height: 2.75rem;
    width: auto;
}
.nd-nav {
    display: none;
    gap: 0;
    align-items: center;
    flex: 1;
}
.nd-nav a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0.55rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.nd-nav a:hover, .nd-nav a.active {
    color: var(--primary);
}
.nd-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.55rem;
    right: 0.55rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nd-nav a:hover::after, .nd-nav a.active::after {
    transform: scaleX(1);
}
@media (min-width: 1200px) {
    .nd-nav { display: flex; }
}

.nd-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.nd-social-links {
    display: none;
    gap: 0.5rem;
    align-items: center;
}
.nd-social-links a {
    color: var(--muted);
    transition: color 0.3s ease;
}
.nd-social-links a:hover {
    color: var(--primary);
}
@media (min-width: 1200px) {
    .nd-social-links { display: flex; }
}

.nd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
}
.nd-cta-btn:hover {
    background: var(--accent);
    transform: scale(0.98);
}
.nd-cta-btn:active {
    transform: scale(0.96);
}
.nd-cta-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Mobile menu */
.nd-mobile-toggle {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--fg);
    cursor: pointer;
}
@media (min-width: 1200px) {
    .nd-mobile-toggle { display: none; }
}

.nd-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(245, 245, 245, 0.98);
    border-top: 1px solid var(--border);
}
.nd-mobile-menu.open {
    display: flex;
}
.nd-mobile-menu a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
.nd-mobile-menu a:hover {
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.nd-hero {
    position: relative;
    min-height: calc(100vh - 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
    padding: 3rem 1.5rem 3rem;
}

/* ===== VIDEO HERO VARIANT ===== */
.nd-hero--video {
    min-height: 100vh;
    padding: 0;
    background: #000;
}

.nd-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.nd-hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(162, 17, 17, 0.25) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

/* Title adjustments for video hero */
.nd-hero--video .nd-hero-title {
    z-index: 10;
    mix-blend-mode: normal;
}

.nd-hero--video .nd-hero-title h1 {
    color: #FFFFFF;
    mix-blend-mode: normal;
    filter: none;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
}

.nd-hero--video .nd-hero-title h1 em {
    color: #FFCDD2;
}

/* Scroll indicator for video hero */
.nd-hero--video .nd-scroll-indicator-inner {
    border-color: rgba(255, 255, 255, 0.4);
}

.nd-hero--video .nd-scroll-dot {
    background: rgba(255, 255, 255, 0.7);
}

/* ===== ORIGINAL IMAGE HERO (kept for reference) ===== */
.nd-hero-images {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
}

.nd-hero-img {
    width: 260px;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    will-change: transform;
}
.nd-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nd-hero-img:nth-child(1),
.nd-hero-img:nth-child(3) {
    position: absolute;
    z-index: 1;
}
.nd-hero-img:nth-child(2) {
    position: relative;
    z-index: 2;
}

/* Clip-path reveal animations */
.nd-hero-img {
    clip-path: inset(100% 0 0 0);
}
.nd-hero-img.revealed {
    animation: clipRevealUp 1s var(--ease-out-expo) forwards;
}
.nd-hero-img:nth-child(1).revealed { animation-delay: 0.2s; }
.nd-hero-img:nth-child(2).revealed { animation-delay: 0.4s; }
.nd-hero-img:nth-child(3).revealed { animation-delay: 0.6s; }

@media (min-width: 768px) {
    .nd-hero-img { width: 320px; }
}

.nd-hero-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
}
.nd-hero-title.revealed {
    animation: fadeInUp 1s var(--ease-out-expo) 0.8s forwards;
}
.nd-hero-title h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    text-align: center;
    color: var(--fg);
    mix-blend-mode: difference;
    filter: invert(1);
    line-height: 1.1;
}
.nd-hero-title h1 em {
    font-family: var(--font-decorative);
    font-style: italic;
    font-weight: 400;
}

.nd-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}
.nd-scroll-indicator.revealed {
    animation: fadeIn 0.5s ease 1.5s forwards;
}
.nd-scroll-indicator-inner {
    width: 1.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid rgba(35, 35, 35, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
}
.nd-scroll-dot {
    width: 4px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(35, 35, 35, 0.5);
    animation: scrollBounce 1.5s ease infinite;
}

/* ===== MANIFESTO SECTION ===== */
.nd-manifesto {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 8rem 1.5rem;
}
.nd-manifesto-inner {
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
}
.nd-manifesto-base {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: rgba(35, 35, 35, 0.1);
}
.nd-manifesto-reveal {
    position: absolute;
    inset: 0;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(to right, #8B0000, var(--primary), #8B0000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    clip-path: inset(0 100% 0 0);
    will-change: clip-path;
}

/* ===== FEATURES SECTION ===== */
.nd-features {
    background: var(--fg);
    padding: 6rem 1.5rem;
}
.nd-features-inner {
    max-width: 72rem;
    margin: 0 auto;
}
.nd-section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 2rem;
}
.nd-features .nd-section-label {
    color: var(--primary);
    text-align: center;
}
.nd-features-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.nd-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .nd-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .nd-features-grid { grid-template-columns: repeat(4, 1fr); }
}
.nd-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 2rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, background 0.3s ease;
    cursor: pointer;
}
.nd-feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}
.nd-feature-card:active {
    transform: scale(0.96);
}
.nd-feature-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.nd-feature-icon {
    width: 4.5rem;
    height: 4.5rem;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.nd-feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    transition: color 0.3s ease;
}
.nd-feature-card:hover .nd-feature-icon {
    background: var(--primary);
    border-color: var(--primary);
}
.nd-feature-card:hover .nd-feature-icon svg {
    color: white;
}
.nd-feature-card-info {
    margin-top: 0;
}
.nd-feature-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}
.nd-feature-card-info p {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Typography tester */
.nd-type-tester {
    font-family: var(--font-decorative);
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--fg);
    animation: scaleTypography 4s ease-in-out infinite;
}

/* Layout animation */
.nd-layout-demo {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    max-width: 140px;
    transition: all 0.5s var(--ease-out-expo);
}
.nd-layout-block {
    background: rgba(162, 17, 17, 0.2);
    border-radius: 0.375rem;
    min-height: 30px;
    transition: all 0.5s var(--ease-out-expo);
}

/* Speed indicator */
.nd-speed-value {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    color: var(--fg);
}
.nd-speed-label {
    font-size: 0.875rem;
    color: var(--muted);
}
.nd-speed-bar {
    width: 100%;
    max-width: 120px;
    height: 6px;
    background: rgba(35, 35, 35, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1rem;
}
.nd-speed-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
    width: 0%;
    transition: width 0.8s var(--ease-out-expo);
}
.nd-speed-fill.active {
    width: 100%;
}

/* ===== TEAM & PARTNERS SECTION ===== */
.nd-team {
    background: var(--bg);
    padding: 6rem 1.5rem;
}
.nd-team-inner {
    max-width: 72rem;
    margin: 0 auto;
}
.nd-team-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--fg);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.nd-team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 768px) {
    .nd-team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}
.nd-team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.nd-team-photo {
    position: relative;
    width: 180px;
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}
.nd-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.nd-team-member:hover .nd-team-photo img {
    transform: scale(1.05);
}
.nd-team-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nd-team-logo {
    width: 180px;
    height: 220px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.nd-team-member:hover .nd-team-logo {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}
.nd-team-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}
.nd-team-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--fg);
}
.nd-team-role {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

/* ===== CAROUSEL SECTION ===== */
.nd-carousel {
    background: var(--primary);
    padding: 6rem 0;
    overflow: hidden;
}
.nd-carousel-title {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}
.nd-carousel-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: white;
}
.nd-carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.nd-carousel-track:hover {
    animation-play-state: paused;
}
.nd-carousel-item {
    flex-shrink: 0;
    width: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
    .nd-carousel-item { width: 400px; }
}
.nd-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== INSIGHTS SECTION (Services adapted) ===== */
.nd-insights {
    background: var(--bg);
    padding: 6rem 1.5rem;
}
.nd-insights-inner {
    max-width: 56rem;
    margin: 0 auto;
}
.nd-insights-list {
    border-top: 1px solid var(--border);
}
.nd-insight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--fg);
    transition: padding 0.3s ease, color 0.3s ease;
    cursor: pointer;
    position: relative;
}
.nd-insight-item:hover {
    padding-left: 1rem;
    padding-right: 1rem;
}
.nd-insight-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.nd-insight-title {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--fg);
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}
.nd-insight-item:hover .nd-insight-title {
    color: var(--primary);
}
.nd-insight-arrow {
    color: var(--muted);
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}
.nd-insight-item:hover .nd-insight-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Floating preview image */
.nd-insight-preview {
    position: fixed;
    pointer-events: none;
    z-index: 50;
    width: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: none;
}
.nd-insight-preview.visible {
    opacity: 1;
    transform: scale(1);
}
@media (min-width: 768px) {
    .nd-insight-preview { display: block; }
}

/* ===== PRICING SECTION ===== */
.nd-pricing {
    background: var(--secondary);
    padding: 6rem 1.5rem;
}
.nd-pricing-inner {
    max-width: 64rem;
    margin: 0 auto;
}
.nd-pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}
.nd-pricing-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--fg);
}
.nd-pricing-header p {
    color: var(--muted);
    margin-top: 1rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}
.nd-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .nd-pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.nd-pricing-card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.2s ease;
    cursor: pointer;
}
.nd-pricing-card:hover {
    transform: translateY(-4px);
}
.nd-pricing-card.popular {
    box-shadow: 0 0 0 2px var(--primary);
    padding-top: 2.5rem;
}
.nd-pricing-badge {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lime);
    color: var(--fg);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
    z-index: 1;
}

/* Ticket edge effect */
.ticket-edge {
    mask-image: radial-gradient(circle at 0 50%, transparent 8px, black 8px),
        radial-gradient(circle at 100% 50%, transparent 8px, black 8px);
    mask-size: 51% 100%;
    mask-position: left, right;
    mask-repeat: no-repeat;
    -webkit-mask-image: radial-gradient(circle at 0 50%, transparent 8px, black 8px),
        radial-gradient(circle at 100% 50%, transparent 8px, black 8px);
    -webkit-mask-size: 51% 100%;
    -webkit-mask-position: left, right;
    -webkit-mask-repeat: no-repeat;
}

.nd-pricing-divider {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border);
}
.nd-pricing-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg);
}
.nd-pricing-price {
    margin-top: 1rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}
.nd-pricing-amount {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--fg);
}
.nd-pricing-period {
    color: var(--muted);
    font-size: 0.875rem;
}
.nd-pricing-desc {
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.nd-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.nd-pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--fg);
}
.nd-pricing-features li svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}
.nd-pricing-btn {
    display: block;
    width: 100%;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
}
.nd-pricing-btn.primary {
    background: var(--primary);
    color: white;
}
.nd-pricing-btn.primary:hover {
    background: var(--accent);
}
.nd-pricing-btn.secondary {
    background: var(--secondary);
    color: var(--fg);
}
.nd-pricing-btn.secondary:hover {
    background: rgba(162, 17, 17, 0.1);
}

/* ===== ADAPTED SECTIONS - COMMON STYLES ===== */
.nd-section {
    padding: 6rem 1.5rem;
}
.nd-section-inner {
    max-width: 72rem;
    margin: 0 auto;
}
.nd-section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.nd-section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 1rem;
}
.nd-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--fg);
    line-height: 1.2;
}
.nd-section-subtitle {
    color: var(--muted);
    margin-top: 1rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== NOSOTROS (ABOUT) SECTION ===== */
.nd-about {
    background: var(--bg);
}
.nd-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .nd-about-grid { grid-template-columns: 1fr 1fr; }
}
.nd-about-text p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.nd-about-images {
    position: relative;
}
.nd-about-img-main {
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
.nd-about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nd-about-img-small {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    width: 12rem;
    height: 12rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}
.nd-about-img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Value Props (dark bg) */
.nd-value-props {
    background: var(--fg);
    color: white;
}
.nd-value-props .nd-section-badge {
    color: var(--accent);
}
.nd-value-props .nd-section-title {
    color: white;
}
.nd-value-grid {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.nd-value-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: background 0.3s ease, transform 0.2s ease;
}
.nd-value-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}
.nd-value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
}
.nd-value-icon svg {
    width: 20px;
    height: 20px;
}
.nd-value-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.nd-value-content p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== SERVICIOS (SERVICES) SECTION ===== */
.nd-services {
    background: var(--bg);
}
.nd-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .nd-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .nd-services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
    .nd-services-grid { grid-template-columns: repeat(4, 1fr); }
}
.nd-service-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
}
.nd-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.nd-service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    transition: background 0.3s ease, color 0.3s ease;
}
.nd-service-card:hover .nd-service-icon {
    background: var(--primary);
    color: white;
}
.nd-service-icon svg {
    width: 24px;
    height: 24px;
}
.nd-service-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.5rem;
}
.nd-service-card p {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.nd-service-card .nd-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.3s ease;
}
.nd-service-card:hover .nd-btn-sm {
    gap: 0.75rem;
}

/* ===== NOVEDADES CARDS ===== */
.nd-novedad-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nd-novedad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.nd-novedad-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--secondary);
}
.nd-novedad-media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nd-novedad-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--fg);
}
.nd-novedad-card:hover .nd-novedad-nav { opacity: 1; }
.nd-novedad-nav--prev { left: 0.5rem; }
.nd-novedad-nav--next { right: 0.5rem; }
.nd-novedad-nav:hover { background: white; }
.nd-novedad-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.nd-novedad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}
.nd-novedad-dot.active,
.nd-novedad-dot[style*="scale"] {
    background: white;
    transform: scale(1.3);
}
.nd-novedad-counter {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 9999px;
    z-index: 10;
}
.nd-novedad-body {
    padding: 1.5rem 1.75rem 1.75rem;
}
.nd-novedad-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.nd-novedad-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.nd-novedad-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.nd-novedad-price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}
.nd-novedad-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.nd-novedad-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--fg);
}
.nd-novedad-features li svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}
.nd-novedad-more {
    color: var(--muted);
    font-size: 0.75rem;
    padding-left: 1.25rem;
}
.nd-novedad-actions {
    display: flex;
    gap: 0.75rem;
}
.nd-novedad-actions .nd-pricing-btn {
    margin-top: 0;
    flex: 1;
    font-size: 0.8rem;
    padding: 0.65rem 1rem;
}

/* ===== PRODUCTOS SECTION ===== */
.nd-productos {
    background: var(--secondary);
}

/* ===== UNIFORMES SECTION ===== */
.nd-uniformes {
    background: var(--bg);
}

/* ===== SUNMI SECTION ===== */
.nd-sunmi {
    background: var(--fg);
    color: white;
}
.nd-sunmi .nd-section-badge { color: var(--lime); }
.nd-sunmi .nd-section-title { color: white; }
.nd-sunmi .nd-section-subtitle { color: rgba(255,255,255,0.7); }

/* ===== PROMOTORAS/TALENT SECTION ===== */
.nd-promotoras {
    background: var(--bg);
}
.nd-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.nd-filter-bar input,
.nd-filter-bar select {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--fg);
    outline: none;
    transition: border-color 0.3s ease;
}
.nd-filter-bar input:focus,
.nd-filter-bar select:focus {
    border-color: var(--primary);
}
.nd-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--fg);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.nd-filter-toggle:hover,
.nd-filter-toggle.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.nd-filter-advanced {
    margin-top: -1rem;
    align-items: center;
}
.nd-filter-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nd-filter-range-input {
    width: 5rem;
    padding: 0.625rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--fg);
    outline: none;
    transition: border-color 0.3s ease;
}
.nd-filter-range-input:focus {
    border-color: var(--primary);
}
.nd-filter-clear {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.nd-filter-clear:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== PRE-ORDEN SECTION ===== */
.nd-preorden {
    background: var(--secondary);
}
.nd-preorden-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .nd-preorden-layout { grid-template-columns: 2fr 1fr; }
}

/* Steps */
.nd-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.nd-step {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: var(--card-bg);
    color: var(--muted);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.nd-step.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.nd-step.completed {
    background: rgba(162, 17, 17, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}
.progress-line {
    width: 2rem;
    height: 2px;
    background: var(--border);
    align-self: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}
.progress-line.completed {
    background: var(--primary);
}

/* Form inputs */
.nd-form-group {
    margin-bottom: 1.5rem;
}
.nd-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.5rem;
}
.nd-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card-bg);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--fg);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nd-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(162, 17, 17, 0.1);
}
.nd-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Summary card */
.nd-summary-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    position: sticky;
    top: 6rem;
}

/* ===== TRABAJA SECTION ===== */
.nd-trabaja {
    background: var(--bg);
}
.nd-job-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .nd-job-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .nd-job-grid { grid-template-columns: repeat(3, 1fr); }
}
.nd-job-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nd-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}
.nd-job-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(162, 17, 17, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}
.nd-job-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.75rem;
}
.nd-job-reqs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.nd-job-reqs li {
    font-size: 0.8125rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nd-job-reqs li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* ===== FAQ SECTION ===== */
.nd-faq {
    background: var(--secondary);
}
.nd-faq-inner {
    max-width: 48rem;
    margin: 0 auto;
}
.nd-faq-category {
    margin-bottom: 2rem;
}
.nd-faq-category-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}
.nd-faq-item {
    background: var(--card-bg);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.nd-faq-item.open {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.nd-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fg);
    text-align: left;
    transition: color 0.3s ease;
}
.nd-faq-question:hover {
    color: var(--primary);
}
.nd-faq-question svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--muted);
}
.nd-faq-item.open .nd-faq-question svg {
    transform: rotate(180deg);
    color: var(--primary);
}
.nd-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.nd-faq-item.open .nd-faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1rem;
}
.nd-faq-answer p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== CONTACTO SECTION ===== */
.nd-contacto {
    background: var(--bg);
}
.nd-contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) {
    .nd-contacto-grid { grid-template-columns: 1fr 1fr; }
}
.nd-contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: white;
}
.nd-contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.nd-contact-link svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}
.nd-contact-link.instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.nd-contact-link.tiktok { background: #000000; }
.nd-contact-link.whatsapp { background: #25D366; }
.nd-contact-link.email { background: var(--fg); }
.nd-contact-link.email-rh { background: #2563EB; }

/* ===== FOOTER ===== */
.nd-footer {
    position: relative;
    background: #1a1a1a;
    padding: 4rem 1.5rem 2rem;
    overflow: hidden;
}
.nd-footer-inner {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
}
.nd-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .nd-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}
/* Brand column */
.nd-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.nd-footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    filter: brightness(0) invert(1);
}
.nd-footer-desc {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 320px;
}
.nd-footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.nd-footer-social a {
    color: #9ca3af;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.nd-footer-social a:hover {
    color: #fff;
}
/* Link columns */
.nd-footer-col {
    display: flex;
    flex-direction: column;
}
.nd-footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
}
.nd-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.nd-footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}
.nd-footer-links a:hover {
    color: #fff;
}
/* Bottom bar */
.nd-footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
@media (min-width: 768px) {
    .nd-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
.nd-footer-bottom p {
    color: #6b7280;
    font-size: 0.8125rem;
}
.nd-footer-legal {
    display: flex;
    gap: 1.5rem;
}
.nd-footer-legal a {
    color: #6b7280;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nd-footer-legal a:hover {
    color: #fff;
}

/* ===== MODAL STYLES (updated) ===== */
.nd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nd-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.nd-modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s var(--ease-out-expo);
}
.nd-modal-overlay.active .nd-modal-content {
    transform: translateY(0);
}

/* ===== STEPPER BUTTONS ===== */
.nd-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.25rem;
}
.nd-stepper button {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fg);
    transition: background 0.2s ease;
}
.nd-stepper button:hover {
    background: var(--primary);
    color: white;
}
.nd-stepper span,
.nd-stepper input[type="number"] {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}
.nd-stepper input[type="number"] {
    border: none;
    background: transparent;
    -moz-appearance: textfield;
}
.nd-stepper input[type="number"]::-webkit-outer-spin-button,
.nd-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== RESPONSIVE UTILITIES ===== */
.nd-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== SCROLL TO TOP ===== */
.nd-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(162, 17, 17, 0.3);
}
.nd-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.nd-scroll-top:hover {
    background: var(--accent);
}

/* ===== CHECKBOX STYLES ===== */
.nd-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.nd-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.nd-checkbox-item:hover {
    border-color: var(--primary);
}
.nd-checkbox-item.checked {
    border-color: var(--primary);
    background: rgba(162, 17, 17, 0.05);
}
.nd-checkbox-item input[type="checkbox"] {
    accent-color: var(--primary);
}

/* ===== RADIO STYLES ===== */
.nd-radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.nd-radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.nd-radio-item.selected {
    border-color: var(--primary);
    background: rgba(162, 17, 17, 0.05);
}
.nd-radio-item input[type="radio"] {
    accent-color: var(--primary);
}

/* ===== TOAST STYLES ===== */
.nd-toast-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.nd-toast {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease;
    max-width: 360px;
    font-size: 0.875rem;
}

/* ===== NO SCROLLBAR UTILITY (used by main.js carousels) ===== */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ===== MARCA ITEMS (rendered by main.js from Supabase) ===== */
.marca-item {
    flex-shrink: 0;
    width: 300px;
    padding: 2rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
    .marca-item { width: 400px; }
}
.marca-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.marca-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* ===== SEARCH WRAPPER (header search bar) ===== */
.nd-search-wrapper {
    display: none;
}
@media (min-width: 1200px) {
    .nd-search-wrapper {
        display: block;
    }
}
