/* ============================================
   Blog de Reparaciones - Detalle (Rediseño 2024)
   Paleta profesional-moderna | Tipografía Inter
   ============================================ */

/* ============================================
   VARIABLES CSS - Nueva Paleta
   ============================================ */
:root {
    /* Colores principales */
    --primary: #2563eb;
    --secondary: #475569;
    --accent: #0ea5e9;
    
    /* Estados */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Texto */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Fondos */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* Bordes */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   HEADER FIX - Mantener consistencia
   ============================================ */
/* Prevenir que Inter afecte el header */
body #main-header,
body #main-header *,
body #main-header nav,
body #main-header nav *,
body #main-header .flex,
body #main-header a,
body #main-header button,
body #main-header span,
body #main-header div {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    letter-spacing: normal !important;
}

/* Forzar altura consistente del header */
body #main-header {
    min-height: 4rem !important; /* 64px en mobile */
}

@media (min-width: 1024px) {
    body #main-header {
        min-height: 5rem !important; /* 80px en desktop */
    }
}

/* Evitar que los enlaces se compriman - Mayor especificidad */
body #main-header nav a,
body #main-header nav button,
body #main-header nav span {
    white-space: nowrap !important;
}

/* Asegurar que el contenedor flex no se comprima */
body #main-header .flex {
    flex-shrink: 0 !important;
}

/* ============================================
   BASE & TYPOGRAPHY
   ============================================ */
.blog-detail-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   BREADCRUMBS MEJORADOS
   ============================================ */
.breadcrumbs-enhanced {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

.breadcrumbs-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--border-medium);
    color: var(--text-primary);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs-list a:hover {
    color: var(--primary);
}

.breadcrumbs-list svg {
    width: 16px;
    height: 16px;
    color: var(--border-medium);
}

.breadcrumbs-list .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   HERO SECTION REDISEÑADO
   ============================================ */
.article-hero {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 2rem 0;
}

.article-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Badges inline */
.article-badges-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s;
}

.badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.badge-category {
    background: var(--primary);
    color: white;
}

