/* Reseteo y Fuentes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
}

/* =========================================
   PANTALLA DE LOGIN / CONTRASEÑA 
========================================= */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e1e1e, #3a3a3a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #b084e9; /* Tono violeta de MIDEC */
}

.login-subtitle {
    margin-bottom: 2rem;
    color: #666;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

.input-group input:focus {
    border-color: #8ce196;
}

.btn-ingresar {
    padding: 12px 25px;
    background-color: #8ce196;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-ingresar:hover {
    background-color: #50b86a;
    color: white;
}

.error-text {
    color: #ff4d4d;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 20px;
}

/* =========================================
   ESTILOS PRINCIPALES (BASADOS EN LA IMAGEN)
========================================= */
#main-content {
    transition: opacity 0.5s ease;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    background: #000;
    color: #fff;
    padding: 10px 15px;
    font-size: 1.2rem;
    line-height: 1.1;
    text-align: center;
}

.navbar a {
    text-decoration: none;
    color: #333;
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    display: flex;
    max-width: 1000px;
    margin: 40px auto;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.2rem;
}

.hero-video {
    flex: 1;
}

.video-placeholder {
    width: 100%;
    height: 250px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
    border-radius: 10px;
}

/* Tarjetas (Cards) */
.card {
    border-radius: 30px;
    padding: 3rem;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-purple {
    background-color: #b38df0;
    color: white;
}

.card-light-green {
    background-color: #8ae49f;
    color: white;
}

.card-green {
    background-color: #6ed685;
    color: white;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-dark-green {
    background-color: #4db364;
    color: white;
    flex: 1.5;
}

.card-blue {
    background-color: #c4e9ff;
    color: #000;
}

.card-orange {
    background: linear-gradient(to right, #ff8c2b, #ff7019);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
}

/* Recorrido Urbano Layouts */
.urban-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    text-align: left;
}

.urban-grid h3 { font-size: 2rem; margin-bottom: 10px; }

.checklist { list-style: none; }
.checklist li { margin-bottom: 10px; font-size: 1.2rem; }

.checklist-small { list-style: none; }
.checklist-small li { margin-bottom: 8px; font-size: 1rem; }

.split-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.split-cards h3 { font-size: 1.8rem; }

/* Mapa y Portal CTA */
.map-placeholder {
    background-color: #e5e5e5;
    height: 300px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-bottom: 40px;
}

.portal-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.green-text {
    color: #4db364;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.btn-green {
    background-color: #3b8e4b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.pin-placeholder {
    background-color: #8e4f4f;
    color: white;
    width: 200px;
    height: 250px;
    border-radius: 100px 100px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
}

/* Donar */
.donar-text p {
    font-size: 1.3rem;
}

.btn-green-donar {
    background-color: #2fb563;
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

/* Footer */
.footer {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 2rem 20px;
}

.footer-contact {
    text-align: center;
    margin-bottom: 40px;
}

.footer-contact h2 { font-size: 2rem; margin-bottom: 10px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.footer-small {
    font-size: 0.8rem;
    color: #666;
    max-width: 250px;
}

.footer-logo {
    background: #000;
    color: #fff;
    padding: 10px 15px;
    font-size: 1.5rem;
    line-height: 1;
}

/* Responsividad básica */
@media (max-width: 768px) {
    .hero, .urban-grid, .split-cards, .portal-cta {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    .header { flex-direction: column; gap: 15px; }
    .navbar a { margin: 0 10px; display: inline-block; }
    .card-orange { flex-direction: column; text-align: center; gap: 20px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 20px; }
}