/*
  DEALPARTNER V12 - COMPLETE REBUILD
  Clean, Modern, Professional Design System
  Author: AI Assistant
  Version: 12.0
*/

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    background-color: #ffffff;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand Colors */
    --color-primary: #1e3a5f;
    --color-primary-dark: #152a45;
    --color-primary-light: #2c5282;
    --color-accent: #2563eb;
    --color-accent-light: #3b82f6;

    /* Text Colors */
    --color-text: #374151;
    --color-text-dark: #111827;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;

    /* Background Colors */
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
    --color-bg-gray: #f3f4f6;
    --color-bg-dark: #111827;

    /* Border & Shadow */
    --color-border: #e5e7eb;
    --color-border-dark: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: var(--space-2xl);
}

h3 {
    font-size: 1.5rem;
    margin-top: var(--space-xl);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

strong,
b {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-gray {
    background-color: var(--color-bg-light);
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: #ffffff;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex */
.flex {
    display: flex;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-between {
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
}

.header-top a {
    color: rgba(255, 255, 255, 0.9);
}

.header-top a:hover {
    color: #ffffff;
}

.header-main {
    padding: var(--space-md) 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.logo img {
    height: 50px;
    width: auto;
}

.header-contacts {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-contact-item i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.header-contact-item .label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-contact-item .value {
    font-weight: 600;
    color: var(--color-text-dark);
}

.phone-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: #25D366;
    color: #ffffff;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: #ffffff;
    text-decoration: none;
}

.btn-whatsapp img {
    width: 20px;
    height: 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: var(--space-md) var(--space-lg);
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--color-accent);
    background: var(--color-bg-light);
    text-decoration: none;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    list-style: none;
    z-index: 100;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-border);
}

.nav-dropdown li:last-child a {
    border-bottom: none;
}

.nav-dropdown li a:hover {
    background: var(--color-bg-light);
    color: var(--color-accent);
    text-decoration: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: var(--space-3xl) 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-with-bg {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(44, 82, 130, 0.88) 100%),
        url('../assets/images/photo/foto_01b.webp');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #ffffff;
    font-size: 2.75rem;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: var(--space-2xl) 0;
    color: #ffffff;
}

.page-header h1 {
    color: #ffffff;
    margin-bottom: var(--space-sm);
}

.breadcrumb {
    display: flex;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: #ffffff;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--color-accent);
    color: #ffffff;
}

.btn-accent:hover {
    background: var(--color-accent-light);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
}

/* Light outline button for dark backgrounds */
.btn-outline-light {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--color-primary);
    text-decoration: none;
}

/* Hero buttons container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.02);
}

.card-title-overlay {
    background: var(--color-primary);
    padding: var(--space-md) var(--space-lg);
}

.card-title-overlay a {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-overlay a:hover {
    color: #ffffff;
    text-decoration: none;
}

.card-title-overlay a i {
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.card:hover .card-title-overlay a i {
    transform: translateX(4px);
}

.card-body {
    padding: var(--space-lg);
    flex-grow: 1;
}

.card-body p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.8;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.3s ease;
}

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

.product-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.product-card .status {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

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

.sidebar-nav li {
    margin-bottom: var(--space-sm);
}

.sidebar-nav a {
    display: block;
    padding: var(--space-md);
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    text-decoration: none;
}

.sidebar-contact {
    background: var(--color-bg-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.sidebar-contact h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-dark);
}

.sidebar-contact p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.sidebar-contact .phone {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================
   CONTENT
   ============================================ */
.content {
    padding: var(--space-2xl) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.content-main h2 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--space-sm);
}

.content-main h3 {
    color: var(--color-text-dark);
}

.content-main ul,
.content-main ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.content-main li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

th,
td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: var(--color-bg-light);
    font-weight: 600;
    color: var(--color-text-dark);
}

tr:hover td {
    background: var(--color-bg-light);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: var(--space-2xl) 0;
    text-align: center;
    color: #ffffff;
}

