/* ============================================================
   Cubovia - Premium Pet Marketplace
   Enterprise-Grade Design System
   ============================================================ */

/* === CSS VARIABLES === */
:root {
    --primary: #1E3A8A;
    --primary-dark: #152d6b;
    --primary-light: #2d4fa0;
    --secondary: #C9A14A;
    --secondary-dark: #b8923e;
    --secondary-light: #e5c078;
    --accent: #6b9080;
    --accent-dark: #567a6b;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #fc8181;
    --info: #63b3ed;
    --dark: #1a202c;
    --gray-900: #2d3436;
    --gray-800: #4a5568;
    --gray-700: #718096;
    --gray-600: #a0aec0;
    --gray-500: #cbd5e0;
    --gray-400: #e2e8f0;
    --gray-300: #edf2f7;
    --gray-200: #f7fafc;
    --gray-100: #faf8f5;
    --cream: #f5f0eb;
    --white: #ffffff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1280px;
    --header-height: 80px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--gray-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading); 
    color: var(--dark); 
    line-height: 1.3; 
    margin-bottom: 0.5em;
    font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--gray-700); }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* === UTILITY === */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-gray { color: var(--gray-600); }
.text-white { color: var(--white); }
.bg-cream { background: var(--cream); }
.bg-light { background: var(--gray-100); }
.bg-white { background: var(--white); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { 
    position: absolute; top: -100px; left: 0; background: var(--primary); 
    color: var(--white); padding: 12px 24px; z-index: 10000; transition: top 0.3s;
}
.skip-link:focus { top: 0; color: var(--white); }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px;
    font-size: 0.95rem; font-weight: 600; border: 2px solid transparent;
    border-radius: var(--radius); cursor: pointer; transition: var(--transition);
    text-decoration: none; line-height: 1; white-space: nowrap; position: relative;
    overflow: hidden; letter-spacing: 0.3px;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); }
.btn-secondary { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); color: var(--dark); border-color: var(--secondary); }
.btn-secondary:hover { background: linear-gradient(135deg, var(--secondary-dark), var(--secondary)); color: var(--dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: var(--gray-100); color: var(--primary-dark); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); border-color: var(--accent); }
.btn-sm { padding: 10px 24px; font-size: 0.875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-xl { padding: 22px 48px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* === TOP BAR === */
.top-bar { background: var(--dark); color: var(--gray-500); font-size: 0.82rem; padding: 10px 0; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 24px; }
.top-bar a { color: var(--gray-500); }
.top-bar a:hover { color: var(--secondary); }
.top-bar i { margin-right: 6px; color: var(--secondary); }
.top-social { display: flex; gap: 16px; }

/* === HEADER === */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 1000; transition: var(--transition);
}
.main-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.1); }
.main-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; min-height: var(--header-height); }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; font-weight: 700; color: var(--primary); text-decoration: none; font-family: var(--font-heading); }
.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius);
}
.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.logo-text { display: flex; flex-direction: column; }
.logo-text small { font-size: 0.65rem; font-weight: 500; color: var(--gray-600); letter-spacing: 2px; text-transform: uppercase; font-family: var(--font-primary); }

/* Navigation */
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link { 
    padding: 10px 16px; color: var(--gray-700); font-weight: 500; font-size: 0.9rem;
    border-radius: var(--radius); transition: var(--transition); display: flex;
    align-items: center; gap: 5px; text-decoration: none; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(26,54,93,0.05); }
.nav-link .dropdown-arrow { font-size: 0.55rem; margin-left: 3px; transition: transform 0.3s ease; flex-shrink: 0; }
.nav-actions { display: flex; gap: 10px; margin-left: 20px; padding-left: 20px; border-left: 1px solid var(--gray-300); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: var(--white); min-width: 240px; box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-radius: var(--radius-md); padding: 12px; opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 100;
    border: 1px solid var(--gray-200); list-style: none;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu li a { 
    display: flex; align-items: center; gap: 14px; padding: 12px 16px;
    color: var(--gray-700); font-size: 0.9rem; transition: var(--transition);
    border-radius: var(--radius); text-decoration: none;
}
.dropdown-menu li a:hover { background: var(--cream); color: var(--primary); transform: translateX(4px); }
.dropdown-menu li a .dropdown-icon {
    width: 36px; height: 36px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(26,54,93,0.08), rgba(44,82,130,0.08)); color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, rgba(26,54,93,0.92) 0%, rgba(15,36,64,0.88) 100%),
                url('https://images.unsplash.com/photo-1601758228041-f3b2795255f1?w=1920&q=80') center/cover no-repeat;
    color: var(--white); padding: 140px 0 120px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212,168,83,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to top, var(--gray-100), transparent);
}
.hero-content { max-width: 720px; position: relative; z-index: 2; animation: fadeInUp 0.8s ease; }
.hero h1 { color: var(--white); margin-bottom: 24px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; }
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.95; line-height: 1.8; font-weight: 300; color: var(--gray-300); }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 50px; margin-top: 60px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--secondary); font-family: var(--font-heading); }
.hero-stat .label { font-size: 0.9rem; opacity: 0.85; font-weight: 500; margin-top: 4px; }

