/* =======================================================
   MIDIATIVA — Supermercados Digital Signage (Dark & Orange)
   ======================================================= */

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

:root {
    --orange: #ff6b00;
    --orange-light: #ff8c38;
    --orange-glow: rgba(255, 107, 0, 0.28);
    --dark: #0a0a0a;
    --dark-2: #121212;
    --dark-3: #1c1c1c;
    --dark-4: #262626;
    --text: #e8e8e8;
    --text-muted: #999;
    --border: rgba(255,255,255,0.08);
    --font-display: 'DM Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- PRELOADER ---- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo { margin-bottom: 24px; animation: pulse-logo 1.5s ease infinite; }
@keyframes pulse-logo { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,107,0,0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 12px;
}
.preloader-fill {
    height: 100%;
    background: var(--orange);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px var(--orange);
}
.preloader-pct {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--orange);
}

/* ---- HEADER ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 48px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}
.header.scrolled {
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    padding: 16px 48px;
    border-bottom: 1px solid var(--border);
}
.header-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 48px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}
.logo-img {
    height: 68px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.header.scrolled .logo-img {
    height: 52px;
}
.logo em {
    color: var(--orange);
    font-style: normal;
}
.nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
}
.nav a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
}
.nav a:hover { color: var(--orange); }

.btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-header:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--orange-glow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--dark-2);
    z-index: 200;
    padding: 80px 40px 40px;
    transition: right 0.4s cubic-bezier(.77,0,.175,1);
    border-left: 1px solid var(--border);
}
.mobile-menu.open { right: 0; }
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.mobile-menu nav a {
    font-size: 20px;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.3s;
}
.mobile-menu nav a:hover { color: var(--orange); }
.btn-mobile {
    display: inline-block;
    padding: 14px 28px;
    background: var(--orange);
    color: #fff !important;
    font-size: 14px !important;
    border-radius: 4px;
    margin-top: 16px;
    text-align: center;
}
.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.overlay.active { opacity: 1; visibility: visible; }

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover {
    background: var(--orange-light);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px var(--orange-glow);
}
.btn-primary.full { width: 100%; justify-content: center; }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
}
.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-3px);
}

/* ---- COMMON TYPOGRAPHY & TAGS ---- */
.section-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.section-title.big {
    font-size: clamp(56px, 9vw, 130px);
    line-height: 0.9;
    margin-bottom: 36px;
}
.section-title .outline {
    -webkit-text-stroke: 1.5px var(--orange);
    color: transparent;
}
.orange { color: var(--orange); }

/* ---- HERO SECTION (REAL STORE BACKGROUND) ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.05);
    transition: transform 10s ease;
}
.hero:hover .hero-real-img {
    transform: scale(1);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,10,10,0.94) 0%,
        rgba(10,10,10,0.78) 55%,
        rgba(10,10,10,0.35) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    max-width: 860px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 6.5vw, 92px);
    font-weight: 800;
    line-height: 1.04;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-title .line-1 { display: block; color: #fff; font-weight: 900; }
.hero-title .line-2 { display: block; color: var(--orange); font-weight: 900; }
.hero-title .line-3 {
    display: block;
    -webkit-text-stroke: 3px rgba(255,255,255,0.6);
    color: transparent;
}
.hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats {
    position: absolute;
    bottom: 50px;
    left: 80px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease 1s both;
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.stat-num em {
    font-style: normal;
    color: var(--orange);
    font-size: 34px;
}
.stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}
.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

.scroll-indicator {
    position: absolute;
    right: 48px;
    bottom: 50px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.scroll-indicator span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--orange), transparent);
    animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- ABOUT SECTION (REAL TOTEM ENCARTE PHOTO) ---- */
