/* ================================================
   JORJWEB Ltda. - Diseño Híbrido Dark/Light
   Moderno, Elegante, Responsive
   ================================================ */

:root {
    --gold: #43a047;
    --gold-light: #81c784;
    --gold-dark: #2e7d32;
    --dark: #1b5e20;
    --dark-2: #256b2a;
    --dark-3: #2e7d32;
    --light: #f8f9fa;
    --light-2: #e9ecef;
    --white: #ffffff;
    --text: #111111;
    --text-light: #1a1a1a;
    --text-muted: #1a1a1a;
    --text-on-dark: #ffffff;
    --text-on-dark-soft: #ffffff;
    --success: #28a745;
    --error: #dc3545;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* Texto claro automatico en fondos oscuros */
.top-bar, .top-bar *,
.hero, .hero *,
.section-dark, .section-dark *,
.section-accent, .section-accent *,
.section-cta, .section-cta *,
.footer, .footer *,
.page-header, .page-header *,
.admin-sidebar, .admin-sidebar *,
.admin-login, .admin-login > * {
    --text: var(--text-on-dark);
    --text-light: var(--text-on-dark-soft);
    --text-muted: var(--text-on-dark-soft);
}
/* Forzar texto blanco en titulos/parrafos dentro de fondos oscuros */
.hero h1, .hero h2, .hero h3, .hero h4, .hero p, .hero li, .hero span,
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark p, .section-dark li,
.section-accent h1, .section-accent h2, .section-accent h3, .section-accent h4, .section-accent p, .section-accent li,
.section-cta h1, .section-cta h2, .section-cta h3, .section-cta h4, .section-cta p, .section-cta li,
.page-header h1, .page-header h2, .page-header p,
.footer h1, .footer h2, .footer h3, .footer h4, .footer p, .footer li, .footer a {
    color: #ffffff;
}

/* La tarjeta del login es blanca: restaurar texto oscuro dentro */
.admin-login .admin-login-card,
.admin-login .admin-login-card * {
    --text: #111111;
    --text-light: #1a1a1a;
    --text-muted: #1a1a1a;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--gold-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--dark);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(46,125,50,0.15);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left { display: flex; gap: 20px; align-items: center; }

.top-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.top-item svg { color: var(--gold-light); flex-shrink: 0; }
.top-bar-right a { color: #ffffff; opacity: 0.9; }
.top-bar-right a:hover { color: var(--gold-light); opacity: 1; }

.top-bar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-bar-right a {
    color: var(--text-muted);
    transition: var(--transition);
}

.top-bar-right a:hover { color: var(--gold); }

.top-link {
    background: var(--gold);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff !important;
    border: 1px solid var(--gold-light);
    letter-spacing: 0.5px;
}

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

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.brand-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.brand-text { letter-spacing: -0.5px; }

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 8px;
}

.navbar-menu a {
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--gold-dark);
    background: rgba(46,125,50,0.08);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* Hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--dark-3) 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(46,125,50,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(27,94,32,0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 600;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #ffffff;
    border-color: var(--gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(46,125,50,0.4);
    color: #ffffff;
}

.btn-outline {
    border-color: var(--gold-light);
    color: #ffffff;
    background: transparent;
}

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

/* En fondos claros, invertir: texto verde para legibilidad */
.section-light .btn-outline,
.navbar .btn-outline,
.admin-content .btn-outline,
.admin-card .btn-outline {
    color: var(--gold-dark);
    border-color: var(--gold);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

.btn-full { width: 100%; justify-content: center; }

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 16px;
}

.btn-whatsapp:hover { background: #128C7E; color: white; transform: translateY(-2px); }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--dark); }
.section-accent { background: var(--dark-2); }
.section-cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
    padding: 100px 0;
    color: var(--white);
}

.section-cta h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-cta p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.1rem; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 12px;
    color: var(--dark);
    position: relative;
}

.section-title.light { color: var(--white); }
.section-title.left { text-align: left; }

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title.left::after { margin-left: 0; }

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--light-2);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.product-icon {
    color: var(--gold);
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.product-card p { color: var(--text-light); font-size: 0.9rem; }

/* Products detail */
.products-detail-grid { display: flex; flex-direction: column; gap: 32px; }

.product-detail-card {
    display: flex;
    gap: 32px;
    background: var(--white);
    border: 1px solid var(--light-2);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.product-detail-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.product-detail-icon {
    color: var(--gold);
    flex-shrink: 0;
    padding-top: 4px;
}

.product-detail-content h2 { font-size: 1.4rem; margin-bottom: 12px; color: var(--dark); }
.product-detail-content p { color: var(--text-light); margin-bottom: 16px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.9rem;
}

/* ========== VERSIONS ========== */
.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.version-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.version-card:hover { transform: translateY(-4px); border-color: var(--gold); }

.version-card.featured {
    border-color: var(--gold);
    background: rgba(46,125,50,0.08);
}

.version-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.version-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.version-card p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }

/* ========== ABOUT ========== */
.about-preview {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-preview-text p { color: var(--text-light); margin-bottom: 24px; font-size: 1.05rem; line-height: 1.8; }

.about-preview-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-item {
    background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(46,125,50,0.02));
    border: 1px solid rgba(46,125,50,0.2);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label { color: var(--text-light); font-size: 0.9rem; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-block {
    background: var(--light);
    border-radius: var(--radius);
    padding: 40px;
    border-left: 4px solid var(--gold);
}

.about-block h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.about-block p { color: var(--text-light); line-height: 1.8; }

.text-content { max-width: 800px; margin: 0 auto; }
.text-content p { color: var(--text-light); line-height: 1.9; font-size: 1.05rem; }

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 12px;
}

.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ========== NEWS ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.news-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
}

.section-light .news-card {
    background: var(--white);
    border: 1px solid var(--light-2);
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-2);
}

.news-card-img-placeholder {
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
}

.news-card-body { padding: 24px; }

.news-card-body time {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-media-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(46,125,50,0.14);
    color: var(--gold-dark);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-card-body h3 { font-size: 1.15rem; margin: 8px 0 12px; color: var(--dark); }
.section-accent .news-card-body h3,
.section-dark .news-card-body h3 { color: var(--white); }

.news-card-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 12px; }
.section-accent .news-card-body p,
.section-dark .news-card-body p { color: var(--text-muted); }

.news-card-body a { color: var(--gold); font-weight: 600; font-size: 0.9rem; }

/* Article detail */
.article-content { max-width: 800px; margin: 0 auto; }
.article-img { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.article-body { line-height: 1.9; color: var(--text); font-size: 1.05rem; }
.article-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.article-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item video,
.gallery-item iframe,
.admin-gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,46,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span { color: var(--white); font-weight: 600; }

.gallery-overlay-static {
    opacity: 1;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 16px;
    background: linear-gradient(to top, rgba(26,26,46,0.8), rgba(26,26,46,0.15));
}

.gallery-video-link {
    cursor: pointer;
}

.gallery-video-overlay {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.gallery-video-overlay strong {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(46,125,50,0.92);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1200;
}

.video-modal.is-open {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 26, 0.78);
    backdrop-filter: blur(6px);
}

.video-modal-dialog {
    position: relative;
    width: min(960px, 100%);
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(26,26,46,0.9);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
}

.video-modal-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-modal-frame iframe,
.video-modal-frame .video-modal-empty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-modal-frame iframe {
    border: 0;
}

.video-modal-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--white);
    text-align: center;
    background: linear-gradient(135deg, var(--dark), var(--dark-3));
}