.badge-time {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.badge-price {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-warranty {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

/* Título */
.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

/* Autor y metadata */
.article-author-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.author-info-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-initial {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.article-meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.meta-item svg {
    color: var(--text-muted);
}

/* Botón compartir integrado en línea */
.meta-item-share {
    position: relative;
}

.btn-share-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share-inline:hover {
    color: var(--text-primary);
}

.btn-share-inline svg {
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-share-inline:hover svg {
    color: var(--text-primary);
}

.share-menu-inline {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
    z-index: 100;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.share-option:hover {
    background: var(--bg-tertiary);
}

/* ============================================
   TABLA DE CONTENIDOS
   ============================================ */
.article-toc {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.toc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toc-toggle .chevron {
    transition: transform 0.3s;
}

.toc-toggle.active .chevron {
    transform: rotate(180deg);
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.toc-content.expanded {
    max-height: 500px;
    padding-bottom: 1rem;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.toc-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.toc-nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.toc-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.toc-nav a:hover,
.toc-nav a.active {
    background: var(--bg-tertiary);
    color: var(--primary);
}

/* ============================================
   FICHA TÉCNICA PROFESIONAL - REDISEÑO MODERNO
   ============================================ */
.repair-specs-professional {
    background: var(--bg-secondary);
    padding: 3rem 0;
}

.specs-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.specs-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.specs-card-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.specs-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.spec-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.spec-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.spec-item-highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.spec-item-highlight:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

.spec-item-highlight .spec-label,
.spec-item-highlight .spec-value {
    color: white !important;
}

.spec-item-highlight .spec-icon svg {
    color: white;
}

.spec-item-full {
    grid-column: 1 / -1;
}

.spec-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.spec-item-highlight .spec-icon {
    background: rgba(255, 255, 255, 0.25);
}

.spec-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.spec-price {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.parts-list-modern {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.parts-list-modern li {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.parts-list-modern li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
.blog-detail-content {
    background: var(--bg-primary);
    padding: 4rem 0;
}

.blog-content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.blog-content-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
}

.blog-content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-heading {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.blog-content-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Imágenes en secciones */
.content-section-with-image {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.content-section-image-left {
    flex-direction: row-reverse;
}

.content-section-text {
    flex: 1;
}

.content-section-images {
    flex: 0 0 350px;
}

.section-image-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.section-image-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.section-image {
    width: 100%;
    height: auto;
    display: block;
}

.section-image-caption {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Galería con miniaturas */
.section-gallery {
    width: 100%;
}

.section-gallery-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    margin-bottom: 1rem;
    height: 400px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-gallery-main:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.section-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.section-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    font-size: 0.8125rem;
    color: white;
    margin: 0;
    z-index: 2;
}

.section-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.section-gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-light);
    transition: all 0.3s;
    opacity: 0.6;
}

.section-gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.section-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   CTA MEJORADO
   ============================================ */
.cta-enhanced {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    padding: 4rem 0;
    color: white;
}

.cta-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.cta-image-side img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    gap: 0.75rem;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.cta-guarantee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ============================================
   COMENTARIOS
   ============================================ */
.blog-comments {
    background: var(--bg-secondary);
    padding: 2rem 0; /* Reducido de 3rem a 2rem */
}

.blog-comments-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.comments-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.comments-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.25rem;
}

.blog-comment {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.blog-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.blog-comment-content {
    flex: 1;
}

.blog-comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.blog-comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.blog-comment-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-comments-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Formulario de comentarios mejorado */
.blog-comment-form-enhanced {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem; /* Reducido de 2rem a 1.25rem */
    margin-top: 1rem; /* Reducido de 1.5rem a 1rem */
}

/* Botón toggle para comentarios */
.btn-toggle-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Reducido de 0.75rem */
    width: 100%;
    padding: 0.75rem 1.25rem; /* Reducido de 1rem 1.5rem */
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem; /* Reducido de 1rem */
    cursor: pointer;
    margin-top: 1.5rem; /* Reducido de 2rem */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-toggle-comments:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-toggle-comments .chevron-toggle {
    transition: transform 0.3s;
}

.btn-toggle-comments.active .chevron-toggle {
    transform: rotate(180deg);
}

.comment-form-title {
    font-size: 1.25rem; /* Reducido de 1.5rem */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem; /* Reducido de 1.5rem */
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem; /* Reducido de 1rem */
    margin-bottom: 0.875rem; /* Reducido de 1rem */
}

.form-group {
    margin-bottom: 1rem; /* Reducido de 1.5rem */
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem; /* Reducido de 0.5rem */
    font-size: 0.8125rem; /* Reducido de 0.875rem */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem; /* Reducido de 0.75rem 1rem */
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.875rem; /* Reducido de 0.9375rem */
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.captcha-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem; /* Reducido de 1.5rem */
    margin-bottom: 1rem; /* Reducido de 1.5rem */
}

.captcha-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem; /* Reducido de 1rem */
}

.captcha-image {
    max-width: 250px;
    margin-bottom: 0.75rem; /* Reducido de 1rem */
    border-radius: 6px;
}

.captcha-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem; /* Reducido de 1rem */
    font-style: italic;
}

.captcha-input {
    max-width: 250px;
}

.btn-submit-comment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Reducido de 0.75rem */
    padding: 0.75rem 1.75rem; /* Reducido de 0.875rem 2rem */
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem; /* Reducido de 1rem */
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-comment:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Alertas */
.alert {
    padding: 0.75rem 1rem; /* Reducido de 1rem 1.25rem */
    border-radius: 6px;
    margin-bottom: 1rem; /* Reducido de 1.5rem */
    font-size: 0.875rem;
    border: 1px solid;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* ============================================
   CAROUSEL 3D - GALERÍA DEL PROCESO
   ============================================ */
.blog-process-gallery {
    width: 100%;
    padding: 3rem 0;
    background: var(--bg-tertiary);
}

.blog-process-gallery-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.blog-process-gallery-title {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    text-align: center;
}

.blog-carousel-3d {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 2rem 0;
    perspective: 1200px;
    perspective-origin: center center;
}

.blog-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-carousel-main {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 450px;
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.blog-carousel-main:hover {
    transform: scale(1.02) translateZ(20px);
}

.blog-carousel-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform-style: preserve-3d;
    opacity: 1;
    border-radius: 8px;
}

.blog-carousel-main:hover .blog-carousel-main-image {
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.4);
}

.blog-carousel-main-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.blog-carousel-main:hover .blog-carousel-main-caption {
    opacity: 1;
}

/* Thumbnails laterales */
.blog-carousel-thumbnails {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 5;
    max-height: 450px;
    overflow: hidden;
    padding: 0.5rem;
}

.blog-carousel-thumbnail {
    width: 80px;
    height: 60px;
    position: relative;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-10px) translateZ(-50px) rotateY(15deg);
    filter: blur(2px);
    border: 1px solid rgba(232, 232, 232, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.blog-carousel-thumbnail:hover {
    opacity: 0.8;
    transform: translateX(-5px) translateZ(-20px) rotateY(10deg) scale(1.1);
    filter: blur(1px);
    z-index: 6;
}

.blog-carousel-thumbnail.active {
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1.2);
    filter: blur(0);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    z-index: 7;
}

.blog-carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Thumbnails derecha */
.blog-carousel-thumbnails-right {
    left: auto;
    right: 0;
}

.blog-carousel-thumbnails-right .blog-carousel-thumbnail {
    transform: translateX(10px) translateZ(-50px) rotateY(-15deg);
}

.blog-carousel-thumbnails-right .blog-carousel-thumbnail:hover {
    transform: translateX(5px) translateZ(-20px) rotateY(-10deg) scale(1.1);
}

.blog-carousel-thumbnails-right .blog-carousel-thumbnail.active {
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1.2);
}

/* Botones de navegación */
.blog-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    box-shadow: var(--shadow-md);
    border-radius: 50%;
}

.blog-carousel-nav:hover {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.blog-carousel-nav.prev {
    left: -1.5rem;
}

.blog-carousel-nav.next {
    right: -1.5rem;
}

.blog-carousel-nav svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.blog-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Indicadores */
.blog-carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.blog-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-medium);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
}

.blog-carousel-dot:hover {
    background: var(--primary);
    transform: scale(1.3);
}

.blog-carousel-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
    border-color: var(--primary);
}

.blog-carousel-counter {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: 1rem;
    font-weight: 500;
}

/* ============================================
   LIGHTBOX - UNIFICADO Y MEJORADO
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
    background: transparent;
    /* Asegurar que la imagen sea visible */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.lightbox > .lightbox-close {
    position: absolute !important;
    top: 2rem !important;
    right: 2rem !important;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001 !important;
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: auto !important;
}

.lightbox > .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    max-width: 80%;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .toc-nav ol {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
    }
    
    .cta-image-side {
        order: 2;
    }
    
    .content-section-with-image {
        flex-direction: column;
    }
    
    .content-section-images {
        flex: 1;
        max-width: 100%;
    }
    
    .section-gallery-main {
        height: 350px;
    }
    
    .section-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .blog-carousel-3d {
        height: 400px;
    }
    
    .blog-carousel-main {
        max-width: 500px;
        height: 350px;
    }
    
    /* Specs en tablet */
    .specs-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .article-author-meta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-meta-items {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .share-menu-inline {
        left: 0;
        right: auto;
        min-width: 250px;
        max-width: calc(100vw - 3rem);
    }
    
    .toc-nav ol {
        grid-template-columns: 1fr;
    }
    
    .spec-label {
        width: 150px;
        padding: 0.75rem 1rem;
    }
    
    .spec-value {
        padding: 0.75rem 1rem;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .btn-cta {
        width: 100%;
        justify-content: center;
    }
    
    .section-gallery-main {
        height: 300px;
    }
    
    .section-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    /* Carousel en tablet */
    .blog-carousel-thumbnails {
        display: none;
    }
    
    .blog-carousel-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .blog-carousel-nav.prev {
        left: 0.5rem;
    }
    
    .blog-carousel-nav.next {
        right: 0.5rem;
    }
    
    .lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .lightbox-nav.prev {
        left: 1rem;
    }
    
    .lightbox-nav.next {
        right: 1rem;
    }
    
    /* Specs en móvil */
    .specs-card-modern {
        padding: 1.5rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .spec-item {
        padding: 1.25rem;
    }
    
    .spec-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    .breadcrumbs-list {
        font-size: 0.75rem;
    }
    
    .article-badges-inline {
        gap: 0.5rem;
    }
    
    .badge {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
    }
    
    .section-gallery-main {
        height: 250px;
    }
    
    .blog-carousel-3d {
        height: 300px;
    }
    
    .blog-carousel-main {
        height: 250px;
    }
    
    .blog-carousel-nav {
        width: 2rem;
        height: 2rem;
    }
    
    .blog-carousel-nav svg {
        width: 1rem;
        height: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    /* Specs ultra compacto */
    .specs-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .specs-card-modern {
        padding: 1.25rem;
    }
    
    .spec-item {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .spec-icon {
        width: 36px;
        height: 36px;
    }
    
    .spec-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .spec-value {
        font-size: 0.9375rem;
    }
    
    .parts-list-modern {
        flex-direction: column;
    }
    
    .parts-list-modern li {
        width: 100%;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ============================================
   GALERÍA DEL PROCESO MODERNA
   ============================================ */

/* Variables de colores por fase */
:root {
    --phase-diagnostico: #3b82f6;
    --phase-reparacion: #f97316;
    --phase-pruebas: #10b981;
    --phase-resultado: #8b5cf6;
    --phase-otro: #64748b;
}

/* Contenedor principal */
.process-gallery-modern {
    width: 100%;
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.process-gallery-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.process-gallery-title {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Vista principal de la imagen */
.gallery-main-view {
    margin-bottom: 2rem;
}

.gallery-main-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-main-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.gallery-main-image-wrapper:hover .gallery-main-image {
    transform: scale(1.02);
}

/* Overlay con información al hover */
.gallery-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-main-image-wrapper:hover .gallery-main-overlay {
    opacity: 1;
}

.gallery-main-overlay .gallery-phase-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.gallery-main-overlay .gallery-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Botón de zoom */
.gallery-zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-main-image-wrapper:hover .gallery-zoom-btn {
    opacity: 1;
}

.gallery-zoom-btn:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-zoom-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* Overlay de zoom para galerías de secciones */
.gallery-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    pointer-events: none;
}

.gallery-main-container:hover .gallery-zoom-overlay {
    opacity: 1;
    pointer-events: all;
}

.gallery-zoom-icon {
    width: 3rem;
    height: 3rem;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    stroke-width: 2;
}

/* Información debajo de la imagen */
.gallery-main-info {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gallery-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.gallery-counter {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.gallery-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.gallery-step-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Badges de fase */
.gallery-phase-badge,
.thumb-phase-badge,
.lightbox-phase-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.gallery-phase-badge[data-phase="diagnostico"],
.thumb-phase-badge[data-phase="diagnostico"],
.lightbox-phase-badge[data-phase="diagnostico"] {
    background: var(--phase-diagnostico);
}

.gallery-phase-badge[data-phase="reparacion"],
.thumb-phase-badge[data-phase="reparacion"],
.lightbox-phase-badge[data-phase="reparacion"] {
    background: var(--phase-reparacion);
}

.gallery-phase-badge[data-phase="pruebas"],
.thumb-phase-badge[data-phase="pruebas"],
.lightbox-phase-badge[data-phase="pruebas"] {
    background: var(--phase-pruebas);
}

.gallery-phase-badge[data-phase="resultado"],
.thumb-phase-badge[data-phase="resultado"],
.lightbox-phase-badge[data-phase="resultado"] {
    background: var(--phase-resultado);
}

.gallery-phase-badge[data-phase="otro"],
.thumb-phase-badge[data-phase="otro"],
.lightbox-phase-badge[data-phase="otro"] {
    background: var(--phase-otro);
}

/* Miniaturas scrolleables horizontales */
.gallery-thumbnails-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem;
}

.gallery-thumbnails-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-medium) var(--bg-tertiary);
    justify-content: center; /* Centrar cuando hay pocas miniaturas */
}

.gallery-thumbnails-track::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails-track::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.gallery-thumbnails-track::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
    transition: background 0.2s;
}

.gallery-thumbnails-track::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Miniatura individual */
.gallery-thumbnail {
    position: relative;
    flex: 0 0 120px;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    background: var(--bg-tertiary);
}

.gallery-thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-phase-badge {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    border-radius: 4px;
    z-index: 2;
}

.thumb-step-number {
    position: absolute;
    bottom: 0.375rem;
    right: 0.375rem;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Botones de navegación de miniaturas */
.gallery-thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.gallery-thumb-nav:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.gallery-thumb-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.gallery-thumb-nav.prev {
    left: 0;
}

.gallery-thumb-nav.next {
    right: 0;
}

.gallery-thumb-nav svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* Lightbox mejorado para galería del proceso */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 0;
}

.gallery-lightbox.active {
    display: flex;
    flex-direction: column;
}

.lightbox-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lightbox-counter {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-lightbox .lightbox-close {
    position: absolute !important;
    top: 1.5rem !important;
    right: 2rem !important;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 10001 !important;
    pointer-events: auto !important;
}

.gallery-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.lightbox-body img {
    max-width: 90vw;
    max-height: calc(100vh - 250px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-footer {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.lightbox-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.75rem 0;
}

.lightbox-step-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ============================================
   RESPONSIVE - GALERÍA DEL PROCESO
   ============================================ */

@media (max-width: 1024px) {
    .gallery-main-image-wrapper {
        max-width: 100%;
    }
    
    .gallery-main-info {
        max-width: 100%;
    }
    
    .gallery-thumbnails-wrapper {
        max-width: 100%;
        padding: 0 2.5rem;
    }
    
    .gallery-thumbnail {
        flex: 0 0 100px;
        width: 100px;
        height: 67px;
    }
}

@media (max-width: 768px) {
    .process-gallery-modern {
        padding: 2rem 0;
    }
    
    .process-gallery-container {
        padding: 0 1rem;
    }
    
    .process-gallery-title {
        margin-bottom: 1.5rem;
    }
    
    .gallery-main-image-wrapper {
        aspect-ratio: 4 / 3;
        margin-bottom: 1rem;
    }
    
    .gallery-main-info {
        padding: 1rem;
    }
    
    .gallery-step-title {
        font-size: 1rem;
    }
    
    .gallery-step-description {
        font-size: 0.875rem;
    }
    
    .gallery-thumbnails-wrapper {
        padding: 0 2rem;
    }
    
    .gallery-thumbnail {
        flex: 0 0 80px;
        width: 80px;
        height: 53px;
    }
    
    .gallery-thumb-nav {
        width: 2rem;
        height: 2rem;
    }
    
    .gallery-thumb-nav svg {
        width: 1rem;
        height: 1rem;
    }
    
    .lightbox-header,
    .lightbox-footer {
        padding: 1rem 1.5rem;
    }
    
    .lightbox-body {
        padding: 1rem;
    }
    
    .lightbox-body img {
        max-height: calc(100vh - 300px);
    }
    
    .lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .lightbox-nav.prev {
        left: 1rem;
    }
    
    .lightbox-nav.next {
        right: 1rem;
    }
    
    .lightbox-step-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .gallery-zoom-btn {
        width: 2rem;
        height: 2rem;
        opacity: 1;
    }
    
    .gallery-zoom-btn svg {
        width: 1rem;
        height: 1rem;
    }
    
    .gallery-main-overlay {
        opacity: 0;
    }
    
    .gallery-thumbnails-wrapper {
        padding: 0 1.5rem;
    }
    
    .thumb-phase-badge {
        font-size: 0.5rem;
        padding: 0.125rem 0.25rem;
    }
    
    .thumb-step-number {
        width: 20px;
        height: 20px;
        font-size: 0.625rem;
    }
    
    .lightbox-header {
        padding: 1rem;
    }
    
    .lightbox-footer {
        padding: 1rem;
    }
    
    .lightbox-step-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .lightbox-step-description {
        font-size: 0.8125rem;
    }
    
    .lightbox-close {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }
}

/* ============================================
   FIX: Imágenes de sección uniformes
   Las imágenes de diagnóstico, problema, solución,
   proceso, pruebas y resultado se desbordaban
   porque .gallery-main-container no tenía altura
   ni aspect-ratio definida.
   ============================================ */

/* Contenedor principal de imagen de sección */
.gallery-main-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
}

.gallery-main-container .gallery-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.gallery-main-container:hover .gallery-main-image {
    transform: scale(1.02);
}

/* Caption sobre la imagen */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
    z-index: 2;
}

/* Thumbnails de sección — uniformes */
.gallery-thumbnail-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-medium) transparent;
    padding-bottom: 0.25rem;
}

.gallery-thumbnail-container::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnail-container::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 2px;
}

.gallery-thumbnail-container .gallery-thumbnail {
    flex: 0 0 80px;
    width: 80px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.gallery-thumbnail-container .gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.gallery-thumbnail-container .gallery-thumbnail:hover {
    opacity: 0.9;
}

/* ============================================
   FIX: Lightbox móvil — más espacio para imagen
   ============================================ */
@media (max-width: 640px) {
    .lightbox-body img {
        max-height: calc(100vh - 200px);
    }

    .lightbox-header {
        padding: 0.75rem 1rem;
    }

    .lightbox-footer {
        padding: 0.75rem 1rem;
        max-height: 120px;
        overflow-y: auto;
    }

    .gallery-main-container {
        aspect-ratio: 3 / 2;
    }
}

/* ============================================
   FIX: Zoom overlay visible en móvil (touch)
   ============================================ */
@media (max-width: 1023px) {
    .gallery-zoom-overlay {
        opacity: 0.6;
        pointer-events: all;
        background: rgba(0, 0, 0, 0.15);
    }

    .gallery-zoom-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* ============================================
   COMPARACIÓN ANTES/DESPUÉS
   ============================================ */
.before-after-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.before-after-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-md);
}

.before-after-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.before-label {
    background: var(--danger);
}

.after-label {
    background: var(--success);
}

.before-after-img-container {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.before-after-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 480px) {
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .before-after-img-container {
        aspect-ratio: 16 / 10;
    }
}