.about {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}
.about-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 58%;
    height: 100%;
}
.about-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}
.about:hover .about-real-img {
    transform: scale(1.03);
}
.about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--dark) 18%,
        rgba(10,10,10,0.85) 50%,
        rgba(10,10,10,0.2) 100%
    );
}
.about-content {
    position: relative;
    z-index: 2;
    padding: 100px 80px;
    max-width: 640px;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 44px;
}
.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,107,0,0.35);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,107,0,0.08);
}
.feature h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #fff;
}
.feature p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- SOLUTIONS / RECURSOS ---- */
.solutions {
    position: relative;
    padding: 120px 80px;
    overflow: hidden;
    background: var(--dark-2);
}
.solutions-bg {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}
.solutions-real-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) blur(1px);
}
.solutions-overlay {
    position: absolute;
    inset: 0;
    background: var(--dark-2);
    opacity: 0.62;
}
.solutions-header, .solutions-grid { position: relative; z-index: 2; }
.solutions-header {
    margin-bottom: 64px;
    max-width: 760px;
}
.solutions-header p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 16px;
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.solution-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.solution-card:hover {
    border-color: var(--orange);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255,107,0,0.12);
}
.solution-num {
    display: block;
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: rgba(255,107,0,0.3);
    line-height: 1;
    margin-bottom: 12px;
    transition: color 0.3s;
}
.solution-card:hover .solution-num { color: var(--orange); }
.solution-content h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px;
}
.solution-content p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- REAL STORE GALLERY (CASES) ---- */
.stores {
    padding: 120px 80px;
    background: var(--dark);
}
.stores-header {
    margin-bottom: 56px;
}
.stores-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 340px 340px 340px;
    gap: 16px;
}
.store-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--dark-3);
    border: 1px solid var(--border);
}
.store-item.tall { grid-row: span 2; }
.store-item.wide { grid-column: span 2; }
.store-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(.165,.84,.44,1);
}
.store-item:hover .store-real-img { transform: scale(1.07); }
.store-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 24px 20px;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 70%, transparent 100%);
    transition: all 0.3s ease;
}
.store-info h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}
.store-info span {
    font-size: 12px;
    color: var(--orange);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- TESTIMONIALS ---- */
.testimonials {
    position: relative;
    padding: 120px 80px;
    overflow: hidden;
    background: var(--dark-2);
}
.testimonials-bg {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}
.test-real-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) blur(1px);
}
.test-overlay {
    position: absolute;
    inset: 0;
    background: var(--dark-2);
    opacity: 0.62;
}
.testimonials-content { position: relative; z-index: 2; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.testimonial-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s;
}
.testimonial-card:hover {
    border-color: var(--orange);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(255,107,0,0.1);
}
.stars {
    font-size: 20px;
    color: var(--orange);
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.testimonial-card p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.testimonial-author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.testimonial-author span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- CTA ---- */
.cta {
    position: relative;
    padding: 120px 80px;
    overflow: hidden;
    background: var(--dark);
    border-top: 1px solid var(--border);
}
.cta-bg {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}
.cta-real-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) blur(1px);
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: var(--dark);
    opacity: 0.62;
}
.cta-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(46px, 6vw, 84px);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #fff;
}
.cta-inner > p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.8;
}
.cta-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.form-group input,
.form-group select {
    padding: 16px 20px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus { border-color: var(--orange); }
.form-group select option { background: var(--dark-3); }

/* ---- FOOTER ---- */
.footer {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 80px 80px 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 320px;
}
.footer-links h5,
.footer-contact h5 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 24px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--orange); }
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-contact p {
    font-size: 14px;
    color: var(--text-muted);
}
.footer-bottom {
    padding: 24px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .header { padding: 20px 32px; }
    .nav { display: none; }
    .btn-header { display: none; }
    .menu-toggle { display: flex; }
    .hero-content { padding: 0 40px; }
    .hero-stats { left: 40px; }
    .scroll-indicator { display: none; }
    .about-bg { width: 100%; opacity: 0.35; }
    .about-content { padding: 80px 40px; max-width: 100%; }
    .solutions { padding: 80px 40px; }
    .solutions-grid { grid-template-columns: 1fr; }
    .stores { padding: 80px 40px; }
    .stores-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .store-item.tall, .store-item.wide { grid-column: auto; grid-row: auto; }
    .testimonials { padding: 80px 40px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cta { padding: 80px 40px; }
    .form-row { grid-template-columns: 1fr; }
    .footer { padding: 60px 40px 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .hero { height: auto; min-height: 100vh; padding: 140px 0 60px; overflow: visible; }
    .hero-title { font-size: 44px; }
    .hero-stats {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 32px;
    }
    .stat-divider { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-content { padding: 0 24px; }
    .solutions, .stores, .testimonials, .cta { padding: 60px 24px; }
    .stores-grid { grid-template-columns: 1fr; }
    .footer { padding: 48px 24px 0; }
    .section-title { font-size: 30px; letter-spacing: 1px; }
    .section-title.big { font-size: 44px; }
    .cta-title { font-size: 32px; letter-spacing: 1px; }
    .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-float {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 26px rgba(0,0,0,0.45);
}
