* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f6f9fc;
    color: #0A2F47;
    padding-top: 90px;
}

/* NAVBAR */
#navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 15.9%;
    background: #f6f9fc;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 14px rgba(10, 47, 71, 0.1);
    border-bottom: 1px solid rgba(10, 47, 71, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: transform 0.3s ease, background 0.3s ease;
}

.logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: #0A2F47;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #46B6CC;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #1F667A;
}

nav a:hover::after {
    width: 100%;
}

#navbar.hide {
    transform: translateY(-100%);
}

.auth-buttons a {
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(10, 47, 71, 0.1);
}

.login {
    background: transparent;
    color: #0A2F47;
    border: 1px solid #0A2F47;
}

.login:hover {
    background-color: #EDF2F7;
}

.register {
    background: linear-gradient(135deg, #1F667A, #46B6CC);
    color: white;
    border: none;
}

.register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 102, 122, 0.25);
}

/* -------------------------------------------------------------------------------------- */
.history-section {
    background-color: transparent;
    padding: 6% 15%;
}

.history-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.history-container h2 {
    font-size: 2.4rem;
    color: #0A2F47;
    margin-bottom: 1.5rem;
}

.history-container .intro {
    font-size: 1.1rem;
    color: #1F667A;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.history-container p {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .history-section {
        padding: 8% 8%;
    }

    .history-container h2 {
        font-size: 2rem;
    }

    .history-container p {
        font-size: 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-container {
    animation: fadeInUp 1s ease-out both;
}

.history-icon {
    width: 60px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* -------------------------------------------------------------------------------------- */
.mission-vision-values {
    padding: 6% 12%;
    text-align: center;
    background: #fff;
}

.mission-vision-values h2 {
    font-size: 2.2rem;
    color: #0A2F47;
    margin-bottom: 2rem;
}

.mvv-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.mvv-card {
    background: #f6f9fc;
    border-radius: 12px;
    padding: 2rem;
    max-width: 320px;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.mvv-card img {
    width: 48px;
    margin-bottom: 1rem;
}

.mvv-card h3 {
    color: #1F667A;
    margin-bottom: 0.8rem;
}

.mvv-card p,
.mvv-card ul {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.mvv-card ul {
    padding-left: 1rem;
    list-style-type: disc;
}

@media (max-width: 768px) {
    .mvv-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* -------------------------------------------------------------------------------------- */
.team-section {
    padding: 6% 17%;
    background-color: #f6f9fc;
    text-align: center;
}

.team-section h3 {
    font-size: 2.2rem;
    color: #0A2F47;
    margin-bottom: 2.5rem;
}

.team-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

.team-card {
    display: flex;
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    align-items: center;
}

.team-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    border: 3px solid #1F667A;
}

.team-info {
    text-align: left;
}

.team-info h4 {
    margin-bottom: 0.2rem;
    color: #0A2F47;
    font-size: 1.1rem;
}

.team-info p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: #444;
}

.team-socials {
    margin-top: 0.8rem;
}

.team-socials a {
    margin-right: 0.6rem;
    color: #1F667A;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.team-socials a:hover {
    color: #0A2F47;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        flex-direction: column;
        text-align: center;
    }

    .team-photo {
        margin: 0 0 1rem 0;
    }

    .team-info {
        text-align: center;
    }
}

/* -------------------------------------------------------------------------------------- */
.metodologia-flow {
    padding: 6% 10%;
    background: transparent;
    text-align: center;
    position: relative;
}

.metodologia-flow h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #0A2F47;
}

.metodologia-flow h2 span {
    background: linear-gradient(90deg, #1F667A, #46B6CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-metodologia {
    max-width: 720px;
    margin: 0 auto 3rem auto;
    font-size: 1.05rem;
    color: #4d687a;
    line-height: 1.7;
}

.flow-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    max-width: 500px;
    text-align: center;
}

.icon-circle {
    background: #0A2F47;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.flow-content h3 {
    font-size: 1.4rem;
    color: #1F667A;
    margin-bottom: 0.5rem;
}

.flow-content p {
    font-size: 0.95rem;
    color: #333;
}

.flow-line {
    width: 4px;
    height: 40px;
    background: linear-gradient(#1F667A, #46B6CC);
    border-radius: 2px;
}

.reglas-unicas-split {
    display: flex;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 4rem auto;
    max-width: 980px;
    align-items: stretch;
    flex-wrap: wrap;
}

.reglas-imagen {
    flex: 1 1 50%;
}

.reglas-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reglas-bloque {
    flex: 1 1 50%;
    padding: 2.5rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reglas-bloque h3 {
    color: #1F667A;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.reglas-bloque ul {
    list-style: none;
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reglas-bloque li {
    font-size: 1rem;
    color: #0A2F47;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.reglas-bloque .icon {
    color: #46B6CC;
    font-size: 1.2rem;
    margin-top: 2px;
}

.icon-circle {
    background: #0A2F47;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Por si el ícono se sale */
}

.icon-circle img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Asegura que el SVG blanco se vea bien sobre fondo oscuro */
}

/* Responsive */
@media (max-width: 768px) {
    .reglas-unicas-split {
        flex-direction: column;
    }
}

/* -------------------------------------------------------------------------------------- */
.site-footer {
    background: transparent;
    padding: 3rem 17%;
    font-family: 'Inter', sans-serif;
    color: #0A2F47;
    font-size: 0.95rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2rem;
}

.cta-question {
    flex: 1 1 300px;
}

.cta-question p {
    font-weight: 600;
    margin-bottom: 2rem;
    color: #0A2F47;
}

.cta-footer-btn {
    display: inline-block;
    background: #1F667A;
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-footer-btn:hover {
    background: #0A2F47;
}

.footer-columns {
    display: flex;
    flex: 2 1 600px;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-columns h4 {
    margin-bottom: 0.8rem;
    color: #1F667A;
    font-weight: bold;
}

.footer-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-columns li {
    margin-bottom: 0.4rem;
}

.footer-columns a {
    color: #0A2F47;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-columns a:hover {
    color: #1F667A;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #4d687a;
}

.by-efrain {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #4d687a;
}

.footer-author {
    color: #1F667A;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-author:hover {
    color: #0A2F47;
}

.cta-buttons a {
    margin-right: 1rem;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-primary {
    background-color: #0A2F47;
    color: white;
}

.cta-primary:hover {
    background-color: #143b54;
}