/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Light Theme Palette (Default) */
    --color-bg: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-surface: #ffffff;
    --color-surface-hover: #f8fafc;
    --color-primary: #0284c7;
    --color-primary-hover: #0369a1;
    --color-primary-rgb: 2, 132, 199;
    --color-secondary: #475569;
    --color-secondary-hover: #334155;
    --color-accent: #0ea5e9;
    --color-accent-light: #e0f2fe;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-shadow: rgba(15, 23, 42, 0.06);
    --color-shadow-lg: rgba(15, 23, 42, 0.1);
    --color-nav-bg: rgba(255, 255, 255, 0.85);
    
    /* Utility Colors */
    --color-success: #10b981;
    --color-success-bg: #d1fae5;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Spacing & Transitions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --header-height: 80px;
    --container-max-width: 1200px;
}

/* Dark Theme Overrides */
.theme-dark {
    --color-bg: #0b0f19;
    --color-bg-alt: #111827;
    --color-surface: #1e293b;
    --color-surface-hover: #334155;
    --color-primary: #38bdf8;
    --color-primary-hover: #7dd3fc;
    --color-primary-rgb: 56, 189, 248;
    --color-secondary: #94a3b8;
    --color-secondary-hover: #cbd5e1;
    --color-accent: #0ea5e9;
    --color-accent-light: rgba(14, 165, 233, 0.15);
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #334155;
    --color-shadow: rgba(0, 0, 0, 0.25);
    --color-shadow-lg: rgba(0, 0, 0, 0.4);
    --color-nav-bg: rgba(11, 15, 25, 0.85);
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

button {
    cursor: pointer;
}

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

.section {
    padding: 100px 0;
}

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

/* Grid helper */
.grid {
    display: grid;
    gap: 32px;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 6px -1px var(--color-shadow);
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(var(--color-primary-rgb), 0.25);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #ffffff !important;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--color-text);
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle */
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    background-color: var(--color-surface-hover);
    color: var(--color-primary);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.theme-light .sun-icon { display: none; }
.theme-light .moon-icon { display: block; }
.theme-dark .sun-icon { display: block; }
.theme-dark .moon-icon { display: none; }

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

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

.hero-bg-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-slow) ease-in-out;
}

