/* styles/proposals.css */
/* estilos para la sección de propuestas - VERSIÓN HORIZONTAL */

#proposalsSection {
    min-height: calc(100vh - 200px); /* altura casi completa de la pantalla */
    display: flex;
    align-items: center; /* centra verticalmente */
}

#proposalsSection .container {
    width: 100%;
    padding: 20px;
}

/* cuadro principal que envuelve todo */
.proposals-main-card {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 30px 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* header más compacto */
.proposals-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.2);
}

.proposals-header i {
    font-size: 2.5rem;
    color: #4ecdc4;
    margin-bottom: 5px;
    display: inline-block;
    background: rgba(78, 205, 196, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.proposals-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.proposals-header p {
    font-size: 1rem;
    color: #5a6b7a;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* distribución horizontal del contenido */
.proposals-content-horizontal {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-top: 10px;
}

/* columna izquierda - texto descriptivo */
.proposals-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
    border-right: 2px solid rgba(78, 205, 196, 0.2);
}

.proposals-info-icon {
    text-align: center;
    margin-bottom: 15px;
}

.proposals-info-icon i {
    font-size: 3rem;
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.proposals-info-column h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.proposals-info-column p {
    color: #5a6b7a;
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 15px;
}

.proposals-features {
    list-style: none;
    padding: 0;
}

.proposals-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-size: 0.9rem;
}

.proposals-features li i {
    color: #4ecdc4;
    font-size: 1rem;
    width: 20px;
}

/* columna derecha - formulario */
.proposals-form-column {
    flex: 1.5;
}

/* cuadro blanco para el formulario */
.proposals-card-centered {
    background: white;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.2);
    height: 100%;
}

.proposals-card-header {
    text-align: center;
    margin-bottom: 15px;
}

.proposals-card-header i {
    font-size: 2rem;
    color: #4ecdc4;
    margin-bottom: 5px;
}

.proposals-card-header h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.proposals-card-description {
    text-align: center;
    font-size: 0.9rem;
    color: #5a6b7a;
    line-height: 1.4;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* formulario de propuestas */
.proposal-form-container {
    max-width: 100%;
}

/* ===== SELECT PERSONALIZADO CON ANIMACIÓN ===== */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-group label i {
    margin-right: 8px;
    color: #4ecdc4;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* contenedor del select personalizado */
.custom-select-container {
    position: relative;
    width: 100%;
}

/* select personalizado (el que se ve) */
.custom-select-display {
    width: 100%;
    padding: 12px 18px;
    font-size: 1rem;
    border: 2px solid #e0e7ff;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 10;
}

.custom-select-display:hover {
    border-color: #4ecdc4;
    background-color: #f8faff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.15);
}

.custom-select-display.active {
    border-color: #4ecdc4;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.custom-select-display i {
    color: #4ecdc4;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.custom-select-display.active i {
    transform: rotate(180deg);
}

/* opciones desplegables */
.custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid #4ecdc4;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-options.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* cada opción */
.custom-select-option {
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c3e50;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: optionPop 0.2s ease forwards;
    opacity: 0;
}

.custom-select-option:nth-child(1) { animation-delay: 0.05s; }
.custom-select-option:nth-child(2) { animation-delay: 0.1s; }
.custom-select-option:nth-child(3) { animation-delay: 0.15s; }

.custom-select-option:hover {
    background: #4ecdc4;
    color: white;
    padding-left: 25px;
}

.custom-select-option.selected {
    background: #4ecdc4;
    color: white;
    font-weight: 600;
}

.custom-select-option.selected i {
    color: white;
}

.custom-select-option i {
    width: 20px;
    color: #4ecdc4;
    font-size: 1rem;
}

.custom-select-option:hover i,
.custom-select-option.selected i {
    color: white;
}

/* input oculto para guardar el valor real */
#proposalCategory {
    display: none;
}

/* animación de entrada para las opciones */
@keyframes optionPop {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* estilos para inputs de texto */
.form-control-lg {
    width: 100%;
    padding: 12px 18px;
    font-size: 1rem;
    border: 2px solid #e0e7ff;
    border-radius: 15px;
    background: #f8faff;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    outline: none;
    border-color: #4ecdc4;
    background: white;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

textarea.form-control-lg {
    resize: vertical;
    min-height: 80px;
}

/* botón de enviar */
.btn-proposal {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    background: white;
    color: #4ecdc4;
    border: 2px solid #4ecdc4;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.btn-proposal i {
    margin-right: 8px;
    font-size: 1rem;
}

.btn-proposal:hover {
    background: #4ecdc4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
}

.btn-proposal:active {
    transform: translateY(0);
}

/* mensaje de éxito */
.proposal-success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proposal-success-message i {
    font-size: 1.5rem;
    color: #28a745;
}

.proposal-success-message span {
    color: #155724;
    font-weight: 500;
    font-size: 0.9rem;
}

/* nota informativa */
.proposal-note {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(78, 205, 196, 0.08);
    border-radius: 12px;
    font-size: 0.85rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px dashed #4ecdc4;
}

.proposal-note i {
    color: #4ecdc4;
    font-size: 1rem;
}

/* responsive para móviles */
@media (max-width: 768px) {
    #proposalsSection {
        min-height: auto;
        display: block;
    }
    
    .proposals-main-card {
        padding: 20px;
        margin: 0 10px;
    }
    
    .proposals-content-horizontal {
        flex-direction: column;
        gap: 20px;
    }
    
    .proposals-info-column {
        border-right: none;
        border-bottom: 2px solid rgba(78, 205, 196, 0.2);
        padding-right: 0;
        padding-bottom: 15px;
    }
    
    .proposals-header h1 {
        font-size: 1.8rem;
    }
    
    .proposals-header i {
        font-size: 2rem;
        padding: 12px;
    }
    
    .proposals-info-column h2 {
        font-size: 1.4rem;
    }
    
    /* ajustes responsive para el select */
    .custom-select-display {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .custom-select-option {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .form-control-lg {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* animación de entrada principal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proposals-main-card {
    animation: fadeInUp 0.6s ease;
}