:root {
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --card-border: #dee2e6;
    --primary: #1e73be;
    --primary-hover: #155a96;
    --text-primary: #333333;
    --text-secondary: #555555;
    --success: #28a745;
    --danger: #dc3545;
    --navbar-bg: #2c456f;
    --navbar-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2% 1.5rem 5%;
    background: var(--navbar-bg);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navbar-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Slider Styles */
.slider-container {
    position: relative;
    max-width: 50%;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide.active {
    display: block;
}

.home-image {
    width: 100%;
    height: 100%;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
    border-color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    transition: all 0.3s ease;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
}

.nav-item:hover,
.nav-item.active {
    color: var(--navbar-text);
    background: rgba(255, 255, 255, 0.1);
}

/* Main Container */
.container {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.section.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.glass-card h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--navbar-bg);
}

.glass-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Buttons */
.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

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

/* Grid Layout for Workshops */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.icon-large {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Quiz Section */
.quiz-card {
    max-width: 600px;
    margin: 0 auto;
}

.question {
    font-size: 1.25rem !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

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

.option-btn {
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.option-btn:hover:not(:disabled) {
    background: #f1f5f9;
    transform: translateX(5px);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.option-btn.correct {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--success);
}

.option-btn.wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
}

#quiz-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background: var(--navbar-bg);
    color: var(--navbar-text);
    text-align: center;
    padding: 2rem 5%;
    margin-top: 4rem;
    font-size: 0.9rem;
    border-top: 4px solid var(--primary);
}

/* Consent Form Styling */
.consent-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.consent-card h2 {
    font-size: 1.5rem;
    color: var(--navbar-bg);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.consent-content h3 {
    margin-top: 1.5rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.consent-content p,
.consent-content li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.consent-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.declaration {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--card-border);
}

.signature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.sig-line {
    font-weight: 500;
}

/* Link Button */
.link-container {
    margin-top: 2rem;
    text-align: center;
}


/* Video Row Layout */
.video-row {
    display: flex !important;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.video-row .video-container {
    flex: 4 1 0;
    /* Forced 80% width ratio */
    min-width: 0;
}

.video-thumbnail-box {
    flex: 1 1 0;
    /* Forced 20% width ratio */
    min-width: 0;
}

.video-thumbnail-box img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: block;
}

.video-thumbnail-box img:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .video-row .video-thumbnail-box {
        display: none !important;
    }

    .video-row {
        display: block !important;
    }
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Test Pagination Styles */
.test-nav-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--navbar-bg);
    border: 1px solid var(--card-border);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.page-indicator {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 1rem 0;
    font-weight: 600;
}

/* Page 1 Specific Layout (Centered) */
.page-one .test-column:first-child {
    max-width: 800px;
    margin: 0 auto;
}

.page-one .results-column {
    display: none !important;
}

/* Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

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

.contact-info h2 {
    color: var(--navbar-bg);
    margin-bottom: 1rem;
}

.info-items {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.info-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.full-width {
    width: 100%;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.test-header h2 {
    color: var(--navbar-bg);
}

.test-dashboard {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .test-dashboard {
        grid-template-columns: 1fr;
    }
}

.test-column h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preguntas-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
    margin-bottom: 2rem;
}

/* Custom Scrollbar for Questions */
.preguntas-container::-webkit-scrollbar {
    width: 6px;
}

.preguntas-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.preguntas-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.test-pregunta {
    padding: 1.25rem 0;
    border-bottom: 1px solid #eee;
}

.test-pregunta:last-child {
    border-bottom: none;
}

.pregunta-texto {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.test-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.test-opciones {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.test-opcion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.test-opcion:hover {
    border-color: var(--primary);
    background: #f8fbff;
}

.test-opcion input {
    accent-color: var(--primary);
    cursor: pointer;
}

.test-actions {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

#mensaje-estado {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

#mensaje-estado.error {
    color: var(--danger);
}

#mensaje-estado.ok {
    color: var(--success);
}

/* Results Styles */
.results-column {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    position: sticky;
    top: 120px;
}

.results-intro {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.results-table th {
    text-align: left;
    padding: 0.5rem;
    color: var(--text-secondary);
    border-bottom: 2px solid #eee;
}

.results-table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f5f5f5;
}

.area-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-summary {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.top-areas-list {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.top-areas-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.top-areas-list li::before {
    content: "📍";
    margin-right: 0.5rem;
}