.video-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-top: 1px solid var(--light-2);
}

.video-modal-footer strong {
    color: var(--dark);
}

.gallery-fallback,
.admin-gallery-empty {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
    color: var(--white);
    font-weight: 700;
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

.contact-form-wrap h2,
.contact-info-wrap h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #555555;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    background: #ffffff;
    transition: var(--transition);
    background: var(--white);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.25);
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-info-item svg { flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; margin-bottom: 4px; color: var(--dark); }
.contact-info-item p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

.contact-map {
    width: 100%;
    height: 250px;
    border-radius: var(--radius);
    margin-top: 24px;
    border: 1px solid var(--light-2);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.contact-submit-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-submit-actions .btn {
    flex: 1 1 220px;
    justify-content: center;
}

.btn-whatsapp-outline {
    border: 2px solid #25D366;
    background: transparent;
    color: #128C7E;
}

.btn-whatsapp-outline:hover {
    background: #25D366;
    color: #fff;
}

/* ========== ALERTS ========== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success { background: rgba(40,167,69,0.1); color: var(--success); border: 1px solid rgba(40,167,69,0.2); }
.alert-error { background: rgba(220,53,69,0.1); color: var(--error); border: 1px solid rgba(220,53,69,0.2); }

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: var(--text-muted);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 8px; }

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }
.footer-col p { font-size: 0.9rem; margin-bottom: 6px; }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { color: var(--text-muted); }
.footer-social a:hover { color: var(--gold); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ========== ANIMATIONS ========== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }

/* ========== ADMIN STYLES ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    padding: 24px 0;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar-brand span:last-child { font-weight: 700; }

.admin-nav { list-style: none; }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--gold);
    background: rgba(46,125,50,0.08);
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    background: var(--light);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h1 { font-size: 1.6rem; color: var(--dark); }

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.admin-card h2 { font-size: 1.2rem; margin-bottom: 16px; color: var(--dark); }

.admin-form { display: flex; flex-direction: column; gap: 16px; }
.admin-form label { font-weight: 500; font-size: 0.9rem; display: block; margin-bottom: 4px; }
.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #555555;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    background: #ffffff;
}

.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    outline: none;
    border-color: var(--gold);
}

.admin-grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-col-span-2 {
    grid-column: 1 / -1;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-actions form {
    margin: 0;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.admin-gallery-card {
    border: 1px solid var(--light-2);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.admin-gallery-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.admin-gallery-body {
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.admin-logo-preview {
    margin-top: 12px;
}

.admin-logo-preview img {
    max-width: 180px;
    max-height: 72px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--light-2);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.admin-news-preview {
    position: relative;
    display: inline-block;
    max-width: 320px;
    border: 1px solid var(--light-2);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.admin-news-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.admin-news-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(26,26,46,0.85);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-news-thumb {
    width: 88px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--light-2);
    display: block;
}

.admin-area-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 16px;
}

.admin-messages {
    display: grid;
    gap: 16px;
}

.admin-message-card {
    border: 1px solid var(--light-2);
    border-radius: var(--radius);
    padding: 20px;
}

.admin-message-card p {
    margin: 8px 0;
}

.admin-message-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.admin-message-head p,
.admin-message-card small,
.admin-help {
    color: var(--text-light);
}

.admin-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-status.is-sent {
    background: rgba(40,167,69,0.12);
    color: var(--success);
}

.admin-status.is-pending {
    background: rgba(46,125,50,0.15);
    color: var(--gold-dark);
}

.admin-checkbox {
    display: flex;
    align-items: center;
    padding-top: 28px;
}

.admin-checkbox input {
    width: auto;
    margin-right: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--light-2);
    font-size: 0.9rem;
}

.admin-table th { font-weight: 600; color: var(--dark); background: var(--light); }
.admin-table tr:hover { background: rgba(46,125,50,0.03); }

.btn-danger {
    background: var(--error);
    color: white;
    border-color: var(--error);
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-danger:hover { opacity: 0.9; color: white; }

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.admin-login-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.admin-login-card h1 {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 8px;
}

.admin-login-card p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.admin-stat-card .stat-number {
    font-size: 2rem;
    color: var(--gold);
}

.admin-stat-card .stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .navbar-toggle { display: flex; }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow);
    }

    .navbar-menu.open { display: flex; }

    .about-preview { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .product-detail-card { flex-direction: column; }

    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; }
    .admin-grid-form,
    .admin-area-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .top-bar-inner { justify-content: center; }
    .top-bar-right {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero { min-height: 70vh; }
    .section { padding: 60px 0; }
    .products-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .versions-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-header { padding: 60px 0 40px; }
    .page-header h1 { font-size: 2rem; }
    .video-modal { padding: 14px; }
    .video-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
}
