.tech-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.8rem 2.5rem;
    background: #ffffffee;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(49, 70, 98, 0.18);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    animation: fadeIn 0.7s ease-out;
}

.tech-main-title {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 1.8rem;
    letter-spacing: 0.015em;
}

.mestizaje-text {
    color: var(--red);
    font-weight: 900;
}

.tech-section {
    margin-bottom: 2.8rem;
    padding: 1.8rem 1.4rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(49, 70, 98, 0.10);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    animation: fadeUp 0.7s ease both;
    opacity: 0;
    transition: transform 0.3s ease;
}

.tech-section:hover {
    transform: translateY(-4px);
}

.tech-section:nth-child(2) { animation-delay: 0.1s; }
.tech-section:nth-child(3) { animation-delay: 0.2s; }
.tech-section:nth-child(4) { animation-delay: 0.3s; }
.tech-section:nth-child(5) { animation-delay: 0.4s; }
.tech-section:nth-child(6) { animation-delay: 0.5s; }
.tech-section:nth-child(7) { animation-delay: 0.6s; }
.tech-section:nth-child(8) { animation-delay: 0.7s; }
.tech-section:nth-child(9) { animation-delay: 0.8s; }
.tech-section:nth-child(10) { animation-delay: 0.9s; }
.tech-section:nth-child(11) { animation-delay: 1.0s; }
.tech-section:nth-child(12) { animation-delay: 1.1s; }

.tech-section h2 {
    font-size: 1.65rem;
    color: var(--red);
    margin-bottom: 0.9rem;
    padding-left: 10px;
    border-left: 5px solid var(--yellow);
    letter-spacing: 0.01em;
    transition: 0.3s ease;
}

.tech-section:hover h2 {
    color: var(--yellow);
    transform: translateX(3px);
}

.tech-section p {
    line-height: 1.65;
    font-size: 1rem;
    color: var(--text);
}

/* Dark mode overrides for Technology page */
body.dark-mode .tech-container {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
body.dark-mode .tech-section {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
body.dark-mode .tech-section p,
body.dark-mode .tech-section ul li {
    color: var(--text);
}
body.dark-mode .tech-main-title {
    color: var(--text);
}

.tech-section ul {
    margin-left: 1.2rem;
    margin-top: 0.7rem;
    line-height: 1.6;
    padding-left: 0.3rem;
}

.tech-section ul li {
    margin-bottom: 0.45rem;
}

.svg-box {
    width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.2rem;
    padding: 0.5rem;
    background: none;
    border: none;
    box-shadow: none;
    transition: 0.3s ease;
}

.svg-box:hover {
    transform: translateY(-3px);
}

.svg-box img {
    max-width: 38%;
    max-height: 38%;
    object-fit: contain;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.15));
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tech-section {
    opacity: 0;
    transform: translateY(24px);
}

.tech-section.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
