/* =================================================================== */
/* ==================== ESTILOS GLOBALES Y VARIABLES ================= */
/* =================================================================== */

:root {
    /* Colores */
    --primary-color: #f7931e;
    --secondary-color: #030009;
    --dark-blue: #0d2c4b;
    --primary-orange: #f0ad4e;

    /* Texto */
    --text-color-dark: #333;
    --text-color-light: #666;
    --text-color-white: #ffffff;

    /* Fondos y Bordes */
    --background-light-gray: #f7f7f7;
    --section-bg: #f7f8fa;
    --border-color: #ddd;

    /* Otros */
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--section-bg);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--text-color-dark);
    line-height: 1.2;
}

h1 { font-size: 3em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.3em; }

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #e0801c;
    border-color: #e0801c;
}

.section-subtitle {
    font-size: 0.9em;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}

/* ==================== HEADER STYLES ==================== */
.main-header {
    background-color: var(--secondary-color);
    color: var(--text-color-white);
    padding: 10px 0;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.social-icons a {
    color: var(--text-color-white);
    margin-left: 15px;
    font-size: 1.1em;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-nav .logo img {
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-color-white);
    font-weight: bold;
    font-size: 1em;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ==================== BANNER PRINCIPAL ==================== */
.cta-banner {
    background-image: linear-gradient(rgba(45, 25, 0, 0.7), rgba(45, 25, 0, 0.7)), url('../Img/ciudad-inteligente-futurista-con-tecnologia-de-red-global-5g.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem;
    text-align: center;
    color: white;
}

.cta-banner h1 { /* Cambiado a h1 por semántica */
    font-family: 'Kalam', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    margin: 0;
    color: var(--text-color-white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

/* ==================== ENCABEZADO DE SECCIÓN ==================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.section-header h2 {
    font-family: 'Kalam', cursive;
    color: #d35400;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
}

.section-header p {
    font-family: 'Roboto', sans-serif;
    color: #333;
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0;
}

/* ==================== FORMULARIO DONACIONES ==================== */
.donation-container {
    display: flex;
    gap: 4rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 20px;
    align-items: flex-start;
}

.donation-container .info-column {
    flex: 1;
    padding-top: 1rem;
}
.donation-container .info-column .subtitle {
    color: var(--primary-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.donation-container .info-column h2 { /* Cambiado a h2 por semántica */
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
}
.donation-container .info-column p {
    color: var(--text-color-light); /* Corregido: --text-color-light en lugar de --light-text */
    line-height: 1.6;
    margin-bottom: 2rem;
}
.donation-container .info-column .btn-main {
    background-color: var(--primary-orange);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
}

.donation-container .form-column {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}
.donation-container .form-column h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}
.donation-container .form-column .description {
    color: var(--text-color-light); /* Corregido */
    line-height: 1.5;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.segmented-control, .amount-options {
    display: flex;
    gap: 0.5rem;
}
.segmented-control input[type="radio"],
.amount-options input[type="radio"] {
    display: none;
}
.segmented-control label, .amount-options label {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.segmented-control input:checked + label,
.amount-options input:checked + label {
    background-color: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}
.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.custom-amount-input, .project-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}
.custom-amount-input {
    text-align: center;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}

.security-info {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-color-light); /* Corregido */
    margin-top: 1rem;
}

/* ==================== SECCIÓN DONA EN ESPECIE ==================== */
.in-kind-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
    align-items: start;
}

.donation-card {
    background-color: var(--dark-blue);
    color: white;
    padding: 2.5rem;
}

.donation-card .card-icon {
    height: 60px;
    margin-bottom: 1.5rem;
}

.donation-card h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    color: var(--text-color-white); /* Regla de color aplicada específicamente aquí */
}

.donation-card ul {
    padding-left: 1.2rem;
    margin: 0;
}

.donation-card li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.donation-card li::marker {
    color: var(--primary-orange);
    font-size: 1.2em;
}

.in-kind-section .text-column .subtitle {
    color: var(--primary-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.in-kind-section .text-column h2 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.3;
}

.in-kind-section .text-column p {
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color-light);
}

.in-kind-section .text-column .btn {
    background-color: var(--primary-orange);
    color: var(--text-color-dark);
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: inline-block;
}

/* ==================== SECCIÓN VOLUNTARIADO ==================== */
.volunteer-section {
    background-color: var(--section-bg);
    padding: 4rem 2rem;
}

.volunteer-container {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.volunteer-container .info-column {
    flex: 1;
}
.volunteer-container .info-column .subtitle {
    color: var(--primary-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.volunteer-container .info-column h2 { /* Cambiado a h2 por semántica */
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0.5rem 0 1rem 0;
    color: var(--text-color-dark);
}
.volunteer-container .info-column .description {
    color: var(--text-color-light); /* Corregido */
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.info-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.info-block img {
    height: 60px;
    margin-top: 5px;
}
.info-block p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color-light); /* Corregido */
}

.volunteer-container .form-column {
    flex: 1;
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.volunteer-container .form-column .subtitle {
    font-weight: 700;
    color: var(--text-color-dark);
}
.volunteer-container .form-column .description {
    color: var(--text-color-light); /* Corregido */
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.volunteer-container .form-group {
    margin-bottom: 1.25rem;
}
.volunteer-container .form-group input,
.volunteer-container .form-group select,
.volunteer-container .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}
/* Estilos para los labels añadidos en el HTML */
.volunteer-container .form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}
.volunteer-container .form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.volunteer-container .form-group.checkbox-group {
    font-size: 0.9rem;
    color: var(--text-color-light); /* Corregido */
}
.volunteer-container .form-group.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400; /* Peso normal para labels de checkbox */
}
.volunteer-container .form-group.checkbox-group input {
    margin-top: 0;
    width: auto; /* Ancho automático para checkbox */
}

.volunteer-container .submit-btn {
    width: 100%;
    background-color: var(--dark-blue);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}

/* ==================== FOOTER STYLES ==================== */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--text-color-white);
    padding: 50px 0;
}

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

.footer-col h4 {
    color: var(--text-color-white);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ffffff;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-logo-col img {
    height: 80px;
    margin-bottom: 15px;
}

.footer-logo-col p {
    font-size: 0.9em;
    color: #ccc;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-size: 0.9em;
    background-color: #fff;
    color: #333;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--text-color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #e0801c;
}


/* =================================================================== */
/* ==================== DISEÑO RESPONSIVO Y MENÚ MÓVIL ================ */
/* =================================================================== */

/* Ocultar el menú de hamburguesa en pantallas grandes */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color-white);
    transition: all 0.3s ease-in-out;
}


/* --- Breakpoint Principal para Tablets y Móviles (992px y menos) --- */
@media (max-width: 992px) {
    
    /* ----- 1. NAVEGACIÓN Y MENÚ HAMBURGUESA ----- */
    
    /* MÓVIL: Ocultar la barra superior con iconos de redes sociales */
    .header-top {
        display: none;
    }

    /* MÓVIL: Ocultar el botón "Donar" del escritorio */
    .desktop-only-donate {
        display: none;
    }
    
    .main-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--secondary-color);
        position: absolute;
        top: 80px; /* Ajusta esta altura según tu header */
        left: 0;
        padding: 1rem 0;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ----- 2. AJUSTES GENERALES DE SECCIONES ----- */

    .donation-container,
    .volunteer-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .in-kind-section {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        text-align: center;
    }

    .newsletter-form {
        justify-content: center;
    }

    /* Ajuste de la tipografía */
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    .donation-container .info-column h2,
    .volunteer-container .info-column h2 { font-size: 2.2em; }
}


/* --- Breakpoint para Móviles Pequeños (576px y menos) --- */
@media (max-width: 576px) {
    
    body {
        padding: 0;
    }

    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .cta-banner h1 { font-size: 2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 1.1rem; }

    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .volunteer-section, .donation-container .form-column {
        padding: 2rem 1.5rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input, .newsletter-form button {
        border-radius: 5px;
        margin-bottom: 10px;
        width: 100%;
    }
}