/* ==================== VARIABLES Y DISEÑO GLOBAL ==================== */
:root {
    --color-green-dark: #2d5f4f;
    --color-green-main: #40a578;
    --color-green-light: #6fd39a;
    --color-green-lighter: #e8f5f0;
    --color-gray-dark: #2b2d42;
    --color-gray-mid: #6c757d;
    --color-gray-light: #f1f5f9;
    --color-gray-lighter: #f9fafb;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-accent-orange: #ff8c42;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-hover: rgba(0, 0, 0, 0.12);
                
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', serif;
                
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease-out;
                
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;
            
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 16px var(--color-shadow);
    --shadow-lg: 0 8px 24px rgba(45, 95, 79, 0.15);
    --shadow-hover: 0 12px 32px rgba(45, 95, 79, 0.2);
}

/* ==================== SKELETON LOADING ==================== */
@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skeleton-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    margin-bottom: 12px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.title { height: 20px; width: 60%; margin-bottom: 16px; }

.skeleton-meta {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.skeleton-meta .skeleton-line {
    width: 60px;
    height: 12px;
    margin-bottom: 0;
}

.skeleton-button {
    width: 100%;
    height: 42px;
    margin-top: 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

/* Dark mode skeleton */
[data-theme="dark"] .skeleton-image,
[data-theme="dark"] .skeleton-line,
[data-theme="dark"] .skeleton-button {
    background: linear-gradient(90deg, #1e2d27 25%, #253830 50%, #1e2d27 75%);
    background-size: 200% 100%;
}

[data-theme="dark"] .skeleton-card {
    background: var(--nm-secondary-bg, #162019);
}

/* ==================== PROJECT COMPARISON ==================== */

/* Compare Checkbox */
.compare-checkbox-wrapper {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.compare-checkbox {
    display: none;
}

.compare-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.compare-checkbox-label:hover {
    background: var(--color-green-lighter);
    border-color: var(--color-green-main);
}

.compare-checkbox:checked + .compare-checkbox-label {
    background: var(--color-green-main);
    color: white;
    border-color: var(--color-green-dark);
}

.compare-checkbox-label i {
    font-size: 0.85rem;
}

/* Compare Panel (floating bottom) */
.compare-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 16px 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-panel.show {
    transform: translateY(0);
}

.compare-panel-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.compare-panel-items {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.compare-panel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-green-lighter);
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-green-dark);
}

.compare-panel-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.compare-panel-item .remove-item {
    background: none;
    border: none;
    color: var(--color-gray-mid);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: 4px;
    transition: var(--transition-fast);
}

.compare-panel-item .remove-item:hover {
    color: #ef4444;
}

.compare-panel-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.compare-btn-primary,
.compare-btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

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

.compare-btn-primary:hover {
    background: var(--color-green-dark);
    transform: translateY(-2px);
}

.compare-btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
}

.compare-btn-secondary:hover {
    background: #e5e7eb;
}

/* Comparison Modal */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.compare-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.compare-modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: 16px;
    max-width: 1100px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.compare-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-shadow);
}

.compare-modal-header h2 {
    font-size: 1.3rem;
    color: var(--color-gray-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-modal-header h2 i {
    color: var(--color-green-main);
}

.compare-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-gray-mid);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition-fast);
}

.compare-modal-close:hover {
    color: var(--color-gray-dark);
}

.compare-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* Comparison Table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-shadow);
}

.compare-table th {
    background: var(--color-gray-lighter);
    font-weight: 600;
    color: var(--color-gray-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.compare-table td {
    font-size: 0.95rem;
    color: var(--color-gray-dark);
}

.compare-table tr:hover td {
    background: var(--color-green-lighter);
}

.compare-table .compare-label {
    font-weight: 600;
    color: var(--color-gray-mid);
    width: 140px;
}

.compare-table .compare-project-header {
    text-align: center;
    padding: 20px 16px;
}

.compare-table .compare-project-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.compare-table .compare-project-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-green-dark);
    margin-bottom: 4px;
}