.hero-bg-slider .slide.active {
    opacity: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    z-index: 2;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-title span {
    color: var(--color-primary);
    background-image: linear-gradient(120deg, #7dd3fc 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #cbd5e1;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Stats overlay at the bottom of hero */
.hero-stats {
    display: flex;
    gap: 24px;
    max-width: 100%;
    flex-wrap: wrap;
}

.stat-card {
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 32px;
    border-radius: var(--radius-md);
    color: #ffffff;
    flex: 1;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
}

/* ==========================================================================
   SECTION COMMON PARTS
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 64px auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-text);
    margin-bottom: 16px;
    position: relative;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-content p {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.subsection-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.features-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    padding: 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-item h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.about-image-decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-accent) 100%);
    opacity: 0.15;
    border-radius: var(--radius-lg);
    z-index: 1;
}

.about-img {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px var(--color-shadow-lg);
    z-index: 2;
    object-fit: cover;
    aspect-ratio: 4/3;
    width: 100%;
}

.about-floating-card {
    position: absolute;
    bottom: -10px;
    left: -10px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 30px var(--color-shadow-lg);
    padding: 24px;
    border-radius: var(--radius-md);
    max-width: 220px;
    z-index: 3;
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-floating-card .card-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.about-floating-card .card-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    line-height: 1.3;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.service-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: 0 4px 6px -1px var(--color-shadow);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px var(--color-shadow-lg);
    border-color: rgba(var(--color-primary-rgb), 0.2);
}

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

.service-icon {
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Styled color varieties */
.icon-blue { background-color: rgba(2, 132, 199, 0.1); color: #0284c7; }
.icon-teal { background-color: rgba(13, 148, 136, 0.1); color: #0d9488; }
.icon-green { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-purple { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.icon-orange { background-color: rgba(249, 115, 22, 0.1); color: #f97316; }
.icon-red { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }
.icon-yellow { background-color: rgba(234, 179, 8, 0.1); color: #cab808; }

.service-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-border);
    transition: color var(--transition-fast);
}

.service-card:hover .service-number {
    color: var(--color-primary);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-body {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
    align-self: flex-start;
}

.service-link:hover {
    text-decoration: underline;
}

/* Specific centering for the 7th grid item */
.grid-3 > .full-width-tablet {
    grid-column: span 1;
}

/* ==========================================================================
   TERMOS DE FOMENTO SECTION
   ========================================================================== */
.fomento-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.fomento-badge-container {
    margin-bottom: 20px;
}

.fomento-status {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

.fomento-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.fomento-info p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.fomento-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.fstat-card {
    border-left: 3px solid var(--color-primary);
    padding-left: 16px;
}

.fstat-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.fstat-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.fomento-quote {
    border-left: 4px solid var(--color-border);
    padding-left: 20px;
    font-style: italic;
    color: var(--color-text-muted);
}

.fomento-quote p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.acquisitions-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.acq-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 160px 1fr;
    box-shadow: 0 4px 6px -1px var(--color-shadow);
    transition: transform var(--transition-fast);
}

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

.acq-img-container {
    position: relative;
    height: 100%;
    min-height: 140px;
}

.acq-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acq-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.acq-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.acq-details h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.acq-details p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   SATISFACTION SURVEY SECTION
   ========================================================================== */
.card-panel {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: 0 4px 6px -1px var(--color-shadow);
}

.panel-title {
    font-size: 1.35rem;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-bg-alt);
}

/* Survey progress bars */
.progress-bar-group {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-label span {
    color: var(--color-text);
}

.progress-label strong {
    color: var(--color-text-muted);
}

.progress-track {
    height: 10px;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    width: 0; /* Dynamic loading in script */
    transition: width var(--transition-slow) ease-out;
}

.fill-blue { background: linear-gradient(90deg, #0284c7, #0ea5e9); }
.fill-teal { background: linear-gradient(90deg, #0d9488, #14b8a6); }
.fill-slate { background: linear-gradient(90deg, #64748b, #94a3b8); }
.fill-red { background: linear-gradient(90deg, #ef4444, #f87171); }

.satisfaction-summary-badge {
    margin-top: 36px;
    padding: 20px;
    background-color: var(--color-accent-light);
    border-radius: var(--radius-md);
    display: flex;
    gap: 16px;
    align-items: center;
}

.badge-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon svg {
    width: 24px;
    height: 24px;
}

.satisfaction-summary-badge h4 {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.satisfaction-summary-badge p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Survey Questions Table */
.survey-table-wrapper {
    overflow-x: auto;
}

.survey-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.survey-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 14px 16px;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
}

.survey-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.survey-table tr:last-child td {
    border-bottom: none;
}

.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.text-green { color: var(--color-success); }
.text-muted { color: var(--color-text-muted); }

/* Benefits */
.benefits-container {
    margin-top: 60px;
}

.benefits-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 36px;
}

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

.benefit-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 4px 6px -1px var(--color-shadow);
    transition: transform var(--transition-fast);
}

.benefit-card:hover {
    transform: translateY(-4px);
}

.b-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.benefit-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   PHOTO GALLERY SECTION
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.2);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 6px -1px var(--color-shadow);
    background-color: var(--color-bg-alt);
    cursor: pointer;
    animation: scaleIn 0.3s ease-out forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-tag {
    align-self: flex-start;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.gallery-item-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-info-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-block h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.contact-info-block p {
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 500px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-method {
    display: flex;
    gap: 16px;
}

.cm-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-method h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.contact-method p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Form Styles */
.contact-form-block h3 {
    font-size: 1.35rem;
    margin-bottom: 24px;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 80px 0 0 0;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links h4, .footer-meta h4 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-meta p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.regulatory-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.text-white {
    color: #ffffff !important;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 24px 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.fb-container {
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 2.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox-arrow:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-content {
    max-width: 80vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption-panel {
    margin-top: 24px;
    text-align: center;
    max-width: 600px;
}

.lightbox-tag {
    display: inline-block;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.lightbox-caption {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 4px;
}

.lightbox-counter {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .full-width-tablet {
        grid-column: span 2;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-meta {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .full-width-tablet {
        grid-column: span 1;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left var(--transition-normal);
        z-index: 999;
        border-top: 1px solid var(--color-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        font-size: 1.25rem;
    }
    
    /* Header action alignment */
    .nav-actions .btn {
        display: none; /* Hide nav button in mobile, rely on form */
    }
    
    /* Mobile Menu Toggle Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Hero section padding adjustments */
    .hero-section {
        height: auto;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    /* About image and floaters */
    .about-image-wrapper {
        margin-top: 40px;
    }
    
    /* Fomento Grid */
    .fomento-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .acq-card {
        grid-template-columns: 1fr;
    }
    
    .acq-img-container {
        height: 200px;
    }
    
    /* Survey visuals */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fb-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }
    
    .lightbox-arrow {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    
    .lightbox-content {
        max-width: 95vw;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-meta {
        grid-column: span 1;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}
