:root {
    /* Color Palette - Agricultural Premium */
    --primary: #2d5a27;
    --primary-light: #4a8a4a;
    --primary-dark: #1f3a1f;
    --secondary: #d4af37;
    --secondary-light: #f1c40f;
    --accent: #5ea85e;
    --bg-main: #f9fbf9;
    --bg-card: #ffffff;
    --text-main: #1a1c19;
    --text-muted: #5c635b;
    --text-on-primary: #ffffff;
    --border-color: #e2e8e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Layout */
    --nav-height: 80px;
    --container-max: 1280px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    background: transparent;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}


.logo-container span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-social-header {
    display: flex;
    gap: 1.2rem;
    margin-right: 1.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border-color);
}

.nav-social-header a {
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-social-header a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .nav-social-header {
        display: none;
        /* Hide on smaller desktops to avoid crowding */
    }
}

.checkin-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.checkin-link:hover .checkin-icon {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item i {
    color: var(--accent);
}

.dropdown-item:hover {
    background: var(--bg-main);
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(45, 90, 39, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
    background: var(--primary-light);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
    color: white;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(31, 58, 31, 0.9) 0%, rgba(31, 58, 31, 0.4) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--secondary);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title small {
    color: var(--secondary);
    display: block;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-top: 0.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-social-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-shop-mini {
    background: var(--secondary);
    color: var(--primary-dark);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.btn-shop-mini:hover {
    background: var(--secondary-light);
    transform: translateY(-1px);
}

.nav-actions-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkin-link-large img {
    height: 48px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.checkin-link-large:hover img {
    transform: scale(1.15) rotate(-5deg);
}

.btn-area-privada {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.hero-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Layout & Sections */
.section {
    padding: 100px 0;
    transition: background 0.3s ease;
}

.section:nth-of-type(even) {
    background-color: #f8fcf8;
}

.section:nth-of-type(odd) {
    background-color: #ffffff;
}

.container {
    max-width: 1280px;
    /* Anchura equilibrada y estándar */
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Auto-ajustable por defecto */
}

/* Specific Section Adjustments for Balance */
#nosotros {
    background-color: #ffffff;
}

#noticias {
    background-color: #f8fcf8;
}

#enlaces {
    background-color: #ffffff;
}

#servicios {
    background-color: #f1f4f0;
}

/* Special accent for services */
#tarifas {
    background-color: #ffffff;
}

/*
   IMPORTANT:
   The id="contacto" is used on the <footer>. A light background here overrides
   the footer styles and makes the text unreadable.
*/
#contacto {
    background: var(--primary-dark);
}

.tarifas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
    width: 100%;
}

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

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    /* Debería haber un menú burguer, pero simplificamos */
    .container {
        padding: 0 1.5rem;
    }
}

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

    .section {
        padding: 60px 0;
    }

    .logo-container span {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 40px;
        max-width: 190px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* --- News Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--primary-light);
}

.news-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Links Section --- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.links-category {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-main);
}

.cat-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.cat-title {
    font-size: 1.25rem;
    font-weight: 800;
}

.link-item {
    margin-bottom: 0.75rem;
}

.link-anchor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--bg-main);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-anchor:hover {
    background: var(--primary);
    color: white;
}

.link-anchor i {
    opacity: 0.5;
}

/* --- Client Access / Login Card --- */
.login-section {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0;
    border-radius: 40px;
    margin: 4rem auto;
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.login-form-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-main);
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
}

/* --- Shop Preview --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.product-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.product-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0.5rem 0 1rem;
}

/* --- Footer --- */
footer {
    padding: 100px 0 40px;
    background: #1a2e1a;
    /* Un verde bosque más profundo y diferente */
    color: rgba(255, 255, 255, 0.7);
    border-radius: 60px 60px 0 0;
    margin-top: 4rem;
}

.archive-container {
    padding-top: 140px;
    padding-bottom: 80px;
}

.archive-title {
    margin-bottom: 3rem;
    text-align: center;
}


.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.footer-logo-img {
    height: 44px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* --- Animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .login-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero-btns {
        flex-direction: column;
    }
}

.tarifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

/* --- Technical Team Cards --- */
.tech-card {
    background: white;
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.tech-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.tech-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tech-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.news-modal-inner {
    max-width: 900px !important;
}

.news-modal-inner h2 {
    font-size: 2rem;
    line-height: 1.2;
}

.news-modal-inner .modal-body-content p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.news-modal-inner .modal-body-content {
    padding-bottom: 2rem;
}


.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary-dark);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1500;
}

/* --- Collapsible --- */
.collapsible-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.links-category .collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.links-category.active .collapsible-content {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.links-category.active .cat-header i.fa-chevron-down {
    transform: rotate(180deg);
}

/* ---------------------------------------------------------
   Responsive fixes + Mobile navigation
---------------------------------------------------------- */

/* Prevent accidental horizontal scroll */
html,
body {
    overflow-x: hidden;
}

/* Make media elements responsive by default */
img,
video {
    max-width: 100%;
    height: auto;
}

/* About gallery (Nosotros) */
.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-photo {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.about-photo.is-offset {
    margin-top: 30px;
}

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

    .about-photo.is-offset {
        margin-top: 0;
    }
}

/* Technical team grid */
.tech-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

/* Navbar layout tweaks */
.nav-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.nav-links li {
    position: relative;
}

/* Mobile toggle button */
.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.navbar.scrolled .nav-toggle {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.7);
}

.nav-toggle:focus-visible {
    outline: 3px solid rgba(165, 179, 153, 0.7);
    outline-offset: 2px;
}

.nav-toggle-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 4px auto;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.navbar.scrolled .nav-toggle-icon span {
    background: var(--primary-dark);
}

/* Backdrop for mobile menu */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1500;
}

/* Menu-open (animated hamburger) */
.navbar.menu-open .nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.navbar.menu-open .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.navbar.menu-open .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 992px) {

    /* show toggle */
    .nav-toggle {
        display: inline-flex;
    }

    /* show menu content (override old rules) */
    .nav-links {
        display: flex;
    }

    .nav-btns {
        display: block;
    }

    /* turn the menu into a right drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(92vw, 380px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 88px 18px 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        transform: translateX(105%);
        transition: transform 0.25s ease;
        box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
        z-index: 2000;
    }

    .navbar.menu-open .nav-menu {
        transform: translateX(0);
    }

    .navbar.menu-open .nav-backdrop {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 12px;
        border-radius: 14px;
    }

    .nav-link:hover {
        background: var(--bg-main);
        transform: none;
    }

    /* dropdown on mobile: click-to-open */
    .dropdown-menu {
        position: static;
        min-width: unset;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border: 1px solid var(--border-color);
        background: var(--bg-main);
        border-radius: 14px;
        padding: 8px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown.open .dropdown-menu {
        display: grid;
    }

    .dropdown-item {
        padding: 10px 10px;
    }

    .nav-btns {
        margin-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }

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

    /* avoid desktop hover opening dropdowns on touch */
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Smaller phone tweaks */
@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(2rem, 7vw, 3.1rem);
    }

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

    .cookie-content {
        flex-wrap: wrap;
    }

    .cookie-btns {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }

    .news-card,
    .service-card,
    .links-category,
    .tech-card {
        transition: none !important;
    }
}

body.no-scroll {
    overflow: hidden;
}