/* ============================================================
   MAESTROS - Stylesheet v1.0
   Pure CSS3 - No frameworks
   ============================================================ */

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

:root {
    --red:        #ED3237;
    --red-dark:   #B8323B;
    --red-light:  #FF4D52;
    --dark:       #1A1A1A;
    --dark-mid:   #222222;
    --dark-soft:  #2C2C2C;
    --gray-900:   #333333;
    --gray-700:   #555555;
    --gray-500:   #888888;
    --gray-300:   #BBBBBB;
    --gray-100:   #F0F0F0;
    --white:      #FFFFFF;
    --font-body:  'DM Sans', sans-serif;
    --font-head:  'Outfit', sans-serif;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.12);
    --shadow-md:  0 4px 16px rgba(0,0,0,.15);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.2);
    --radius:     8px;
    --radius-lg:  12px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --max-width:  1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img, svg, video {
    display: block;
    max-width: 100%;
}

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
    padding: 0;
    background: rgba(26,26,26,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
    background: rgba(26,26,26,.98);
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Inner pages need top padding to clear the fixed header */
.page-profile,
.page-list,
.page-policy {
    padding-top: 100px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.header-logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(237,50,55,.35));
    transition: filter var(--transition);
}

.header-logo:hover img {
    filter: drop-shadow(0 0 12px rgba(237,50,55,.55));
}

/* Nav Links (desktop) */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: .01em;
}

.header-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,.1);
}

.header-nav a.btn-maestro {
    background: var(--red);
    color: var(--white);
    font-weight: 600;
}

.header-nav a.btn-maestro:hover {
    background: var(--red-light);
}

.header-nav a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background var(--transition);
}

.menu-toggle:hover {
    background: rgba(255,255,255,.1);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay (fuera del header, evita conflicto con backdrop-filter) */
.mobile-nav {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: rgba(26,26,26,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.4,0,.2,1),
                opacity .35s cubic-bezier(.4,0,.2,1),
                visibility .35s;
    z-index: 1001;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.mobile-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: rgba(255,255,255,.85);
    font-size: .95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition);
}

.mobile-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,.08);
}

.mobile-nav a.btn-maestro {
    background: var(--red);
    color: var(--white);
    justify-content: center;
    margin-top: 8px;
    font-weight: 600;
}

.mobile-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================================
   HERO SECTION (video background)
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 360px;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%,-50%);
    object-fit: cover;
    z-index: 0;
}

.hero-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.65) 0%,
        rgba(0,0,0,.45) 40%,
        rgba(0,0,0,.6) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
    margin-top: 60px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-title span {
    color: var(--red);
    text-shadow: 0 0 10px rgba(255,255,255,.7), 0 0 30px rgba(255,255,255,.4), 0 0 60px rgba(255,255,255,.15);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.8);
    margin-bottom: 40px;
    line-height: 1.5;
    font-weight: 400;
}

/* ============================================================
   SEARCH BAR SECTION
   ============================================================ */
.search-section {
    position: relative;
    z-index: 10;
    margin-top: -44px;
    padding-bottom: 0;
}

.search-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search input wrapper */
.search-field {
    flex: 1;
    position: relative;
}

.search-field input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: .95rem;
    color: var(--gray-900);
    transition: all var(--transition);
}

.search-field input::placeholder {
    color: var(--gray-500);
}

.search-field input:focus {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(237,50,55,.12);
}

.search-field .icon-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray-500);
    pointer-events: none;
}

/* Autocomplete dropdown */
.autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 280px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    border: 1px solid var(--gray-100);
}

.autocomplete-list.is-visible {
    display: block;
}

.autocomplete-list li {
    padding: 12px 16px;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background var(--transition);
}

.autocomplete-list li:hover,
.autocomplete-list li.is-active {
    background: rgba(237,50,55,.06);
    color: var(--red);
}

.autocomplete-list li .cat-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.autocomplete-list li:hover .cat-icon {
    color: var(--red);
}

.autocomplete-list li small {
    margin-left: auto;
    font-size: .75rem;
    color: var(--gray-500);
}

/* Department select */
.search-select-wrap {
    position: relative;
    flex-shrink: 0;
    width: 220px;
}

.search-select-wrap select {
    width: 100%;
    height: 52px;
    padding: 0 40px 0 16px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: .95rem;
    color: var(--gray-900);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all var(--transition);
}

.search-select-wrap select:focus {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(237,50,55,.12);
}

.search-select-wrap .icon-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-500);
    pointer-events: none;
}

