:root {
    --primary: #182E4D;
    --secondary: #B5191A;
    --accent: #6ec1e4;
    --light: #f7fafc;
    --dark: #1a202c;
    --text: #2d3748;
    --text-light: #718096;
    --gray: #A6A6A6;
    --success: #48bb78;
    --warning: #ed8936;
    --error: #f56565;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
	justify-content: center;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
    transition: var(--transition);
}

.nav-link.active {
    background: var(--accent) !important;
    color: white !important;
    transform: translateX(5px);
    font-weight: 600;
	justify-content: end;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-content {
    display: flex;
    align-items: center;
    position: relative; /* Necesario para centrado absoluto */
}

/* Logo a la izquierda (ocupa espacio pero no empuja el centro) */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container > div {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}


.logo-img {
    height: 50px;
    width: auto;
	margin-left: 110px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.logo-subtext {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    display: block;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-header {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-header2 {
    background: rgb(231, 153, 20);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-header:hover {
    background: white;
	color: var(--primary);
}

.btn-header2:hover {
    background: black;

}

.btn-text {
    display: inline;
}

/* Menú Mobile */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu {
    display: none;
    background: var(--primary);
    width: 100%;
    padding: 15px;
    box-shadow: var(--shadow);
    position: fixed;
    top: 90px;
    left: 0;
    z-index: 999;
}

.nav-menu-mobile {
    list-style: none;
}

.nav-menu-mobile .nav-link {
    display: flex;
	justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.2rem;
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.1);
}

.nav-menu-mobile .nav-link:hover {
    background: var(--accent);
}

/* Main Layout */
.main-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 20px 15px;
}
/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    align-self: start;
    padding-right: 10px;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.nav-menu {
    list-style: none;
    margin-bottom: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.2rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 0.5rem;
    font-weight: 500;
    background: rgba(110, 193, 228, 0.1);
}

.nav-link:hover, .nav-link.active {
    background: var(--accent);
    color: white;
    transform: translateX(5px);
}

.nav-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.help-box {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.help-box h3 {
    margin-top: 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
	justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.help-box p {
    margin: 0.8rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
	text-align: center;
}

.btn-help  {
    width: 100%;
    padding: 0.8rem;
    background: rgb(231, 153, 20);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 130, 0.3);
}

/* Content */
.content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.section-header h2 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--accent);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 600;
}

.section-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background-color: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: white;
    color: var(--primary);
}

.image-container {
    padding: 1.5rem;
    position: relative;
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.zoomable {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    cursor: zoom-in;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.zoomable:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.instructions ol {
    counter-reset: step-counter;
    padding-left: 2rem;
    list-style: none;
}

.instructions li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 3rem;
    line-height: 1.6;
    counter-increment: step-counter;
}

.instructions li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #E79914;
    color: white;
    border: 2px solid #a8b8cf;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* FAQ Styles */
.faq-container {
    padding: 1.5rem 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(110, 193, 228, 0.1);
    border: none;
    text-align: left;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(110, 193, 228, 0.2);
}

.faq-question.active {
    background: var(--accent);
    color: white;
}

.faq-question i {
    transition: var(--transition);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.faq-answer p {
    padding: 1rem 1.5rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-question.active + .faq-answer {
    max-height: 500px;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
}

.footer-logo-text {
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
  
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    padding: 2rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.3s;
    border-radius: var(--radius);
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent);
    background: rgba(0,0,0,0.5);
}

.modal-caption {
    text-align: center;
    color: white;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(26, 54, 93, 0.3);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    border: none;
}

.fab:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 170px;
    right: 35px;
    background: var(--light);
    color: var(--text);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    border: none;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Dark Mode Styles */
body.dark-mode {
    --primary: #1a365d;
    --secondary: #b5191a;
    --accent: #6ec1e4;
    --light: #1a202c;
    --dark: #2d3748;
    --text: #f7fafc;
    --text-light: #a0aec0;
    --gray: #4a5568;
    background-color: #1a202c;
}

body.dark-mode .section-card,
body.dark-mode .help-box,
body.dark-mode .faq-item,
body.dark-mode .faq-answer {
    background: #2d3748;
    border-color: rgba(255,255,255,0.05);
}

body.dark-mode .nav-link {
    background: rgba(110, 193, 228, 0.15);
}

body.dark-mode .faq-question {
    background: rgba(110, 193, 228, 0.1);
    color: var(--text);
}

body.dark-mode .faq-question:hover {
    background: rgba(110, 193, 228, 0.2);
}

body.dark-mode .faq-question.active {
    background: var(--accent);
    color: white;
}

body.dark-mode .instructions li::before {
    background: var(--accent);
}


/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
}


@media (max-width: 992px) {

    .mobile-menu-toggle {
        display: block;
    }
    
    .header-actions {
        display: none;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu.active {
        display: block;
        top: 82px;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        padding-top: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
	
	.main-header {
    padding: 0.45rem 0;
	}

    .header-content {
        padding: 10px 0;
    }
    
    .logo-container {
        flex-direction: row;
        align-items: center;
    }
    
    .logo-img {
        height: 40px;
		margin-left: 20px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-subtext {
        font-size: 0.7rem;
    }
    
    .section-header {
		display: flex;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .fab, .dark-mode-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .fab {
        bottom: 20px;
        right: 20px;
    }
    
    .dark-mode-toggle {
        bottom: 80px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
		padding-top: 10px;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .image-container, .faq-container {
        padding: 1rem;
    }
    
    .instructions {
        padding: 0 1rem 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.section-card:nth-child(1) { animation-delay: 0.1s; }
.section-card:nth-child(2) { animation-delay: 0.2s; }
.section-card:nth-child(3) { animation-delay: 0.3s; }
.section-card:nth-child(4) { animation-delay: 0.4s; }
.section-card:nth-child(5) { animation-delay: 0.5s; }
.section-card:nth-child(6) { animation-delay: 0.6s; }
.section-card:nth-child(7) { animation-delay: 0.7s; }