/* style.css */

:root {
    /* Light theme */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #7c3aed;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --bg-color: #111827;
    --bg-secondary: #1f2937;
    --card-bg: #1f2937;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-color);
    opacity: 0.2;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.stat-number {
    display: block;
    font-weight: 700;
    font-size: 1.25rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Download Section */
.download-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.platform-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.platform-card.windows {
    border-top: 4px solid #0078d4;
}

.platform-card.linux {
    border-top: 4px solid #f1502f;
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.platform-card.windows .platform-icon {
    color: #0078d4;
}

.platform-card.linux .platform-icon {
    color: #f1502f;
}

.platform-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.platform-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.platform-info {
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.info-item i {
    color: var(--primary-color);
    width: 20px;
}

.download-options {
    margin-top: 2rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.alternative-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

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

.progress-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
}

.progress-container.hidden {
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Guide Section */
.guide-preview {
    padding: 80px 0;
}

.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.guide-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.guide-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.guide-tab:not(.active):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.guide-steps {
    display: none;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.guide-steps.active {
    display: block;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-light);
}

.step-content code {
    background-color: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-color);
}

.guide-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Updates Section */
.updates-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.update-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.flow-step {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.flow-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.flow-arrow {
    color: var(--text-light);
}

.flow-step h4 {
    margin-bottom: 0.5rem;
}

.flow-step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.patch-info {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 3rem;
}

.patch-info h3 {
    margin-bottom: 1.5rem;
}

.patch-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.patch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: calc(var(--radius) - 4px);
    border-left: 4px solid var(--primary-color);
}

.patch-details {
    flex: 1;
}

.patch-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.patch-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.patch-size {
    font-weight: 600;
    color: var(--primary-color);
}

.download-patch-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: calc(var(--radius) - 8px);
    cursor: pointer;
    transition: var(--transition);
}

.download-patch-btn:hover {
    background-color: var(--primary-dark);
}

.loading-patches {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.loading-patches i {
    margin-right: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--card-bg);
}

.faq-question h4 {
    font-weight: 600;
    flex: 1;
    margin-right: 1rem;
}

.faq-question i {
    color: var(--text-light);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--bg-secondary);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-cards {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .update-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-tabs {
        flex-direction: column;
    }
    
    .guide-actions {
        flex-direction: column;
        align-items: center;
    }
}

.hidden {
    display: none !important;
}

/* Fix rápido para stats en desktop */
@media (min-width: 1025px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat {
        padding: 0.75rem !important;
        min-width: 0 !important;
    }
    
    .stat i {
        font-size: 1.25rem !important;
    }
    
    .stat-number {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }
}

/* Añade esto a tu style.css */

/* Estilos para barras de progreso */
.progress-container {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.progress-status {
    font-weight: 500;
    color: var(--text-color);
}

.progress-percent {
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 10px;
    background-color: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto de animación para el fill */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    z-index: 1;
    background-size: 50px 50px;
    animation: move 2s linear infinite;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    overflow: hidden;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.speed, .time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Notificaciones mejoradas */
.instruction-box, .manual-download-box {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
}

.instruction-box h4, .manual-download-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instruction-box ol, .manual-download-box ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.instruction-box li, .manual-download-box li {
    margin-bottom: 0.5rem;
}

.manual-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.manual-links .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.manual-links .btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.manual-steps {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.manual-steps h5 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.manual-steps code {
    background-color: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: var(--primary-color);
    margin: 0.25rem 0;
    display: inline-block;
}

/* Para cuando la descarga está oculta */
.hidden {
    display: none !important;
}


/* Agrega esto al final de tu style.css */

/* Estilos consistentes para código */
code {
    background: var(--bg-secondary);
    color: var(--text-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

/* Para bloques de código más grandes */
.code-block {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    font-family: 'Courier New', Consolas, Monaco, monospace;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.code-block code {
    background: transparent;
    padding: 0;
    border: none;
    font-size: 1em;
}


/* ESTO VA EN style.css - aplica a todo el sitio */

/* Estilo base para código inline */
code {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9em;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    font-weight: 500;
}

/* Variables CSS para colores (agrega al inicio de style.css) */
:root {
    --primary-rgb: 37, 99, 235; /* Azul para Windows */
    --primary-color: #2563eb;
}

[data-theme="dark"] code {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Para guía Linux, sobrescribe en su <style> interno */
.linux-guide code {
    background: rgba(241, 80, 47, 0.1);
    color: #f1502f;
    border-color: rgba(241, 80, 47, 0.2);
}

[data-theme="dark"] .linux-guide code {
    background: rgba(241, 80, 47, 0.15);
    border-color: rgba(241, 80, 47, 0.3);
}






/* ============================================
   FOOTER PROFESIONAL - LICENCIA CC
   ============================================ */

/* Contenedor principal del footer */
.footer {
    background: linear-gradient(135deg, var(--footer-bg, #1a1a2e) 0%, var(--footer-bg-dark, #16213e) 100%);
    color: var(--footer-text, #e6e6e6);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-color, #4dabf7) 50%, 
        transparent 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Logo y tagline */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color, #4dabf7);
}

.footer-logo i {
    font-size: 2rem;
    color: var(--accent-color, #4dabf7);
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--footer-text-light, #b0b0b0);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Enlaces de navegación */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: var(--footer-text, #e6e6e6);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color, #4dabf7);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color, #4dabf7);
}

.footer-links a:hover::after {
    width: 80%;
}

/* ===== SECCIÓN DE LICENCIA MEJORADA ===== */
.license-section {
    width: 100%;
    max-width: 1000px;
    margin: 2.5rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.license-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .license-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }
}

/* Badge de licencia */
.license-badge {
    flex-shrink: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.license-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.license-img {
    width: 140px;
    height: auto;
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

.license-badge:hover .license-img {
    filter: brightness(1.3);
}

/* Detalles de la licencia */
.license-details {
    flex: 1;
    text-align: left;
}

.license-statement {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--footer-text, #e6e6e6);
}

.license-holder {
    font-weight: 600;
    color: var(--accent-color, #4dabf7);
    background: rgba(77, 171, 247, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0.3rem;
}

.license-type {
    color: var(--accent-color, #4dabf7);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    padding: 0.1rem 0;
}

.license-type:hover {
    border-bottom-color: var(--accent-color, #4dabf7);
}

/* Términos de la licencia */
.license-terms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color, #4dabf7);
    align-items: stretch; /* Añade esto */
}

.term-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    height: 100%; /* Añade esto */
}

.term-item i {
    font-size: 1.1rem;
    color: var(--accent-color, #4dabf7);
}

.term-item:nth-child(3) i {
    color: #ff6b6b;
}

.license-note {
    font-size: 0.9rem;
    color: var(--footer-text-light, #b0b0b0);
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link {
    color: var(--accent-color, #4dabf7);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--accent-color, #4dabf7);
}

.contact-link:hover {
    border-bottom-style: solid;
}

/* Información legal */
.footer-legal {
    width: 100%;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    color: var(--footer-text-light, #b0b0b0);
    margin-bottom: 0.5rem;
}

.rights {
    color: var(--footer-text, #e6e6e6);
    font-weight: 500;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--footer-text-light, #b0b0b0);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Enlaces institucionales */
.institutional-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.inst-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--footer-text-light, #b0b0b0);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.inst-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color, #4dabf7);
    transform: translateY(-1px);
}

.inst-link i {
    font-size: 0.9rem;
}

/* Modo claro (si tu sitio lo tiene) */
[data-theme="light"] .footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
}

[data-theme="light"] .license-section {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .license-badge {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .license-terms {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .inst-link {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

[data-theme="light"] .inst-link:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--accent-color, #0066cc);
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem;
    }
    
    .license-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .license-content {
        text-align: center;
    }
    
    .license-details {
        text-align: center;
    }
    
    .license-terms {
        grid-template-columns: 1fr;
    }
    
    .institutional-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Animaciones sutiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.license-section {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}


:root {
    --footer-bg: #f8f9fa;
    --footer-bg-dark: #e9ecef;
    --footer-text: #333;
    --footer-text-light: #666;
    --accent-color: #0066cc;
    --accent-hover: #004d99;


}

[data-theme="dark"] {

    --footer-bg: #1a1a2e;
    --footer-bg-dark: #16213e;
    --footer-text: #e6e6e6;
    --footer-text-light: #b0b0b0;
    --accent-color: #4dabf7;
    --accent-hover: #339af0;


}








/* ============================================
   FOOTER PROFESIONAL - LICENCIA CC
   ============================================ */

/* Contenedor principal del footer */
.footer {
    background: linear-gradient(135deg, var(--footer-bg, #1a1a2e) 0%, var(--footer-bg-dark, #16213e) 100%);
    color: var(--footer-text, #e6e6e6);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-color, #4dabf7) 50%, 
        transparent 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Logo y tagline */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color, #4dabf7);
}

.footer-logo i {
    font-size: 2rem;
    color: var(--accent-color, #4dabf7);
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--footer-text-light, #b0b0b0);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Enlaces de navegación */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: var(--footer-text, #e6e6e6);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color, #4dabf7);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color, #4dabf7);
}

.footer-links a:hover::after {
    width: 80%;
}

/* ===== SECCIÓN DE LICENCIA MEJORADA ===== */
.license-section {
    width: 100%;
    max-width: 1000px;
    margin: 2.5rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.license-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .license-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }
}

/* Badge de licencia */
.license-badge {
    flex-shrink: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.license-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* SVG combinado */
.license-img-svg {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(1.05);
    transition: all 0.3s ease;
    max-width: 100%;
}

.license-badge:hover .license-img-svg {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Detalles de la licencia */
.license-details {
    flex: 1;
    text-align: left;
}

.license-statement {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--footer-text, #e6e6e6);
}

.license-holder {
    font-weight: 600;
    color: var(--accent-color, #4dabf7);
    background: rgba(77, 171, 247, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0.3rem;
}

.license-type {
    color: var(--accent-color, #4dabf7);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    padding: 0.1rem 0;
}

.license-type:hover {
    border-bottom-color: var(--accent-color, #4dabf7);
}

/* Términos de la licencia con iconos */
.license-terms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-items: stretch; /* Nueva línea */
}

.term-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%; /* Nueva línea */
}

.term-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(77, 171, 247, 0.1);
    padding: 0.5rem;
}

.term-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(1.1);
}

/* Iconos específicos por término */
.term-item:nth-child(2) .term-icon {
    background: rgba(108, 180, 63, 0.1);
}

.term-item:nth-child(3) .term-icon {
    background: rgba(255, 107, 107, 0.1);
}

.term-content {
    flex: 1;
}

.term-content h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--footer-text, #e6e6e6);
    font-weight: 600;
}

.term-content p {
    font-size: 0.9rem;
    color: var(--footer-text-light, #b0b0b0);
    line-height: 1.5;
    margin: 0;
}

.license-note {
    font-size: 0.9rem;
    color: var(--footer-text-light, #b0b0b0);
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link {
    color: var(--accent-color, #4dabf7);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--accent-color, #4dabf7);
}

.contact-link:hover {
    border-bottom-style: solid;
}

/* Información legal */
.footer-legal {
    width: 100%;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    color: var(--footer-text-light, #b0b0b0);
    margin-bottom: 0.5rem;
}

.rights {
    color: var(--footer-text, #e6e6e6);
    font-weight: 500;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--footer-text-light, #b0b0b0);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Enlaces institucionales */
.institutional-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.inst-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--footer-text-light, #b0b0b0);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.inst-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color, #4dabf7);
    transform: translateY(-1px);
}

.inst-link i {
    font-size: 0.9rem;
}

/* Modo claro */
[data-theme="light"] .footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
}

[data-theme="light"] .license-section {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .license-badge {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .license-img-svg {
    filter: brightness(0.95);
}

[data-theme="light"] .license-badge:hover .license-img-svg {
    filter: brightness(1);
}

[data-theme="light"] .license-terms {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .term-icon {
    background: rgba(0, 102, 204, 0.08);
}

[data-theme="light"] .term-item:nth-child(2) .term-icon {
    background: rgba(108, 180, 63, 0.08);
}

[data-theme="light"] .term-item:nth-child(3) .term-icon {
    background: rgba(255, 107, 107, 0.08);
}

[data-theme="light"] .inst-link {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

[data-theme="light"] .inst-link:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--accent-color, #0066cc);
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem;
    }
    
    .license-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .license-content {
        text-align: center;
    }
    
    .license-details {
        text-align: center;
    }
    
    .license-terms {
        grid-template-columns: 1fr;
    }
    
    .term-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .term-content {
        text-align: center;
    }
    
    .term-icon {
        margin: 0 auto 0.5rem;
    }
    
    .institutional-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .license-terms {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animaciones sutiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.license-section {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Variables */
:root {
    --footer-bg: #f8f9fa;
    --footer-bg-dark: #e9ecef;
    --footer-text: #333;
    --footer-text-light: #666;
    --accent-color: #0066cc;
    --accent-hover: #004d99;
}

[data-theme="dark"] {
    --footer-bg: #1a1a2e;
    --footer-bg-dark: #16213e;
    --footer-text: #e6e6e6;
    --footer-text-light: #b0b0b0;
    --accent-color: #4dabf7;
    --accent-hover: #339af0;
}