/* === PAGE HERO === */
.page-hero {
    background: linear-gradient(135deg, rgba(26,54,93,0.92), rgba(15,36,64,0.88)),
                url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?w=1920&q=80') center/cover no-repeat;
    color: var(--white); padding: 100px 0 80px; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto; color: var(--gray-300); }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 24px; font-size: 0.9rem; }
.breadcrumb a { color: var(--secondary); }
.breadcrumb span { opacity: 0.7; }
.breadcrumb .separator { opacity: 0.5; }

/* === SECTION HEADERS === */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-header .subtitle { 
    color: var(--secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 3px;
    font-size: 0.8rem; margin-bottom: 14px; display: inline-block; position: relative; font-family: var(--font-primary);
}
.section-header .subtitle::before, .section-header .subtitle::after {
    content: ''; position: absolute; top: 50%; width: 30px; height: 2px; background: var(--secondary);
}
.section-header .subtitle::before { right: calc(100% + 15px); }
.section-header .subtitle::after { left: calc(100% + 15px); }
.section-header h2 { margin-bottom: 20px; font-weight: 600; }
.section-header p { color: var(--gray-600); font-size: 1.1rem; line-height: 1.8; }

/* === CARDS === */
.card {
    background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow);
    overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--secondary-light); }
.card-img { width: 100%; height: 260px; object-fit: cover; }
.card-body { padding: 28px; }
.card-title { font-size: 1.2rem; margin-bottom: 10px; font-weight: 600; }
.card-text { color: var(--gray-600); font-size: 0.95rem; line-height: 1.6; }
.card-meta { display: flex; gap: 16px; margin-top: 14px; font-size: 0.85rem; color: var(--gray-500); }
.card-footer { padding: 18px 28px; border-top: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; background: var(--gray-100); }

/* === PET CARDS === */
.pet-card { position: relative; overflow: hidden; }
.pet-card .card-img { height: 280px; transition: transform 0.5s ease; }
.pet-card:hover .card-img { transform: scale(1.05); }
.pet-badge {
    position: absolute; top: 16px; left: 16px; background: var(--success); color: var(--white);
    padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; z-index: 2;
}
.pet-badge.featured { background: var(--secondary); color: var(--dark); }
.pet-badge.new { background: var(--accent); }
.pet-price {
    position: absolute; bottom: 16px; right: 16px; background: var(--primary); color: var(--white);
    padding: 8px 16px; border-radius: var(--radius); font-weight: 700; font-size: 1.1rem; z-index: 2;
}
.pet-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.pet-detail { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gray-600); }
.pet-detail i { color: var(--secondary); width: 18px; }
.pet-category-badge {
    display: inline-block; padding: 4px 12px; background: var(--cream); color: var(--primary);
    border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 12px;
}

/* === CATEGORY CARDS === */
.category-card { text-align: center; padding: 40px 24px; cursor: pointer; }
.category-card .category-icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--cream), var(--gray-100));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; transition: var(--transition);
}
.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white); transform: scale(1.1);
}
.category-card h4 { margin-bottom: 8px; font-weight: 600; }
.category-card p { font-size: 0.9rem; color: var(--gray-600); margin: 0; }

/* === GRIDS === */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

/* === FILTERS === */
.filter-sidebar { background: var(--white); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.filter-group { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-200); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; color: var(--dark); font-family: var(--font-primary); }
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--gray-700); }
.filter-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* === FORMS === */
.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--gray-700); font-size: 0.9rem; }
.form-control {
    width: 100%; padding: 14px 18px; border: 2px solid var(--gray-300); border-radius: var(--radius);
    font-size: 1rem; transition: var(--transition); background: var(--white); color: var(--dark);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,54,93,0.1); }
