/* DESIGN SYSTEM & VARIABLES */
:root {
    --primary: #1F4529;
    /* Dark Forest Green */
    --primary-light: #47663B;
    /* Moss Green */
    --primary-op: rgba(31, 69, 41, 0.1);
    --secondary: #E8ECD7;
    /* Light beige/greenish */
    --accent: #EED3B1;
    /* Warm sandy beige */
    --accent-strong: #d4a373;

    --bg-main: #FAFAFB;
    --text-dark: #1C231F;
    --text-regular: #435248;
    --text-light: #7C8B81;
    --white: #FFFFFF;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(31, 69, 41, 0.05);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-regular);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

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

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

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

.bg-light {
    background-color: rgba(0, 0, 0, 0.02);
}

.bg-accent {
    background-color: var(--accent);
    color: var(--text-dark);
}

.bg-primary {
    background-color: var(--primary);
}

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

.bg-secondary {
    background-color: var(--secondary);
}

.hide {
    display: none !important;
}

/* GLASSMORPHISM CARD */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(31, 69, 41, 0.1);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #15301c;
    box-shadow: 0 8px 20px rgba(31, 69, 41, 0.3);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--accent-strong);
}

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

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

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1EBE5A;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--primary-op);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

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

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar.scrolled .logo {
    color: var(--primary);
    text-shadow: none;
}

.logo-icon-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.navbar.scrolled .logo-icon-img {
    filter: none;
}

.logo-accent {
    color: var(--accent);
    font-weight: 400;
}

.navbar.scrolled .logo-accent {
    color: var(--accent-strong);
}

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

.nav-links li a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.navbar.scrolled .nav-links li a {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.btn-intranet {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-intranet::after {
    display: none !important;
}

.btn-intranet:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 69, 41, 0.2);
}

.btn-intranet .btn-icon {
    color: white;
    width: 16px;
    height: 16px;
    background: transparent;
    padding: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* PAGE SECTIONS & SPA LOGIC */
.page-section {
    display: none;
    animation: fadeIn 0.5s ease;
    min-height: calc(100vh - 300px);
    /* Fill space leaving room for footer */
}

.page-section.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoom 20s infinite alternate;
}

@keyframes zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(31, 69, 41, 0.9) 0%, rgba(31, 69, 41, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    color: white;
    padding: 0 20px;
    padding-top: 80px;
}

.hero-content .badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.section-title.center::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-strong);
    margin: 15px auto 0;
    border-radius: 2px;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 15px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-item .stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-light);
}

.stat-item .stat-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 40px 30px;
    text-align: left;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* SHARED HEADERS FOR PAGES */
.page-header {
    background: linear-gradient(rgba(31, 69, 41, 0.85), rgba(31, 69, 41, 0.95)), url('assets/hero.png') center/cover no-repeat;
    padding: 120px 0 60px;
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 15px;
    font-size: 3rem;
}

.page-header.bg-accent {
    background: var(--accent);
    color: var(--text-dark);
}

.page-header.bg-accent h1 {
    color: var(--text-dark);
}

/* ARTICLES (De Interés) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-img {
    height: 200px;
    background: #e0e0e0;
}

.article-img.placeholder-img {
    background: linear-gradient(45deg, var(--secondary), #d0d5c0);
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.article-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.btn-link:hover {
    gap: 10px;
}

/* MARKETPLACE (Feria) */
.marketplace-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.marketplace-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 350px;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.market-item {
    padding: 25px;
    position: relative;
}

.market-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.market-badge.bg-accent {
    background: var(--accent-strong);
    color: white;
}

.market-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.market-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.market-details {
    margin-bottom: 20px;
}

.market-details li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.market-details li svg {
    width: 14px;
    height: 14px;
}

/* EQUIPO TÉCNICO */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-card {
    padding: 40px 20px;
}