/* Search button */
.search-btn {
    flex-shrink: 0;
    height: 52px;
    padding: 0 28px;
    background: var(--red);
    color: var(--white);
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(237,50,55,.35);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   SERVICES / CATEGORIES SECTION
   ============================================================ */
.services-section {
    padding: 80px 0 64px;
    background: var(--white);
}

.services-header {
    text-align: center;
    margin-bottom: 48px;
}

.services-header h2 {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.services-header p {
    font-size: .95rem;
    color: var(--gray-500);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-cat {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    background: var(--white);
    transition: all var(--transition);
}

.service-cat:hover {
    border-color: rgba(237,50,55,.15);
    box-shadow: 0 4px 20px rgba(237,50,55,.08);
    transform: translateY(-3px);
}

.service-cat h3 {
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.service-cat h3 svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--red);
}

.service-cat ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-cat ul li {
    font-size: .82rem;
    color: var(--gray-700);
    padding-left: 14px;
    position: relative;
    line-height: 1.45;
}

.service-cat ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    opacity: .4;
}

.service-cat:hover ul li::before {
    opacity: .7;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
    padding: 64px 0;
    background: var(--gray-100);
    margin-top: 0;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.newsletter-text p {
    color: var(--gray-700);
    font-size: .95rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.newsletter-form input {
    width: 300px;
    height: 48px;
    padding: 0 16px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: .9rem;
    color: var(--gray-900);
    transition: all var(--transition);
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(237,50,55,.1);
}

.newsletter-form button {
    height: 48px;
    padding: 0 24px;
    background: var(--red);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--red-dark);
}

/* ============================================================
   COUNTERS SECTION
   ============================================================ */
.counters-section {
    padding: 80px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.counters-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(237,50,55,.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.counters-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(237,50,55,.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.counter-card {
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    transition: all var(--transition);
}

.counter-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(237,50,55,.2);
    transform: translateY(-4px);
}

.counter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(237,50,55,.12);
    margin-bottom: 20px;
}

.counter-icon svg {
    width: 26px;
    height: 26px;
    color: var(--red);
}

.counter-value {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.counter-value .counter-plus {
    font-size: 1.8rem;
    color: var(--red);
}

.counter-label {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    font-weight: 500;
    letter-spacing: .02em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark-mid);
    padding: 64px 0 0;
    color: rgba(255,255,255,.7);
}

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

.footer-col h4 {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 20px;
}

.footer-brand .footer-logo {
    height: 90px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: .85rem;
    line-height: 1.65;
    margin-bottom: 20px;
    color: rgba(255,255,255,.55);
}

/* Contact info in footer */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .85rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,.55);
}

.footer-contact li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--red);
}

.footer-col ul:not(.footer-contact) li {
    margin-bottom: 10px;
}

.footer-col ul:not(.footer-contact) a {
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.footer-col ul:not(.footer-contact) a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-col ul:not(.footer-contact) a::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0;
    transition: opacity var(--transition);
}

.footer-col ul:not(.footer-contact) a:hover::before {
    opacity: 1;
}

/* App store links */
.app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.app-link:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.15);
}

.app-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--white);
}

.app-link .app-store-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}

/* Social links */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,.7);
}

.social-link:hover svg {
    color: var(--white);
}

/* Dynamic footer social (from DB) */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    transition: all var(--transition);
    color: rgba(255,255,255,.7);
}

.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-2px);
    color: var(--white);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

/* App store badges */
.footer-apps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    transition: all var(--transition);
}

.app-badge:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.15);
    color: var(--white);
}

/* ── Two-column layout (content + banners) ─────────────────── */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 28px;
    align-items: flex-start;
    padding: 30px 0;
}

.col-main {
    min-width: 0; /* prevent grid blowout */
}

.col-side {
    position: sticky;
    top: 120px;
}

/* ── Banner items ─────────────────────────────────────────── */
.banners-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.banner-item a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.banner-item a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.banner-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.banner-placeholder {
    padding: 24px 12px;
    background: var(--gray-100);
    border-radius: var(--radius);
    text-align: center;
    font-size: .8rem;
    color: var(--gray-600);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }

    .col-side {
        position: static;
    }

    .banners-sidebar {
        flex-direction: row;
        overflow-x: auto;
    }

    .banners-sidebar .banner-item {
        min-width: 180px;
    }
}

/* Footer bottom */
.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}

.footer-bottom a {
    color: rgba(255,255,255,.35);
}

.footer-bottom a:hover {
    color: var(--red);
}

/* ============================================================
   TOAST / ALERTS
   ============================================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: .9rem;
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.toast.toast-success {
    border-left: 4px solid #22C55E;
}

.toast.toast-error {
    border-left: 4px solid var(--red);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .search-card {
        flex-wrap: wrap;
    }

    .search-field {
        flex: 1 1 100%;
    }

    .search-select-wrap {
        flex: 1;
        width: auto;
    }

    .search-btn {
        flex: 0 0 auto;
    }

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form input {
        flex: 1;
        width: auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 320px;
        max-height: 420px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: .95rem;
        margin-bottom: 32px;
    }

    .search-section {
        margin-top: -36px;
    }

    .search-card {
        padding: 20px;
        flex-direction: column;
    }

    .search-field,
    .search-select-wrap {
        width: 100%;
        flex: none;
    }

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

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

    .services-section {
        padding: 60px 0 48px;
    }

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

    .counter-card {
        padding: 24px 12px;
    }

    .counter-value {
        font-size: 2rem;
    }

    .newsletter-section {
        padding: 48px 0;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .header-inner {
        height: 80px;
    }

    .mobile-nav {
        top: 80px;
    }

    .header-logo img {
        height: 70px;
    }

    .hero {
        min-height: 280px;
        max-height: 360px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .counters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .counter-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        margin-bottom: 14px;
    }

    .counter-icon svg {
        width: 22px;
        height: 22px;
    }

    .counter-value {
        font-size: 1.65rem;
    }

    .counter-label {
        font-size: .8rem;
    }

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

    .footer-brand {
        grid-column: auto;
    }
}