.form-control::placeholder { color: var(--gray-500); }
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control { 
    appearance: none; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); 
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; 
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* === GALLERY === */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* === STATS === */
.stats-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-item .stat-number { font-size: 3rem; font-weight: 700; color: var(--secondary); font-family: var(--font-heading); }
.stat-item .stat-label { font-size: 0.95rem; opacity: 0.9; margin-top: 8px; font-weight: 500; }

/* === TESTIMONIALS === */
.testimonial-card { padding: 36px; position: relative; border-top: 4px solid var(--secondary); }
.testimonial-card::before { 
    content: '\201C'; font-size: 5rem; color: var(--secondary); position: absolute; 
    top: 20px; left: 30px; font-family: Georgia, serif; line-height: 1; opacity: 0.2;
}
.testimonial-text { font-style: italic; color: var(--gray-700); margin-bottom: 24px; padding-top: 40px; font-size: 1.05rem; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar { 
    width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.3rem;
}
.testimonial-info .name { font-weight: 600; color: var(--dark); }
.testimonial-info .location { font-size: 0.85rem; color: var(--gray-500); margin-top: 2px; }
.testimonial-stars { color: var(--secondary); margin-bottom: 14px; }

/* === FAQ === */
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; background: var(--white); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center; padding: 24px 28px;
    cursor: pointer; font-weight: 600; color: var(--dark); background: var(--white); transition: var(--transition); font-size: 1rem;
}
.faq-question:hover { background: var(--cream); }
.faq-question i { transition: var(--transition); color: var(--secondary); font-size: 0.8rem; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-question { color: var(--primary); background: var(--cream); }
.faq-answer { padding: 0 28px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 28px 28px; }

/* === CTA === */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white); padding: 100px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section h2 { color: var(--white); margin-bottom: 20px; font-size: 2.5rem; font-weight: 600; }
.cta-section p { font-size: 1.15rem; opacity: 0.95; max-width: 600px; margin: 0 auto 40px; line-height: 1.8; color: var(--gray-300); }

/* === FOOTER === */
.main-footer { background: var(--dark); color: var(--gray-500); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; }
.footer-logo { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 20px; font-family: var(--font-heading); }
.footer-about { font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { 
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; color: var(--gray-500); transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: var(--dark); transform: translateY(-3px); }
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 24px; font-family: var(--font-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--gray-500); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-left: 6px; }
.footer-contact li { display: flex; gap: 14px; margin-bottom: 16px; font-size: 0.9rem; }
.footer-contact i { color: var(--secondary); margin-top: 4px; width: 18px; }
.footer-contact a { color: var(--gray-500); }
.footer-contact a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; margin-top: 60px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--gray-500); }
.footer-legal a:hover { color: var(--secondary); }

/* === FLOATING === */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 56px; height: 56px;
    background: #25d366; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: var(--white); font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37,211,102,0.3); z-index: 999; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--white); }
.back-to-top {
    position: fixed; bottom: 30px; left: 30px; width: 44px; height: 44px;
    background: var(--primary); color: var(--white); border: none; border-radius: 50%;
    cursor: pointer; font-size: 1rem; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade { animation: fadeIn 0.6s ease forwards; }
.animate-fade-up { animation: fadeInUp 0.8s ease forwards; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    .mobile-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 320px; height: 100vh;
        background: var(--white); flex-direction: column; padding: 100px 28px 28px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999;
        overflow-y: auto; align-items: stretch; gap: 4px;
    }
    .nav-menu.active { right: 0; }
    .nav-link { padding: 16px 20px; font-size: 1rem; }
    .nav-actions { 
        flex-direction: column; margin-left: 0; margin-top: 24px; padding-top: 24px;
        padding-left: 0; border-left: none; border-top: 1px solid var(--gray-200); gap: 12px;
    }
    .nav-actions .btn { justify-content: center; width: 100%; }
    .has-dropdown .dropdown-menu { 
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; padding: 8px 0 8px 20px; display: none;
        min-width: auto; background: var(--gray-100); border-radius: var(--radius); margin-top: 4px;
    }
    .has-dropdown.open .dropdown-menu { display: block; }
    .hero { padding: 100px 0 80px; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { justify-content: center; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .filter-sidebar { position: static; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:first-child { grid-column: span 2; }
    .section { padding: 60px 0; }
    .section-header .subtitle::before, .section-header .subtitle::after { display: none; }
    .logo-text small { display: none; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 48px; height: 48px; font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .gallery { grid-template-columns: 1fr; }
}
@media print {
    .top-bar, .main-header, .main-footer, .whatsapp-float, .back-to-top, .mobile-toggle { display: none !important; }
    body { color: #000; }
}
