/* --- VARIABLES Y BASE --- */
:root {
    --greenhat-main: #28a745; 
    --green-light: #e9f7ef;
    --text-dark: #2c3e50;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

/* --- FONDO OPTIMIZADO (Sin errores de consola) --- */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(40, 167, 69, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(40, 167, 69, 0.05) 0%, transparent 40%);
    background-color: #f8fafc;
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
header.header {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.logo {
    height: 60px;
    display: block;
}

/* --- LAYOUT PRINCIPAL --- */
.main-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- COLUMNA IZQUIERDA --- */
h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.highlight {
    color: var(--greenhat-main);
}

.instruction-text {
    background: var(--green-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--greenhat-main);
    font-size: 1rem;
    margin-bottom: 25px;
}


.main-banner {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    height: auto; /* Cambiamos de 300px a auto */
}

.main-banner img {
    width: 100%;
    height: auto; /* Que la altura la defina la propia imagen */
    display: block;
}

/* --- FORMULARIO --- */
.form-section {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group.full {
    grid-column: span 2;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--greenhat-main);
    outline: none;
}

.btn-primary {
    background: var(--greenhat-main);
    color: var(--white);
    border: none;
    padding: 18px 30px;
    border-radius: 10px;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* --- SIDEBAR (DERECHA) --- */
.instructor-box {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border-bottom: 5px solid var(--greenhat-main);
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--green-light);
    margin: 0 auto 15px;
    overflow: hidden;
    background: #eee;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--greenhat-main);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* --- AGENDA ESTILO GREENHAT --- */
.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.green-bar {
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: var(--greenhat-main);
    margin-right: 10px;
    vertical-align: bottom;
    border-radius: 2px;
}

.agenda-list {
    margin-top: 25px;
}

.agenda-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
}

/* Línea conectora gris entre números */
.agenda-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 40px;
    width: 1px;
    height: 35px;
    background-color: #e0e0e0;
}

.agenda-number {
    width: 35px;
    height: 35px;
    background-color: var(--greenhat-main);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 1;
}

.agenda-info h5 {
    margin: 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.3;
}

.agenda-info p {
    margin: 5px 0 0;
    font-size: 0.85rem;
    color: #666;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* --- RESPONSIVO --- */
@media (max-width: 850px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .input-group.full {
        grid-column: span 1;
    }
    h1 {
        font-size: 1.8rem;
    }
}