.team-avatar {
    width: 90px;
    height: 90px;
    background: var(--secondary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.team-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
    border: 3px solid var(--primary-op);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.logo-img {
    width: auto;
    max-width: 120px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}
.team-avatar svg { width: 40px; height: 40px; }

.team-role {
    color: var(--accent-strong);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.team-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-contact a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-op);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-contact a:hover {
    background: var(--primary);
    color: white;
}
/* PRECIOS DE FERIAS SECTION */
.span-full {
    grid-column: 1 / -1;
}

.fair-prices {
    background: #FFFAF0; /* blanco marfil / ivory */
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.fair-prices-header {
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fair-prices-logo-subtle {
    position: absolute;
    top: -20px;
    right: -20px;
    opacity: 0.05;
    width: 250px;
    height: auto;
    pointer-events: none;
}

.fair-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.fair-link-card {
    background: #fff;
    border: 1px solid rgba(44, 76, 59, 0.1);
    color: var(--primary-dark);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.fair-link-card:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(44, 76, 59, 0.2);
}

.fair-link-card svg {
    color: var(--primary);
    transition: color 0.3s;
}

.fair-link-card:hover svg {
    color: #C5A059;
}



/* CONTACT MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hide) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hide) .modal-content {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal-btn:hover {
    color: var(--primary);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(31, 69, 41, 0.2);
}

/* INTRANET */
.intranet-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    max-width: 400px;
    width: 100%;
    padding: 40px;
}

.auth-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-op);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 15px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-feedback textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-feedback textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-op);
}

.auth-help {
    color: var(--text-light);
}

.intranet-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    /* Offset for navbar */
}

.dash-sidebar {
    background: white;
    border-right: 1px solid #eee;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.user-id {
    font-size: 0.8rem;
    color: var(--text-light);
}

.dash-nav {
    margin-bottom: 30px;
}

.dash-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-regular);
    border-radius: 8px;
    font-weight: 500;
}

.dash-nav li.active a,
.dash-nav li a:hover {
    background: var(--primary-op);
    color: var(--primary);
}

.advisor-card {
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.dash-content {
    padding: 40px;
    background: var(--bg-main);
    overflow-y: auto;
}

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

.date-chip {
    background: var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light)
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.file-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.file-info {
    flex-grow: 1;
}

.file-info h5 {
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.file-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.dash-feed {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.feed-card {
    padding: 30px;
}

.feed-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.feed-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.feed-list li:last-child {
    border: none;
}

.form-feedback textarea {
    min-height: 120px;
    margin-top: 15px;
    resize: vertical;
}

/* FOOTER */
.footer {
    background: #112A1A;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 15px;
}

.footer-links h4,
.footer-form h4 {
    color: white;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.footer-links ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-links ul li svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {

    .about-grid,
    .marketplace-intro,
    .dash-feed {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .intranet-dashboard {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
    }

    /* Simplified for mobile demo */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* MOBILE-FIRST RE-ENGINEERING (Breakpoints Dinámicos) */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }
    
    /* Grid Fluida: Pasar todo a una sola columna vertical */
    .about-grid,
    .services-grid,
    .articles-grid,
    .team-grid,
    .market-grid,
    .fair-links-grid,
    .marketplace-intro,
    .footer-grid,
    .dash-sidebar,
    .dash-content {
        grid-template-columns: 1fr !important;
        display: grid;
        width: 100%;
    }
    
    /* Corrección de anchos fijos */
    .hero-content, .modal-content, .auth-card {
        width: 90% !important;
        max-width: 1200px !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Tipografía Escalable (UI Mobile-First) */
    html {
        font-size: 15px;
    }
    h1, .hero-content h1 { font-size: 2.3rem !important; }
    h2 { font-size: 1.8rem !important; }
    
    /* Accesibilidad: Áreas interactivas mínimas de 48x48px */
    a, button, .btn, .filter-btn, .team-contact a, .btn-icon, .close-modal-btn {
        min-height: 48px;
        min-width: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        height: auto;
        min-height: 100svh;
        overflow: visible;
        padding-bottom: 40px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-header {
        padding: 100px 20px 40px;
    }
    
    /* Menú Hamburguesa Nativo y Navegación */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1100;
        background: transparent;
        border: none;
        color: var(--primary);
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(31, 69, 41, 0.98);
        padding: 20px 0;
        gap: 15px;
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        font-size: 1.2rem;
        color: white !important;
        text-shadow: none !important;
    }
    
    /* Prevención de desbordes en Elementos de Datos (Responsive Tables) */
    .table-container, table, .table-responsive-wrapper {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
