/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --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);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-brand h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.content-text p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

.content-text h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

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

.content-text li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.content-image {
    position: sticky;
    top: 100px;
}

.content-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Steps Container */
.steps-container {
    display: grid;
    gap: 2rem;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.step-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.step-details {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.step-details strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.75rem;
}

.step-details ul {
    margin-left: 1.5rem;
}

.step-details li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Architecture Section */
.architecture-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.architecture-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.architecture-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.architecture-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.architecture-card > p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.architecture-benefits,
.architecture-use-cases {
    margin-top: 1.5rem;
}

.architecture-benefits strong,
.architecture-use-cases strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.75rem;
}

.architecture-benefits ul {
    margin-left: 1.5rem;
}

.architecture-benefits li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.architecture-use-cases {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.architecture-image-section {
    margin-top: 4rem;
    text-align: center;
}

.architecture-image-section img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Stack Section */
.stack-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.stack-grid {
    display: grid;
    gap: 2.5rem;
}

.stack-category {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.stack-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
}

.tech-list {
    display: grid;
    gap: 1.5rem;
}

.tech-item {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background-color: #f0fdf4;
    transform: translateX(5px);
}

.tech-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tech-item p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.stack-image-section {
    margin-top: 4rem;
    text-align: center;
}

.stack-image-section img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Lifecycle Section */
.lifecycle-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.lifecycle-phases {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.lifecycle-phase {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.lifecycle-phase:hover {
    box-shadow: var(--shadow-xl);
}

.phase-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phase-icon {
    font-size: 2.5rem;
}

.phase-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}

.phase-content {
    padding: 2rem;
}

.phase-content > p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.phase-activities,
.phase-deliverables {
    margin-top: 1.5rem;
}

.phase-activities strong,
.phase-deliverables strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.phase-activities ul {
    margin-left: 1.5rem;
}

.phase-activities li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.phase-deliverables {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.lifecycle-diagram {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.lifecycle-diagram h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lifecycle-diagram > p {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.05rem;
}

.devops-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.principle-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.principle-card:hover {
    background-color: #eff6ff;
    transform: translateY(-5px);
}

.principle-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.principle-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Quiz Section */
.quiz-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
}

.quiz-question h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.question-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.6;
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
    transform: translateX(5px);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.quiz-option.correct {
    border-color: var(--success-color);
    background-color: #f0fdf4;
}

.quiz-option.incorrect {
    border-color: var(--error-color);
    background-color: #fef2f2;
}

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

.quiz-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.quiz-feedback.show {
    display: block;
}

.quiz-feedback.correct {
    background-color: #f0fdf4;
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.quiz-feedback.incorrect {
    background-color: #fef2f2;
    color: var(--error-color);
    border: 2px solid var(--error-color);
}

.quiz-controls {
    max-width: 800px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.quiz-results {
    text-align: center;
}

.quiz-results h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.results-content {
    padding: 2rem;
}

.score-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.score-number {
    color: var(--primary-color);
}

.score-total {
    color: var(--text-light);
    font-size: 2.5rem;
}

#results-message {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-image {
        position: static;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .architecture-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .quiz-container {
        padding: 2rem 1.5rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .score-display {
        font-size: 3rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: white;
}