.cta h2 {
    color: #ffffff;
    margin-bottom: var(--space-sm);
    margin-top: 0;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

.cta .phone {
    font-size: 2rem;
    font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer h4 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: #ffffff;
}

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

.footer-nav li {
    margin-bottom: var(--space-sm);
}

.footer-nav a {
    display: inline-block;
    padding: var(--space-xs) 0;
    font-size: 0.9375rem;
}

.footer-contact-item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

.footer-contact-item i {
    color: var(--color-accent-light);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title h2 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

.section-title p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 992px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.feature {
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.feature-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.feature h3 {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

.feature p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   MOBILE NAVIGATION (Hamburger Menu)
   ============================================ */

/* Hamburger Button - Hidden on desktop */
.nav-toggle {
    display: none !important;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
    align-items: center;
    gap: 8px;
}

.nav-toggle:hover {
    background: var(--color-primary-dark);
}

.nav-toggle i {
    font-size: 1.25rem;
}

.nav-toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Active state for hamburger */
.nav-toggle.active {
    background: var(--color-primary-dark);
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    .header-contacts {
        gap: var(--space-md);
    }

    .header-contact-item .label,
    .header-contact-item .value {
        font-size: 0.8rem;
    }

    .nav-link {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    html {
        font-size: 15px !important;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Container padding */
    .container {
        padding: 0 1rem !important;
    }

    /* Section spacing */
    .section {
        padding: var(--space-xl) 0 !important;
    }

    /* CRITICAL: Hide top bar on mobile */
    .header-top {
        display: none !important;
    }

    /* Header main - logo + hamburger in one row */
    .header-main {
        padding: 12px 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .header-main .container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 0 15px !important;
    }

    /* Smaller logo on mobile */
    .logo {
        flex-shrink: 0 !important;
    }

    .logo img {
        height: 38px !important;
        width: auto !important;
    }

    /* CRITICAL: Hide desktop contacts */
    .header-contacts {
        display: none !important;
    }

    /* Hide address items completely */
    .header-contact-item {
        display: none !important;
    }

    /* Mobile phone button - always visible */
    .mobile-phone-btn {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: var(--color-primary) !important;
        color: #fff !important;
        padding: 10px 14px !important;
        border-radius: var(--radius-md) !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        text-decoration: none !important;
    }

    .mobile-phone-btn:hover {
        background: var(--color-primary-dark) !important;
        color: #fff !important;
    }

    /* HAMBURGER BUTTON - in header next to logo */
    .nav-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: #1e3a5f !important;
        color: #fff !important;
        border: none !important;
        padding: 10px 16px !important;
        border-radius: 8px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

    .nav-toggle i {
        font-size: 1.1rem !important;
    }

    .nav-toggle-label {
        display: none !important;
        /* Hide text on mobile, just show icon */
    }

    /* HIDE nav section completely on mobile - menu appears as overlay */
    .nav {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 9998 !important;
        padding: 0 !important;
    }

    .nav.active {
        display: block !important;
    }

    .nav .container {
        position: absolute !important;
        top: 60px !important;
        left: 10px !important;
        right: 10px !important;
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
        padding: 0 !important;
        overflow: hidden !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }

    /* Menu list - always visible when nav is active */
    .nav-list,
    nav .nav-list,
    .nav ul.nav-list,
    ul.nav-list {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .nav-item {
        border-bottom: 1px solid #e5e7eb !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-link {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        color: #1f2937 !important;
        text-decoration: none !important;
        background: #fff !important;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #f3f4f6 !important;
        color: #2563eb !important;
    }

    /* Dropdown in mobile - inline */
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--color-bg-light);
    }

    .nav-dropdown li a {
        padding-left: var(--space-2xl);
    }

    /* Hero section - COMPACT on mobile */
    .hero {
        padding: 30px 0 !important;
    }

    .hero-content {
        text-align: center !important;
    }

    .hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .hero p {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
        line-height: 1.6 !important;
    }

    /* Hero buttons container - stacked on mobile */
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* Hero buttons - FIXED: full width, stacked, centered */
    .hero .btn,
    .hero-buttons .btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        margin: 0 !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    /* Remove any inline styles that might override */
    .hero .btn[style] {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Page header */
    .page-header {
        padding: var(--space-lg) 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    /* Cards - full width */
    .card {
        margin-bottom: var(--space-md);
    }

    /* Buttons - larger touch target */
    .btn {
        min-height: 48px;
        padding: var(--space-md) var(--space-lg);
    }

    /* CTA section */
    .cta {
        padding: var(--space-xl) 0;
    }

    .cta h2 {
        font-size: 1.25rem;
    }

    .cta .phone {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: var(--space-xl) 0;
    }

    .footer-grid {
        gap: var(--space-lg);
    }

    .footer h4 {
        font-size: 1rem;
    }

    /* Sidebar - on top of content on mobile */
    .content-grid {
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        order: 2;
        margin-top: var(--space-xl);
    }

    .content-main {
        order: 1;
    }

    /* Tables - horizontal scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }

    /* Gallery */
    .gallery-preview {
        gap: 1rem;
    }

    .gallery-preview .gallery-item img {
        height: 150px;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .btn {
        font-size: 0.9rem;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .cta .phone {
        font-size: 1.25rem;
    }

    /* Single column for all grids */
    .grid-2,
    .grid-3,
    .grid-4,
    .features,
    .articles-grid,
    .gallery-preview {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MOBILE STICKY CTA (Call Button)
   ============================================ */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: var(--space-sm);
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.mobile-cta .container {
    display: flex;
    gap: var(--space-sm);
}

.mobile-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.mobile-cta .btn-call {
    background: #fff;
    color: var(--color-primary);
}

.mobile-cta .btn-whatsapp-mobile {
    background: #25D366;
    color: #fff;
}

@media (max-width: 768px) {
    .mobile-cta {
        display: block;
    }

    /* Add padding to body so content isn't hidden by sticky CTA */
    body {
        padding-bottom: 70px;
    }
}

/* ============================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ============================================ */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .nav-link,
    .sidebar-nav a,
    .footer-nav a,
    .btn,
    a.btn {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Remove hover effects on touch */
    .card:hover,
    .feature:hover,
    .product-card:hover {
        transform: none;
    }

    /* Active states instead of hover */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .card:active {
        box-shadow: var(--shadow-md);
    }
}

/* ============================================
   UX ENHANCEMENTS (10/10)
   ============================================ */

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Smooth transitions everywhere */
a,
button,
.card,
.btn,
.nav-link,
.sidebar-nav a,
.product-card {
    transition: all 0.2s ease-in-out;
}

/* Improved button hover */
.btn:active {
    transform: translateY(0);
}

/* Card hover glow effect */
.card:hover {
    box-shadow: 0 10px 25px -5px rgba(30, 58, 95, 0.15), 0 4px 10px -4px rgba(30, 58, 95, 0.1);
}

/* Product card subtle animation */
.product-card {
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
    pointer-events: none;
}

.product-card:hover::before {
    border-color: var(--color-primary);
}

/* Sidebar link active indicator */
.sidebar-nav li.active a::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #fff;
    border-radius: 2px;
}

.sidebar-nav a {
    position: relative;
}

/* Phone link pulse animation on hover */
.phone-link:hover {
    color: var(--color-accent);
}

/* WhatsApp button glow */
.btn-whatsapp:hover {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* CTA section improved */
.cta .phone {
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* Improved table row hover */
tr:hover td {
    background: var(--color-bg-light);
    transition: background 0.15s ease;
}

/* Feature icons subtle float */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: translateY(-4px);
}

/* Loading state for images */
.card-image img {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
}

/* Print styles */
@media print {

    .header,
    .nav,
    .cta,
    .footer,
    .sidebar {
        display: none !important;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
    }

    .card {
        break-inside: avoid;
    }
}

/* ============================================
   GALLERY PREVIEW (Homepage)
   ============================================ */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-preview {
        grid-template-columns: 1fr;
    }
}

.gallery-preview .gallery-item {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.gallery-preview .gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.gallery-preview .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.gallery-preview .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-preview .gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   ARTICLES SECTION
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.article-card .article-image {
    overflow: hidden;
    height: 200px;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-card .article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card .article-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.article-card .article-meta span {
    margin-right: 1rem;
}

.article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.article-card h3 a:hover {
    color: var(--color-primary);
}

.article-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-card .article-link {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card .article-link:hover {
    color: var(--color-accent);
}

.article-card .article-link i {
    transition: transform 0.2s ease;
}

.article-card .article-link:hover i {
    transform: translateX(4px);
}

caption {
    caption-side: top;
    text-align: left;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}