.compare-table .compare-project-type {
    font-size: 0.8rem;
    color: var(--color-gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-highlight {
    background: var(--color-green-lighter);
    font-weight: 600;
    color: var(--color-green-dark);
    border-radius: 4px;
    padding: 2px 8px;
}

/* Dark mode comparison */
[data-theme="dark"] .compare-panel {
    background: var(--nm-secondary-bg, #162019);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .compare-panel-item {
    background: rgba(45, 138, 122, 0.2);
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] .compare-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] .compare-modal-content {
    background: var(--nm-secondary-bg, #162019);
}

[data-theme="dark"] .compare-table th {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .compare-table td {
    color: var(--nm-text, #e8e8e8);
    border-bottom-color: var(--nm-border, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .compare-table tr:hover td {
    background: rgba(45, 138, 122, 0.1);
}

[data-theme="dark"] .compare-checkbox-label {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .compare-highlight {
    background: rgba(45, 138, 122, 0.2);
    color: var(--nm-accent, #2d8a7a);
}

/* Responsive comparison */
@media (max-width: 768px) {
    .compare-panel-content {
        flex-direction: column;
        gap: 12px;
    }

    .compare-panel-items {
        justify-content: center;
    }

    .compare-panel-actions {
        width: 100%;
        justify-content: center;
    }

    .compare-modal-body {
        padding: 16px;
    }

    .compare-table {
        font-size: 0.85rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 10px 8px;
    }

    .compare-table .compare-project-img {
        height: 100px;
    }
}

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

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Esto evita el movimiento lateral */
    position: relative;
    scroll-behavior: smooth;
    height: -webkit-fill-available; /* Llena el espacio real del navegador */
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* Asegura que el contenido no se desplace por el notch */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.experience-list li::before {
    content: '' !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.4rem;
    height: 1.4rem;
    background-color: var(--color-green-main);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E") no-repeat center/contain;
}

* {
    box-sizing: border-box; /* Asegura que paddings no sumen ancho extra */
}

/* ==================== TIPOGRAFÍA ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--color-gray-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}
    
h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    color: var(--color-gray-mid);
    font-size: 1rem;
}

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

a:hover {
    color: var(--color-green-dark);
}

/* ==================== NAVEGACIÓN ==================== */
/* header styles managed by styles.css */

/* Suavizamos la transición cuando se quita el efecto */
header, section, footer {
    transition: filter 0.4s ease;
}

/* nav styles managed by styles.css */

.logo {
    display: flex;
    align-items: center;  /* CENTRA LA IMAGEN DENTRO */
    flex-shrink: 0;       /* NO SE ENCOGE */
    margin-right: 1rem;
    font-size: 1.75rem;
    height: 50px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green-main) 100%);
    background-clip: text;
}
        
.logo img {
    height: 50px;
}
        
/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-green-main) 0%, var(--color-green-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
    border: 2px solid var(--color-green-main);
}

.btn-secondary:hover {
    background: var(--color-green-light);
    color: var(--color-white);
    transform: translateY(-3px);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
}
        
/* #nav .cta-button managed by styles.css */

/* .mobile-menu-toggle managed by styles.css */

/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
    
.btn:hover::before {
    width: 300px;
    height: 300px;
}
    
.btn-primary {
    background: linear-gradient(135deg, var(--color-green-main) 0%, var(--color-green-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}
    
.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
    border: 2px solid var(--color-green-main);
}

.btn-secondary:hover {
    background: var(--color-green-light);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    margin-top: 70px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    padding: 4rem 2rem;
    background: #000; /* Color de respaldo */
    background: linear-gradient(135deg, var(--color-green-lighter) 0%, var(--color-white) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 95, 79, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}
    
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 25px !important;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}
    
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}
    
.hero-content h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: slideDown 0.8s ease;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
    
.hero .cta-button {
    display: inline-block;
    animation: slideUp 0.8s ease 0.4s both;
    background-color: var(--accent-color);
    color: var(--dark-text);
    margin: 0 0.5rem;
}
    
.hero .cta-button:hover {
    background-color: #e5b587;
}
    
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
        
.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    animation: float 3s ease-in-out infinite;
}
    
.hero-image img {
    max-width: 100% !important;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); /* Sombra más profunda */
    border: 1px solid rgba(255,255,255,0.1);
}

section {
    padding: 4rem 0;
    overflow: hidden;
    width: 100%;
}
    
.section-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    max-width: 1200px; /* Ancho máximo deseado */
    margin: 0 auto;
    padding: 0 2rem;
    padding-left: 2rem;  /* Espacio de seguridad para que no toque los bordes en tablets */
    padding-right: 2rem;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

section.alt-bg {
    width: 100%;
    display: block;
    background-color: var(--color-gray-lighter);
    padding: 6rem 1.5rem; /* Margen superior e inferior amplio */
}
    
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
    
.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-green-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: gray;
    max-width: 600px;
    margin: 0 auto;
}
    
/* INTRO */
.intro {
    background: var(--color-white);
    padding: 60px 20px;
}

[data-theme="dark"] .intro {
    background: var(--nm-secondary-bg, #162019);
}

[data-theme="dark"] .intro h2 {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .intro p {
    color: var(--nm-text, #e8f0ed);
}

.intro-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
    
.intro h2 {
    font-size: 32px;
    color: var(--color-green-dark);
    margin-bottom: 20px;
    font-weight: 700;
}
    
.intro p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Filters Section */
.filters-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 2rem 0 4rem;
    background: var(--color-gray-lighter);
}
    
.filters-wrapper {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(64, 165, 120, 0.1);
    margin-top: 0;
    position: relative;
    z-index: 10;
}
        
.filters-grid-optimized {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    align-items: flex-end;
}

/* Desktop */
@media (min-width: 1025px) {
    .filters-grid-optimized {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .filter-group-modern {
        gap: 0.3rem;
    }

    .filter-group-modern select,
    .filter-group-modern input {
        padding: 0.5rem 0.6rem;
        font-size: 0.82rem;
        border-width: 1.5px;
    }

    .filter-group-modern label {
        font-size: 0.68rem;
    }

    .btn-reset-filters {
        padding: 0.5rem 0.6rem;
        font-size: 0.78rem;
        height: auto;
    }

    .btn-reset-filters i {
        font-size: 0.7rem;
    }

    .switch-container {
        gap: 0.4rem;
        padding: 0.15rem 0;
    }

    .switch-label {
        font-size: 0.72rem;
    }

    .slider {
        width: 36px;
        height: 20px;
    }

    .slider:before {
        height: 14px;
        width: 14px;
    }

    input:checked + .slider:before {
        transform: translateX(16px);
    }
}
        
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}
    
.filter-toggle {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-fast);
    display: none;
}
    
.filter-toggle:hover {
    background: var(--secondary-color);
}
    
.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
    
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
            
.filter-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-group-modern label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group-modern select,
.filter-group-modern input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #edf2f7;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    color: var(--color-gray-dark);
    background-color: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group-modern select:focus,
.filter-group-modern input:focus {
    outline: none;
    border-color: var(--color-green-main);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(64, 165, 120, 0.1);
}
        
/* --- ESTILO BOTÓN LIMPIAR --- */
.btn-reset-filters {
    background: none;
    border: 2px solid var(--color-gray-mid);
    color: var(--color-gray-mid);
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px; /* Alineado con los selects */
    width: 100%;
}

.btn-reset-filters:hover {
    border-color: var(--color-accent-orange);
    color: var(--color-accent-orange);
    background: rgba(255, 140, 66, 0.05);
    transform: translateY(-2px);
}

.btn-reset-filters i {
    font-size: 0.8rem;
}

/* --- DARK MODE FILTROS --- */
[data-theme="dark"] .filters-section {
    background: var(--nm-bg, #0f1715);
}

[data-theme="dark"] .filters-wrapper {
    background: var(--nm-secondary-bg, #162019);
    border-color: var(--nm-border, #1e2d27);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .filter-group-modern label {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .filter-group-modern select,
[data-theme="dark"] .filter-group-modern input {
    background-color: var(--nm-bg, #0f1715);
    color: var(--nm-text, #e8f0ed);
    border-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .filter-group-modern select:focus,
[data-theme="dark"] .filter-group-modern input:focus {
    border-color: var(--nm-accent, #2d8a7a);
    background-color: var(--nm-bg, #0f1715);
    box-shadow: 0 0 0 4px rgba(45, 138, 122, 0.15);
}

[data-theme="dark"] .filter-group-modern select option {
    background-color: var(--nm-secondary-bg, #162019);
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .filter-group-modern input::placeholder {
    color: rgba(232, 240, 237, 0.5);
}

[data-theme="dark"] .btn-reset-filters {
    border-color: var(--nm-text, #e8f0ed);
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .btn-reset-filters:hover {
    border-color: var(--color-accent-orange);
    color: var(--color-accent-orange);
    background: rgba(255, 140, 66, 0.1);
}

[data-theme="dark"] .switch-label {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .slider {
    background-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .slider:before {
    background-color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] input:checked + .slider {
    background-color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .filters-header h2 {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .filter-group label {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .filter-group select,
[data-theme="dark"] .filter-group input {
    background-color: var(--nm-bg, #0f1715);
    color: var(--nm-text, #e8f0ed);
    border-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .filter-group select option {
    background-color: var(--nm-secondary-bg, #162019);
    color: var(--nm-text, #e8f0ed);
}
        /* --- ESTILO SWITCH DESTACADOS --- */
.switch-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 0.5rem 0;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #cbd5e0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-green-main);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray-mid);
}
        
.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Projects Grid */
.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Project Card */
.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
    
.project-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f5e9 100%);
}
    
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
        filter 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.12); /* Zoom del 12% */
    filter: brightness(1.05); /* Aumenta ligeramente el brillo */
}

.project-card:has(.featured-badge):hover .project-image {
    transform: scale(1.15); /* Zoom un poco más fuerte para las destacadas */
}

.project-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.2));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-image-wrapper::after {
    opacity: 1;
}

.image-tech-info {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translate(-50%, 20px); /* Empieza abajo */
    background: rgba(45, 95, 79, 0.85); /* Verde oscuro traslúcido */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; /* No interfiere con el clic en la tarjeta */
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-tech-info i {
    font-size: 0.8rem;
    color: var(--color-green-light);
}

/* Activación al hacer HOVER en la tarjeta */
.project-card:hover .image-tech-info {
    opacity: 1;
    transform: translate(-50%, 0); /* Sube a su posición */
}
        
.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.project-content {
    padding: 1.5rem;
}

.project-type {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
    
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--neutral-gray);
}

.project-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.project-cta:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(26, 71, 42, 0.3);
}

/* --- ESTILO DEL CONTADOR --- */
.project-results-info {
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

#projectCounter {
    font-size: 0.95rem;
    color: var(--color-gray-mid);
    font-weight: 600;
    margin: 0;
}

#projectCounter span {
    color: var(--color-green-main); /* Resalta el número en verde */
}

/* --- ESTILO BOTÓN COMPARTIR --- */
.project-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-share {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--color-green-main);
    background: transparent;
    color: var(--color-green-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-share:hover {
    background: var(--color-green-main);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(64, 165, 120, 0.2);
}

/* Animación de aviso "Copiado" */
.share-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gray-dark);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 3000;
    display: none;
    animation: fadeInUp 0.3s ease;
}

/* --- ESTILO BADGE PROYECTO DESTACADO --- */
.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #2d5f4f; /* Verde oscuro para contraste */
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 15;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: shine-badge 3s infinite;
}

.featured-badge i {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0,0,0,0.2);
}

@keyframes shine-badge {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2) saturate(1.2); }
    100% { filter: brightness(1); }
}
        
/* Modal (Project Detail) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    padding: 20px;
    backdrop-filter: none !important; /* El modal se mantiene nítido */
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #ffffff !important;
    color: var(--color-gray-dark) !important;
    width: 100%;
    max-width: 1000px; /* Ancho máximo en PC */
    max-height: 90vh; /* Altura máxima: 90% de la pantalla */
    border-radius: 20px;
    position: relative;
    overflow-y: auto; /* Permite scroll si el contenido es largo */
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(64, 165, 120, 0.2);
}

#detailTitle {
    color: var(--color-green-dark) !important;
    font-weight: 800;
}
        
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute !important;
    top: 25px !important;
    right: 25px !important;
    width: 50px !important;
    height: 50px !important;
    background: var(--color-green-main) !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    cursor: pointer !important;
    z-index: 4000 !important; /* Por encima de todo el contenido del modal */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modal-close:hover {
    background: var(--color-green-dark) !important;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
}

/* --- OPTIMIZACIÓN CTA DENTRO DEL MODAL --- */
.modal-content .cta-section {
    /* Fondo verde corporativo con un degradado sutil */
    background: linear-gradient(135deg, var(--color-green-dark) 0%, #1a3d32 100%) !important;
    padding: 3rem 2rem !important;
    border-radius: 15px !important;
    margin: 2rem 1.5rem !important; /* Margen para que no toque los bordes del modal */
    text-align: center !important;
    color: white !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo de fondo */
.modal-content .cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.modal-content .cta-section h3 {
    color: white !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    font-family: var(--font-secondary);
}

.modal-content .cta-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
    max-width: 600px;
    margin: 0 auto 2rem auto !important;
}

.modal-content .cta-button {
    background: white !important;
    color: var(--color-green-dark) !important;
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border-radius: 50px !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

.modal-content .cta-button:hover {
    background: var(--color-green-light) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important;
}

/* --- EFECTO DE DESENFOQUE (BLUR) DE FONDO --- */

/* Aplicamos el desenfoque a los elementos principales cuando el modal está abierto */
body.modal-open header,
body.modal-open section,
body.modal-open footer {
    filter: blur(8px) grayscale(20%); /* Desenfoque y un toque sutil de gris */
    transition: filter 0.4s ease;
    pointer-events: none; /* Bloquea clics accidentales en el fondo */
    user-select: none;    /* Evita seleccionar texto del fondo */
}
        
/* Gallery/Carousel */
.gallery-container {
    position: relative;
    width: 100%;
    height: 450px; /* Altura fija en PC */
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.gallery {
    display: flex;
    height: 100%;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
    height: 4px;
}
    
.gallery::-webkit-scrollbar-track {
    background: var(--border-color);
}

.gallery::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: var(--radius-sm);
}

.gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    cursor: zoom-in;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
    
.gallery-item video.gallery-img {
  object-fit: contain;
  background: #000; /* opcional, para que se vea tipo cine */
}

.gallery-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.gallery-dot.active {
    background: var(--color-green-main);
    transform: scale(1.4);
}

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 5;
}

.gallery-btn {
    pointer-events: all;
    background: rgba(45, 95, 79, 0.6) !important;
    color: white;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    z-index: 20;
}

.gallery-btn:hover {
    background: var(--color-green-main) !important;
    transform: scale(1.1);
}

/* Fullscreen Gallery */
.fullscreen-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 3000;
    animation: fadeIn var(--transition-fast);
}

.fullscreen-gallery.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-gallery img {
    max-width: 95vw;
    max-height: 85vh;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

/* Project Detail Content */
.project-detail {
    padding: 2rem;
}

.project-detail-header {
    margin-bottom: 2rem;
}

.project-detail h2 {
    color: var(--color-green-dark) !important;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.project-meta-detail {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    color: var(--color-green-main) !important; /* Etiquetas en verde */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    color: var(--color-gray-dark) !important;
    font-weight: 600;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: var(--color-green-dark) !important;
    border-bottom: 2px solid var(--color-green-lighter);
    padding-bottom: 5px;
    padding-left: 15px;
    margin-bottom: 1.2rem;
}

.detail-section p {
    color: var(--color-gray-mid) !important;
    line-height: 1.8;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.feature-item {
    background: #f0fdf4 !important; /* Fondo suave para características */
    border-radius: 8px;
    padding: 10px;
    color: var(--color-green-dark);
    font-weight: 600;
}

.feature-icon {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-primary);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 2rem;
}

.cta-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ==================== SECCIÓN DESCRIPCIÓN ==================== */
.description-section {
    background-color: var(--color-gray-lighter) !important;
    padding: 8rem 0; /* Más espacio para dejar respirar el contenido */
}

.description-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.description-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(64, 165, 120, 0.1);
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* El texto de enfoque es un poco más ancho */
    gap: 5rem;
    align-items: flex-start;
    position: relative;
}

.description-content h2, 
.description-content h3 {
    color: var(--color-green-dark) !important;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.description-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-mid);
}
.decorative-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: auto;
    opacity: 0.15; /* Muy sutil para no tapar el texto */
    pointer-events: none; /* No interfiere con los clics */
    z-index: 1;
    filter: sepia(0.5) contrast(1.2);
    animation: float-artistic 6s ease-in-out infinite;
}
@keyframes float-artistic {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -55%) rotate(3deg); }
}
        
.description-content h3 {
    margin-top: 1.5rem;
    color: var(--color-green-main);
}

.description-content ul {
    list-style: none;
    margin: 1rem 0;
}

.description-content li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--color-gray-mid);
}

.description-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green-main);
    font-weight: bold;
    font-size: 1.25rem;
}
        
/* Estilo de la Lista de Experiencia */
.experience-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}.experience-list li {
    padding: 1rem 0;
    padding-left: 3rem;
    position: relative;
    font-weight: 600;
    color: var(--color-gray-dark);
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.experience-list li:hover {
    padding-left: 3.5rem;
    color: var(--color-green-main);
}

.experience-list li::before {
    content: '' !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.4rem;
    height: 1.4rem;
    background-color: var(--color-green-main);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* --- DARK MODE SECCIÓN DESCRIPCIÓN (Nuestro Enfoque) --- */
/* Nota: las reglas claras usan !important, así que las dark también */
[data-theme="dark"] .description-section {
    background-color: var(--nm-bg, #0f1715) !important;
}

[data-theme="dark"] .description-card {
    background: var(--nm-secondary-bg, #162019);
    border-color: var(--nm-border, #1e2d27);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .description-content h2,
[data-theme="dark"] .description-content h3 {
    color: var(--nm-accent, #2d8a7a) !important;
}

[data-theme="dark"] .description-content p {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .description-content li {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .description-content li::before {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .experience-list li {
    color: var(--nm-text, #e8f0ed);
    border-bottom-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .experience-list li:hover {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .decorative-element {
    opacity: 0.1;
}

/* CTA SECTION */
.cta-section {
    position: relative;
    padding: 8rem 2rem;
    margin: 4rem 0;
    background: linear-gradient(rgba(29, 74, 58, 0.85), rgba(43, 45, 66, 0.9)), 
        url('../images/faq.jpg'); /* Imagen de fondo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
}
        
.cta-content-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 4rem 3rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 850px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
        
.cta-section h2 {
    color: #ffffff !important;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons-wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
        
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-buttons .cta-button {
    background-color: var(--accent-color);
    color: var(--dark-text);
}

.cta-buttons .cta-button:hover {
    background-color: #e5b587;
}
        
/* Botón de Cotización con Pulso */
.cta-btn-main {
    background: var(--color-green-main);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(64, 165, 120, 0.3);
    animation: pulse-green 2.5s infinite;
}

.cta-btn-main:hover {
    background: var(--color-green-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(64, 165, 120, 0.5);
}

/* Botón de WhatsApp con Estilo Glass */
.cta-btn-whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border: 2px solid #25d366;
    color: #25d366;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.cta-btn-whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-5px);
}
        
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(64, 165, 120, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(64, 165, 120, 0); }
    100% { box-shadow: 0 0 0 0 rgba(64, 165, 120, 0); }
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.whatsapp-button:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Footer heredado de styles.css */

/* ==================== RESPONSIVE ==================== */
@media (min-width: 1101px) {
    .services-grid > div:last-child:nth-child(3n-2) {
        grid-column: 2; /* Lo posiciona en el centro */
    }
}
        
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* nav ul managed by styles.css */
                
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
    
    .benefits-grid-modern {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
                
    .filters-grid-optimized {
        grid-template-columns: repeat(2, 1fr); /* 2x2 en tablets */
    }
}

@media (max-width: 992px) {
    .description-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 3rem;
    }
            .decorative-element {
        display: none;
    }
}
 
@media (min-width: 769px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 42px; /* Centrado con el círculo */
        left: 60%;
        width: 80%;
        height: 3px;
        background: linear-gradient(to right, var(--color-green-light), transparent);
        z-index: 1;
    }
        
    .step-number {
        width: 85px;
        height: 85px;
        background: linear-gradient(135deg, var(--color-green-main), var(--color-green-dark));
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: 800;
        margin: 0 auto 2rem;
        position: relative;
        z-index: 2;
        box-shadow: 0 10px 20px rgba(64, 165, 120, 0.2);
        transition: var(--transition-smooth);
    }

    .process-step:hover .step-number {
        transform: scale(1.1) rotate(10deg);
        box-shadow: 0 15px 30px rgba(64, 165, 120, 0.3);
    }

    .process-step h3 {
        color: var(--color-green-dark);
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }
        
    .process-step p {
        font-size: 0.95rem;
        color: var(--color-gray-mid);
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
            
    .logo {
        font-size: 1.2rem;
        height: 40px;
    }
    .logo img {
        height: 45px;
    }
    /* mobile menu styles managed by styles.css */
                
    .hero {
        position: relative; /* Necesario para posicionar el video */
        margin-top: 70px;
        min-height: 90vh;
        display: flex;
        align-items: center;
        overflow: hidden; /* Corta el video sobrante */
        padding: 4rem 2rem;
        background: #000;
        margin-bottom: 2rem;
    }
    
    /* header managed by styles.css */

    /* .header-container managed by styles.css */

    .hero-buttons {
        justify-content: center;
        flex-direction: column; /* Botones uno sobre otro en móviles */
    }
                
    .hero-video-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Asegura que cubra sin deformarse */
        z-index: 0;
        opacity: 0.6; /* Ajusta la opacidad para que el texto resalte */
    }
                
    .hero-content {
        order: 1;
    }
                
    .hero-content h1 {
        color: #ffffff; /* Asegura contraste en móviles sobre el video */
    }
    
    .hero-content p {
        color: #f1f1f1;
    }
                
    .hero-image {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 2;
        margin-top: 1.5rem;
    }
            
    .hero-image img {
        width: 185px;       /* Ancho reducido */
        height: 490px;
        border-radius: 50px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: var(--shadow-lg); /* Sombra suave definida en tus variables */
        transition: var(--transition-smooth);
        object-fit: cover; 
        object-position: center;
    }

    .hero-image img:hover {
        transform: scale(1.02); /* Efecto sutil al pasar el mouse */
    }
                
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .testimonial-card {
        min-width: 90%;
    }
            
    section {
        padding: 3.5rem 1.5rem;
    }
            
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .filters-wrapper {
        margin-top: 0;
        padding: 1.5rem;
    }
    .filters-grid-optimized {
        grid-template-columns: 1fr; /* 1 columna en móviles */
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .filter-toggle {
        display: block;
        width: 100%;
    }
    
    .filters-container {
        display: none;
    }
    
    .filters-container.active {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-container {
        aspect-ratio: 4 / 3;
        height: 250px; /* Más pequeña en móviles */
    }

    .modal-content {
        width: 98%;
        max-height: 95vh;
        padding: 10px;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 15px;
    }
            
    .modal-content .cta-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2.5rem 1.5rem !important;
        margin: 1.5rem 1rem !important;
                
    }
    
    .modal-content .cta-section h3 {
        font-size: 1.6rem !important;
        line-height: 1.2;
        margin-bottom: 0.5rem !important;
    }
    
    .modal-content .cta-section p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        opacity: 0.9;
    }
            
    .modal-content .cta-button {
        width: 100%; /* Botón de ancho completo para mejor clic */
        max-width: 300px;
        padding: 1.2rem !important;
        font-size: 1.1rem !important;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
            
    .meta-item {
        flex: 1 1 100%; /* Las etiquetas ocupan todo el ancho en móvil */
    }
            
    .project-detail {
        padding: 1.5rem !important;
    }

    .project-detail h2 {
        font-size: 1.5rem !important;
    }
    
    .project-meta-detail {
        gap: 1rem;
    }
    
    .features-list {
        grid-template-columns: 1fr !important;
    }
    
    .cta-section {
        padding: 1.5rem;
    }

    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
            
    /* --- OCULTAR BOTONES FLOTANTES AL ABRIR MODAL --- */
    body.modal-open .floating-button {
        display: none !important;
    }
            

                

        

            

            









    section, .section-container, .hero {
        overflow: hidden;
        width: 100%;
    }
}

@media (max-width: 473px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.95rem;
    }

    section {
        /* Cambiamos el 0 por 1.5rem para crear el margen lateral */
        padding: 2.5rem 1.5rem; 
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
            
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    /* nav styles managed by styles.css */

    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
            
    .logo {
        font-size: 1.25rem;
        height: 40px;
    }
            
    .logo img {
        height: 35px;
    }
    
    .hero {
        margin-top: 0;
        min-height: 45vh;
    }
        
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .modal-close {
        top: 15px !important;
        right: 15px !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 1.2rem !important;
    }
    section, .section-container, .hero {
        overflow: hidden;
        width: 100%;
    }
}

/* ================================================================
   FALLBACKS SVG GARANTIZADOS PARA TODOS LOS ICONOS DE PORTAFOLIO
   Estos estilos reemplazan la fuente de Font Awesome con SVG
   embebidos cuando la fuente webfont no puede cargarse (localhost)
   ================================================================ */

/* Base para todos los <i> de Font Awesome: eliminar pseudo-elemento y usar block */
i.fas, i.fab, i.far, i.fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    vertical-align: middle;
}
i.fas::before, i.fab::before, i.far::before, i.fa::before {
    content: '' !important;
    display: block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* ---- Iconos de Filtros ---- */
i.fa-home::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M575.8 255.5c0 18-15 32.1-32 32.1h-32v160c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V287.6H32c-17 0-32-14.1-32-32.1c0-9 3.5-17.6 10-24L246.6 19.3c11.5-11.5 30.1-11.5 41.7 0l237.5 212.2c6.5 6.4 10 15 10 24z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M575.8 255.5c0 18-15 32.1-32 32.1h-32v160c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V287.6H32c-17 0-32-14.1-32-32.1c0-9 3.5-17.6 10-24L246.6 19.3c11.5-11.5 30.1-11.5 41.7 0l237.5 212.2c6.5 6.4 10 15 10 24z'/%3E%3C/svg%3E");
}
i.fa-leaf::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M272 96c-78.6 0-145.1 51.5-167.7 122.5c33.6-17 71.5-26.5 111.7-26.5h88c8.8 0 16 7.2 16 16s-7.2 16-16 16H288 216c-87.4 0-160 64.8-160 148.3 0 65 78 117.2 176 117.2c98 0 176-52.3 176-117.2 0-24.2-10.8-46.5-29.1-64.4 17.9-23.6 28.5-53.1 28.5-85.5 0-82.9-62.3-126-143.4-126zM0 96C0 43 43 0 96 0h128c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32 14.3-32 32v128c0 17.7-14.3 32-32 32S0 241.7 0 224V96z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M272 96c-78.6 0-145.1 51.5-167.7 122.5c33.6-17 71.5-26.5 111.7-26.5h88c8.8 0 16 7.2 16 16s-7.2 16-16 16H288 216c-87.4 0-160 64.8-160 148.3 0 65 78 117.2 176 117.2c98 0 176-52.3 176-117.2 0-24.2-10.8-46.5-29.1-64.4 17.9-23.6 28.5-53.1 28.5-85.5 0-82.9-62.3-126-143.4-126zM0 96C0 43 43 0 96 0h128c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32 14.3-32 32v128c0 17.7-14.3 32-32 32S0 241.7 0 224V96z'/%3E%3C/svg%3E");
}
i.fa-expand-arrows-alt::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M200 32H56C42.7 32 32 42.7 32 56V200c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l40-40 79 79-79 79L73 295c-6.9-6.9-17.2-8.9-26.2-5.2S32 302.3 32 312V456c0 13.3 10.7 24 24 24H200c9.7 0 18.5-5.8 22.2-14.8s1.7-19.3-5.2-26.2l-40-40 79-79 79 79-40 40c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H456c13.3 0 24-10.7 24-24V312c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2l-40 40-79-79 79-79 40 40c6.9 6.9 17.2 8.9 26.2 5.2S480 209.7 480 200V56c0-13.3-10.7-24-24-24H312c-9.7 0-18.5 5.8-22.2 14.8s-1.7 19.3 5.2 26.2l40 40-79 79-79-79 40-40c6.9-6.9 8.9-17.2 5.2-26.2S209.7 32 200 32z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M200 32H56C42.7 32 32 42.7 32 56V200c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l40-40 79 79-79 79L73 295c-6.9-6.9-17.2-8.9-26.2-5.2S32 302.3 32 312V456c0 13.3 10.7 24 24 24H200c9.7 0 18.5-5.8 22.2-14.8s1.7-19.3-5.2-26.2l-40-40 79-79 79 79-40 40c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H456c13.3 0 24-10.7 24-24V312c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2l-40 40-79-79 79-79 40 40c6.9 6.9 17.2 8.9 26.2 5.2S480 209.7 480 200V56c0-13.3-10.7-24-24-24H312c-9.7 0-18.5 5.8-22.2 14.8s-1.7 19.3 5.2 26.2l40 40-79 79-79-79 40-40c6.9-6.9 8.9-17.2 5.2-26.2S209.7 32 200 32z'/%3E%3C/svg%3E");
}
i.fa-search::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
}
i.fa-star::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z'/%3E%3C/svg%3E");
}
i.fa-times::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z'/%3E%3C/svg%3E");
}
/* ---- Tarjeta de proyecto ---- */
i.fa-share-alt::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M307 34.8c-11.5 5.1-19 16.6-19 29.2v64H176C78.8 128 0 206.8 0 304C0 417.3 81.5 467.9 100.2 478.1c2.5 1.4 5.3 1.9 8.1 1.9c10.9 0 19.7-8.9 19.7-19.7c0-7.5-4.3-14.4-9.8-19.5C108.8 431.9 96 414.4 96 384c0-53 43-96 96-96h96v64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144c-9.4-8.5-22.9-10.6-34.4-5.4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M307 34.8c-11.5 5.1-19 16.6-19 29.2v64H176C78.8 128 0 206.8 0 304C0 417.3 81.5 467.9 100.2 478.1c2.5 1.4 5.3 1.9 8.1 1.9c10.9 0 19.7-8.9 19.7-19.7c0-7.5-4.3-14.4-9.8-19.5C108.8 431.9 96 414.4 96 384c0-53 43-96 96-96h96v64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144c-9.4-8.5-22.9-10.6-34.4-5.4z'/%3E%3C/svg%3E");
}
/* ---- Modal Características ---- */
i.fa-check-circle::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
}
/* ---- CTA Botones ---- */
i.fa-file-invoice-dollar::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zm192 0v128h128L256 0zM64 80c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s-7.2 16-16 16H80c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s-7.2 16-16 16H80c-8.8 0-16-7.2-16-16zm128 72c8.8 0 16 7.2 16 16v4h8c8.8 0 16 7.2 16 16s-7.2 16-16 16H208v24h8c26.5 0 48 21.5 48 48s-21.5 48-48 48H208v4c0 8.8-7.2 16-16 16s-16-7.2-16-16v-4h-8c-8.8 0-16-7.2-16-16s7.2-16 16-16h24V312h-8c-26.5 0-48-21.5-48-48s21.5-48 48-48h8v-4c0-8.8 7.2-16 16-16zm-32 68v24h24c8.8 0 16-7.2 16-16s-7.2-16-16-16H192zm48 72H216v24h24c8.8 0 16-7.2 16-16s-7.2-16-16-16z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zm192 0v128h128L256 0zM64 80c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s-7.2 16-16 16H80c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s-7.2 16-16 16H80c-8.8 0-16-7.2-16-16zm128 72c8.8 0 16 7.2 16 16v4h8c8.8 0 16 7.2 16 16s-7.2 16-16 16H208v24h8c26.5 0 48 21.5 48 48s-21.5 48-48 48H208v4c0 8.8-7.2 16-16 16s-16-7.2-16-16v-4h-8c-8.8 0-16-7.2-16-16s7.2-16 16-16h24V312h-8c-26.5 0-48-21.5-48-48s21.5-48 48-48h8v-4c0-8.8 7.2-16 16-16zm-32 68v24h24c8.8 0 16-7.2 16-16s-7.2-16-16-16H192zm48 72H216v24h24c8.8 0 16-7.2 16-16s-7.2-16-16-16z'/%3E%3C/svg%3E");
}
i.fa-whatsapp::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7 .9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7 .9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
}
/* ---- Chevron (breadcrumbs y filtros) ---- */
i.fa-chevron-right::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E");
}
i.fa-chevron-down::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
}

/* ============================================================
   MODAL HEADER (Compartir + Cerrar)
   ============================================================ */
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-header h2 {
    margin: 0;
    flex: 1;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-share-modal {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-share-modal:hover {
    background: var(--color-primary, #2d8a7a);
    color: #fff;
    border-color: var(--color-primary, #2d8a7a);
}

/* CTA buttons in modal */
.cta-modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.cta-modal-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.cta-modal-buttons .btn-secondary:hover {
    background: #e8f0ed;
    border-color: var(--color-primary, #2d8a7a);
    color: var(--color-primary, #2d8a7a);
}

/* ============================================================
   SINGLE PROYECTO PAGE
   ============================================================ */

/* Hero */
.hero-single .hero-badge {
    display: inline-block;
    background: var(--color-primary, #2d8a7a);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.hero-meta-single {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0;
    font-size: 0.95rem;
    color: #555;
}

.hero-meta-single span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta-single i {
    color: var(--color-primary, #2d8a7a);
}

/* Main layout */
.single-project-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .single-project-layout {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.gallery-container-single {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.gallery-container-single .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-container-single .gallery::-webkit-scrollbar {
    display: none;
}

.gallery-container-single .gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.gallery-container-single .gallery-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-container-single .gallery-img {
        height: 300px;
    }
}

.gallery-container-single .gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
}

.gallery-container-single .gallery-btn {
    pointer-events: auto;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-container-single .gallery-btn:hover {
    background: var(--color-primary, #2d8a7a);
    color: #fff;
}

.gallery-container-single .gallery-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

/* Info column */
.single-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.single-info-card h2 {
    font-size: 1.8rem;
    margin: 0 0 20px;
    color: var(--color-heading, #1a2e2a);
}

.single-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.single-meta-item {
    background: #f7fbf9;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary, #2d8a7a);
}

.meta-label-single {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 2px;
}

.meta-value-single {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.single-description,
.single-features,
.single-sustainability {
    margin-bottom: 24px;
}

.single-description h3,
.single-features h3,
.single-sustainability h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--color-heading, #1a2e2a);
}

.single-sustainability h3 i {
    color: var(--color-primary, #2d8a7a);
    margin-right: 6px;
}

.single-description p,
.single-sustainability p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.features-list-single {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item-single {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    color: #444;
}

.feature-item-single i {
    color: var(--color-primary, #2d8a7a);
    margin-top: 3px;
    flex-shrink: 0;
}

/* CTA card */
/* ============================================================
   CTA PREMIUM
   ============================================================ */
.cta-premium {
    position: relative;
    margin-top: 32px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8f0ed;
    transition: box-shadow 0.3s;
}

.cta-premium:hover {
    box-shadow: 0 8px 40px rgba(45, 138, 122, 0.1);
}

.cta-premium-bg-decoration {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 138, 122, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-premium-bg-decoration::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.04) 0%, transparent 70%);
}

.cta-premium-content {
    position: relative;
    z-index: 1;
}

.cta-premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e8f5ef 0%, #d4ede2 100%);
    color: var(--color-primary, #2d8a7a);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.cta-premium-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-heading, #1a2e2a);
    margin: 0 0 8px;
    line-height: 1.3;
}

.cta-premium-text {
    font-size: 0.95rem;
    color: #666;
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.cta-premium-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-premium-btn-primary,
.cta-premium-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-premium-btn-primary {
    background: linear-gradient(135deg, #2d8a7a 0%, #1f6b5e 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(45, 138, 122, 0.3);
}

.cta-premium-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 138, 122, 0.4);
    color: #fff;
}

.cta-premium-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(45, 138, 122, 0.3);
}

.cta-premium-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.cta-premium-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.cta-premium-btn-whatsapp:active {
    transform: translateY(0);
}

.cta-premium-btn-icon {
    flex-shrink: 0;
}

.cta-premium-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-premium-trust span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #888;
}

.cta-premium-trust svg {
    color: var(--color-primary, #2d8a7a);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cta-premium {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .cta-premium-title {
        font-size: 1.25rem;
    }

    .cta-premium-text {
        font-size: 0.88rem;
    }

    .cta-premium-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-premium-btn-primary,
    .cta-premium-btn-whatsapp {
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .cta-premium-trust {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* Dark mode */
[data-theme="dark"] .cta-premium {
    background: var(--nm-secondary-bg, #162019);
    border-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .cta-premium-title {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .cta-premium-text {
    color: #aaa;
}

[data-theme="dark"] .cta-premium-badge {
    background: rgba(45, 138, 122, 0.2);
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .cta-premium-trust span {
    color: #999;
}

/* Related projects section */
.related-projects {
    padding: 60px 0;
}

.related-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

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

@media (max-width: 600px) {
    .related-projects .projects-grid {
        grid-template-columns: 1fr;
    }
}

.related-projects .project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.related-projects .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.related-projects .project-card .project-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-projects .project-card .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-projects .project-card .project-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary, #2d8a7a);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.related-projects .project-card .project-content {
    padding: 16px;
}

.related-projects .project-card .project-title {
    font-size: 1rem;
    margin: 0 0 6px;
    color: var(--color-heading, #1a2e2a);
}

.related-projects .project-card .project-description {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

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

/* Dark mode overrides for single page & modal header */
[data-theme="dark"] .single-info-card {
    background: var(--nm-secondary-bg, #162019);
}

[data-theme="dark"] .single-meta-item {
    background: var(--nm-bg, #0f1715);
    border-left-color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .btn-share-modal {
    border-color: var(--nm-border, #1e2d27);
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .related-projects .project-card {
    background: var(--nm-secondary-bg, #162019);
}

[data-theme="dark"] .modal-header h2 {
    color: var(--nm-text, #e8f0ed);
}

/* Load more button */
.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

.load-more-wrapper .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
}

/* ============================================================
   VIDEO BADGE EN TARJETAS
   ============================================================ */
.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.video-badge i {
    font-size: 0.6rem;
}

/* Video slide overlay */
.gallery-item-video {
    position: relative;
}

.video-overlay-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.video-play-overlay i,
.video-play-overlay .play-icon-svg {
    font-size: 4rem;
    color: #fff;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
    width: 64px;
    height: 64px;
}

.video-overlay-wrapper video {
    display: block;
}

.video-overlay-wrapper video[controls]::-webkit-media-controls {
    z-index: 3;
    position: relative;
}

/* Slide badges */
.gallery-slide-badge {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.video-slide-badge {
    background: rgba(45, 138, 122, 0.9);
}

.gallery-slide-badge i {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .video-play-overlay i,
    .video-play-overlay .play-icon-svg {
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }
    .gallery-slide-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
}

/* ============================================================
   MAPA DE UBICACIÓN
   ============================================================ */
.single-map-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.single-map-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--color-heading, #1a2e2a);
}

.single-map-card h3 i {
    color: var(--color-primary, #2d8a7a);
    margin-right: 6px;
}

.map-address {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 12px;
}

.single-project-map {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.modal-project-map {
    width: 100%;
    border: 1px solid #e0e0e0;
}

[data-theme="dark"] .single-map-card {
    background: var(--nm-secondary-bg, #162019);
}

[data-theme="dark"] .map-address {
    color: var(--nm-text, #e8f0ed);
}

/* ============================================================
   ESTADÍSTICAS DEL PORTAFOLIO
   ============================================================ */
.portfolio-stats-section {
    padding: 60px 0;
    background: var(--color-primary, #2d8a7a);
    color: #fff;
}

.portfolio-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .portfolio-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

.portfolio-stat-item {
    padding: 20px;
}

.portfolio-stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #c8e6d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-stat-label {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

[data-theme="dark"] .portfolio-stats-section {
    background: var(--nm-secondary-bg, #162019);
}

/* ============================================================
   TIMELINE DEL PROCESO CONSTRUCTIVO
   ============================================================ */
.timeline-section {
    padding: 60px 0;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary, #2d8a7a);
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    margin-bottom: 36px;
    padding-left: 24px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 20px;
    height: 20px;
    background: var(--color-primary, #2d8a7a);
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.timeline-step h3 {
    font-size: 1.1rem;
    margin: 0 0 4px;
    color: var(--color-heading, #1a2e2a);
}

.timeline-step p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

[data-theme="dark"] .timeline-step h3 {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .timeline-step p {
    color: #aaa;
}

[data-theme="dark"] .timeline-container::before {
    background: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .timeline-dot {
    background: var(--nm-accent, #2d8a7a);
    border-color: var(--nm-secondary-bg, #162019);
}

/* ============================================================
   GALERÍA CON THUMBNAILS — SINGLE PROYECTO
   ============================================================ */
.gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    scroll-snap-align: start;
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: var(--color-primary, #2d8a7a);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(45, 138, 122, 0.3);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-video {
    background: linear-gradient(135deg, #1a2e2a, #2d8a7a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.gallery-thumb-video .thumb-video-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.6rem;
}

.gallery-thumb-video .thumb-label {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-thumb-video.active {
    background: linear-gradient(135deg, #2d8a7a, #1a6b5a);
}

@media (max-width: 768px) {
    .gallery-thumb {
        width: 60px;
        height: 46px;
        border-radius: 6px;
    }
}

/* ============================================================
   MAPA INTERACTIVO PREMIUM
   ============================================================ */
.single-map-premium {
    padding: 0 !important;
    overflow: hidden;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 16px;
}

.map-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary, #2d8a7a), #1a6b5a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-header-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.map-header-text h3 {
    font-size: 1.1rem;
    margin: 0 0 4px;
    color: var(--color-heading, #1a2e2a);
}

.map-header-text .map-address {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

.map-header-text .map-address i {
    color: var(--color-primary, #2d8a7a);
    font-size: 0.75rem;
}

.map-wrapper-premium {
    position: relative;
}

.map-wrapper-premium .single-project-map {
    height: 300px;
    border-radius: 0;
    border: none;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.map-controls-premium {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
}

.map-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.map-control-btn svg {
    width: 16px;
    height: 16px;
    color: #555;
}

.map-control-btn:hover {
    background: var(--color-primary, #2d8a7a);
    transform: scale(1.05);
}

.map-control-btn:hover svg {
    color: #fff;
}

.map-control-btn.active {
    background: var(--color-primary, #2d8a7a);
}

.map-control-btn.active svg {
    color: #fff;
}

.map-footer-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 12px;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-primary, #2d8a7a);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.map-directions-btn:hover {
    background: #1a6b5a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 138, 122, 0.3);
}

.map-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--color-primary, #2d8a7a);
    border: 1.5px solid var(--color-primary, #2d8a7a);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-share-btn:hover {
    background: rgba(45, 138, 122, 0.08);
    transform: translateY(-1px);
}

/* Custom map marker */
.custom-map-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pin {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    background: var(--color-primary, #2d8a7a);
    position: relative;
    transform: rotate(-45deg);
    box-shadow: 0 4px 16px rgba(45, 138, 122, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin-inner {
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pulse {
    width: 14px;
    height: 14px;
    background: rgba(45, 138, 122, 0.3);
    border-radius: 50%;
    position: absolute;
    bottom: -4px;
    left: 13px;
    animation: markerPulse 2s ease-out infinite;
}

@keyframes markerPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Premium popup */
.premium-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.premium-popup .leaflet-popup-content {
    margin: 0;
    min-width: 220px;
}

.premium-popup .leaflet-popup-tip {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-popup-premium {
    padding: 16px;
}

.map-popup-premium h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2e2a;
    margin: 0 0 8px;
}

.map-popup-premium .popup-badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(45, 138, 122, 0.1);
    color: var(--color-primary, #2d8a7a);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.map-popup-premium .popup-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #777;
    margin-left: 8px;
}

.map-popup-premium .popup-address {
    font-size: 0.8rem;
    color: #888;
    margin: 6px 0 10px;
    line-height: 1.4;
}

.map-popup-premium .popup-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--color-primary, #2d8a7a);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.map-popup-premium .popup-directions-btn:hover {
    background: #1a6b5a;
    color: #fff;
}

/* Dark mode map */
[data-theme="dark"] .single-map-premium {
    background: var(--nm-secondary-bg, #162019);
}

[data-theme="dark"] .map-header-text h3 {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .map-header-text .map-address {
    color: var(--nm-text, #e8f0ed);
    opacity: 0.7;
}

[data-theme="dark"] .map-wrapper-premium .single-project-map {
    border-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .map-control-btn {
    background: var(--nm-secondary-bg, #162019);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .map-control-btn svg {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .map-share-btn {
    color: var(--nm-accent, #2d8a7a);
    border-color: var(--nm-accent, #2d8a7a);
}

@media (max-width: 768px) {
    .map-footer-premium {
        flex-direction: column;
        padding: 12px 16px;
    }
    .map-directions-btn,
    .map-share-btn {
        width: 100%;
        justify-content: center;
    }
    .map-wrapper-premium .single-project-map {
        height: 220px;
    }
    .map-header {
        padding: 16px 16px 12px;
    }
}

/* ============================================================
   LIGHTBOX MODAL PREMIUM — SINGLE PROYECTO
   ============================================================ */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

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

.lightbox-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 95vh;
    width: 100%;
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    padding: 0 12px 12px;
    color: #fff;
}

.lightbox-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.lightbox-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: rgba(255,255,255,0.9);
    text-align: right;
    flex: 1;
    margin-left: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lightbox-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    width: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    transition: opacity 0.2s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-prev {
    left: -60px;
}

.lightbox-nav-next {
    right: -60px;
}

.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px 8px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 900px;
    width: 100%;
    justify-content: center;
}

.lightbox-thumbnails::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.lightbox-thumb:hover {
    opacity: 0.8;
}

.lightbox-thumb.active {
    border-color: var(--color-primary, #2d8a7a);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(45, 138, 122, 0.4);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .lightbox-nav-prev {
        left: 8px;
    }
    .lightbox-nav-next {
        right: 8px;
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        background: rgba(0,0,0,0.5);
    }
    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .lightbox-header {
        padding: 0 4px 8px;
    }
    .lightbox-title {
        font-size: 0.85rem;
    }
    .lightbox-image {
        max-height: 60vh;
        border-radius: 4px;
    }
    .lightbox-thumb {
        width: 48px;
        height: 36px;
    }
    .lightbox-thumbnails {
        padding: 12px 4px 4px;
        justify-content: flex-start;
    }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
}