/* ===============================
   VARIABLES
================================= */
:root {
    --dark: #243444;
    --green: #6a8f1f;
    --gray: #6b7a88;
    --light-bg: #f8fafc;
    --border: #e5e7eb;
}

/* ===============================
   RESET
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    color: var(--dark);
    background: white;
    line-height: 1.6;
    scroll-behavior: smooth;
}

section {
    padding: 100px 10%;
}

h1,
h2,
h3 {
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

p {
    color: var(--gray);
}

/* ===============================
   HEADER
================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 10%;
    border-bottom: 1px solid var(--border);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark);
    letter-spacing: -0.3px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--gray);
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--dark);
}

/* ===============================
   BUTTONS
================================= */
.btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-dark {
    background: var(--dark);
    color: white;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Agenda buttons */
.agenda-item button {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    color: var(--dark);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.25s ease;
    white-space: nowrap;
}

.agenda-item button:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    transform: translateY(-1px);
}

/* ===============================
   HERO
================================= */
.hero {
    text-align: center;
    background: linear-gradient(160deg, #f0f4e8 0%, #f8fafc 60%);
    padding: 130px 10%;
}

.hero h1 {
    font-size: 58px;
    max-width: 900px;
    margin: auto;
    letter-spacing: -1px;
    line-height: 1.15;
}

.hero span {
    color: var(--green);
}

.hero p {
    margin-top: 25px;
    font-size: 18px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 36px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: #e8f0df;
    color: var(--green);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

/* ===============================
   GRID SYSTEM
================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

/* ===============================
   CARDS
================================= */
.program-card {
    border: 1px solid var(--border);
    padding: 32px 28px;
    border-radius: 16px;
    background: white;
    transition: 0.35s ease;
    overflow: hidden;
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
    border-color: transparent;
}

.card-accent {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.card-accent-1 { background: var(--green); }
.card-accent-2 { background: #4a90e2; }
.card-accent-3 { background: #e07b3f; }
.card-accent-4 { background: #7c4dff; }

/* ===============================
   ECOSYSTEM (SOLAR SYSTEM)
================================= */
.ecosystem {
    background: var(--light-bg);
    text-align: center;
}

.solar-system {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 70px auto 0;
}

/* SUN */
.sun {
    width: 110px;
    height: 110px;
    background: var(--green);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(106, 143, 31, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sunPulse 3s ease-in-out infinite;
    transition: box-shadow 0.3s;
    z-index: 10;
}

.sun:hover {
    box-shadow: 0 0 70px rgba(106, 143, 31, 0.7);
}

.sun-label {
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    user-select: none;
    pointer-events: none;
}

@keyframes sunPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(106, 143, 31, 0.4); }
    50%       { box-shadow: 0 0 60px rgba(106, 143, 31, 0.65); }
}

/* ORBITS */
.orbit {
    position: absolute;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation: rotate 12s linear infinite;
}

.orbit-2 {
    width: 300px;
    height: 300px;
    animation: rotate 20s linear infinite reverse;
}

.orbit-3 {
    width: 380px;
    height: 380px;
    animation: rotate 28s linear infinite;
}

/* PLANETS */
.planet {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    pointer-events: all;
}

.planet:hover {
    transform: translateX(-50%) scale(1.25);
}

.planet-blue   { background: #4a90e2; box-shadow: 0 4px 16px rgba(74, 144, 226, 0.4); }
.planet-orange { background: #e07b3f; box-shadow: 0 4px 16px rgba(224, 123, 63, 0.4); }
.planet-purple { background: #7c4dff; box-shadow: 0 4px 16px rgba(124, 77, 255, 0.4); }

.planet-blue:hover   { box-shadow: 0 6px 24px rgba(74, 144, 226, 0.6); }
.planet-orange:hover { box-shadow: 0 6px 24px rgba(224, 123, 63, 0.6); }
.planet-purple:hover { box-shadow: 0 6px 24px rgba(124, 77, 255, 0.6); }

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ECO INFO PANEL */
.eco-info {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 480px;
    margin: 30px auto 0;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    text-align: left;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 86px;
}

.eco-info.active {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.eco-info-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s ease;
}

.eco-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.eco-info p {
    font-size: 13px;
    line-height: 1.5;
}

/* ===============================
   AGENDA
================================= */
.agenda {
    background: white;
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.agenda-header h2 {
    text-align: left;
    margin-bottom: 6px;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.agenda-item {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    gap: 28px;
    transition: background 0.2s;
}

.agenda-item:first-child {
    border-top: 1px solid var(--border);
}

.agenda-item:hover {
    background: var(--light-bg);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 12px;
    border-color: transparent;
}

.agenda-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 10px 8px;
    min-width: 56px;
}

.agenda-day {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.agenda-month {
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.agenda-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agenda-tags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.event-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-format {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
}

.format-presencial {
    background: #e8f0df;
    color: var(--green);
}

.format-hibrido {
    background: #e8f0fb;
    color: #4a90e2;
}

.format-online {
    background: #f3eeff;
    color: #7c4dff;
}

.agenda-info strong {
    font-size: 16px;
    color: var(--dark);
}

.agenda-info p {
    font-size: 13px;
    color: var(--gray);
}

.btn-agenda {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.btn-agenda:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ===============================
   FORM / JOIN
================================= */
.join {
    background: var(--dark);
    color: white;
}

.join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Left info column */
.join-info .badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.join-info h2 {
    text-align: left;
    color: white;
    font-size: 32px;
    margin-bottom: 14px;
}

.join-info > p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 36px;
}

.join-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.join-benefits li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.benefit-icon {
    color: var(--green);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.join-benefits strong {
    display: block;
    color: white;
    font-size: 15px;
    margin-bottom: 3px;
}

.join-benefits p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Right form */
.join-form-wrap {
    background: white;
    border-radius: 20px;
    padding: 40px;
}

.join-form-wrap h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--dark);
}

.join-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.req {
    color: var(--green);
}

input,
select {
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--light-bg);
    transition: border-color 0.25s, background 0.25s;
    color: var(--dark);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--green);
    background: white;
    box-shadow: 0 0 0 3px rgba(106, 143, 31, 0.08);
}

.btn-full {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 6px;
}

.join-form-wrap small {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
}

/* ===============================
   FOOTER
================================= */
footer {
    background: #111;
    color: white;
    padding: 70px 10%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

footer h3,
footer h4 {
    margin-bottom: 15px;
}

footer p {
    color: #bbb;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.25s;
}

footer p:hover {
    color: white;
    cursor: pointer;
}

footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.25s;
}

footer a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    color: #555;
    font-size: 13px;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 900px) {
    .solar-system {
        width: 300px;
        height: 300px;
    }

    .orbit-1 { width: 150px; height: 150px; }
    .orbit-2 { width: 220px; height: 220px; }
    .orbit-3 { width: 280px; height: 280px; }

    .sun {
        width: 80px;
        height: 80px;
    }

    .sun-label {
        font-size: 9px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    .eco-info {
        margin: 20px 10%;
    }

    .agenda-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .agenda-item {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
    }

    .agenda-item .btn-agenda {
        grid-column: 2;
        width: fit-content;
    }

    .join-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .join-form-wrap {
        padding: 28px 20px;
    }
}
