/* ============================================================================
   ESTILOS PARA SECCIONES DE VOTACIÓN
   ============================================================================ */

/* Banner de Votación */
.banner-votacion {
    background: linear-gradient(135deg, #FF8C1A 0%, #00BFA6 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 5rem; /* Espacio para el header fijo en móvil */
}

@media (min-width: 768px) {
    .banner-votacion {
        padding-top: 6rem; /* Espacio para el header fijo en desktop */
    }
}

.banner-votacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.banner-votacion-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 0; /* El padding está en el contenedor padre */
}

.banner-votacion-titulo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .banner-votacion-titulo {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .banner-votacion-titulo {
        font-size: 3.5rem;
    }
}

.banner-votacion-subtitulo {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .banner-votacion-subtitulo {
        font-size: 1.25rem;
    }
}

.banner-votacion-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .banner-votacion-info {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        align-items: stretch;
    }
}

.banner-votacion-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex: 1;
    transition: all 0.3s ease;
}

.banner-votacion-info .info-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.info-item-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 0.75rem;
    font-size: 1.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.info-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.info-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.info-item-value {
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .info-item-value {
        font-size: 1.125rem;
    }
}

.banner-votacion-contador {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contador-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.contador-numeros {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contador-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.contador-valor {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@media (min-width: 768px) {
    .contador-valor {
        font-size: 3.5rem;
    }
}

.contador-etiqueta {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.contador-separador {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.8;
}

.contador-finalizado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.contador-finalizado i {
    font-size: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.banner-votacion-botones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .banner-votacion-botones {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

.btn-votacion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.btn-votacion-primary {
    background: white;
    color: #FF8C1A;
}

.btn-votacion-primary:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-votacion-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-votacion-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-votacion-tertiary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-votacion-tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.banner-votacion-mensaje {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-votacion-mensaje i {
    font-size: 1.5rem;
}

/* Proyectos Finalistas Destacados */
.proyectos-finalistas-destacados {
    background: #f9fafb;
}

.proyecto-finalista-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.proyecto-finalista-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.proyecto-finalista-imagen {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #FF8C1A, #00BFA6);
}

.proyecto-finalista-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.proyecto-finalista-card:hover .proyecto-finalista-imagen img {
    transform: scale(1.1);
}

.proyecto-finalista-sin-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.proyecto-finalista-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.proyecto-finalista-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #00BFA6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.proyecto-finalista-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.proyecto-finalista-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.badge-tipo {
    background: #FF8C1A;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-barrio {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.proyecto-finalista-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.proyecto-finalista-titulo a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.proyecto-finalista-titulo a:hover {
    color: #FF8C1A;
}

.proyecto-finalista-descripcion {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.proyecto-finalista-presupuesto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00BFA6;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.proyecto-finalista-acciones {
    margin-top: auto;
}

.btn-ver-detalle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #FF8C1A;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ver-detalle:hover {
    background: #e66f00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 26, 0.4);
}

.btn-ver-todos-finalistas {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #FF8C1A 0%, #FF6B35 100%);
    color: white;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.3);
}

.btn-ver-todos-finalistas:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.4);
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C1A 100%);
}

/* Búsqueda de Padrón */
.busqueda-padron-inicio {
    background: #f9fafb;
}

.padron-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.padron-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: height 0.3s ease;
}

.padron-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.padron-card-busqueda {
    border-left: 5px solid #00BFA6;
}

.padron-card-busqueda::before {
    background: linear-gradient(90deg, #00BFA6, #00d9c0);
}

.padron-card-busqueda:hover::before {
    height: 8px;
}

.padron-card-solicitud {
    border-left: 5px solid #FF8C1A;
}

.padron-card-solicitud::before {
    background: linear-gradient(90deg, #FF8C1A, #ffa64d);
}

.padron-card-solicitud:hover::before {
    height: 8px;
}

.padron-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.padron-card-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.padron-card:hover .padron-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.padron-card-busqueda .padron-card-icon {
    background: linear-gradient(135deg, #00BFA6, #00d9c0);
    color: white;
}

.padron-card-solicitud .padron-card-icon {
    background: linear-gradient(135deg, #FF8C1A, #ffa64d);
    color: white;
}

.padron-card-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.padron-card-subtitulo {
    font-size: 1.125rem;
    color: #FF8C1A;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.padron-card-busqueda .padron-card-subtitulo {
    color: #00BFA6;
}

.padron-card-descripcion {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex: 1;
    font-size: 1rem;
}

.padron-card-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.padron-card-boton i {
    font-size: 1.25rem;
}

.padron-card-boton span {
    flex: 1;
    text-align: center;
}

.padron-card-boton-primary {
    background: linear-gradient(135deg, #00BFA6, #00d9c0);
    color: white;
}

.padron-card-boton-primary:hover {
    background: linear-gradient(135deg, #00a693, #00BFA6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 166, 0.4);
}

.padron-card-boton-secondary {
    background: linear-gradient(135deg, #FF8C1A, #ffa64d);
    color: white;
}

.padron-card-boton-secondary:hover {
    background: linear-gradient(135deg, #e66f00, #FF8C1A);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.4);
}

/* Información de Votación */
.info-votacion {
    background: #f9fafb;
}

.info-votacion-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.info-votacion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF8C1A, #00BFA6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-votacion-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: #FF8C1A;
}

.info-votacion-card:hover::before {
    transform: scaleX(1);
}

.info-votacion-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #fff5e6, #ffe7c7);
    color: #FF8C1A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 140, 26, 0.2);
    transition: all 0.3s ease;
}

.info-votacion-card:hover .info-votacion-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.3);
}

.info-votacion-card-titulo {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.info-votacion-card-content {
    flex: 1;
}

.info-votacion-item {
    margin-bottom: 1.25rem;
    color: #374151;
    line-height: 1.7;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.info-votacion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-votacion-item strong {
    color: #111827;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FF8C1A;
}

.info-votacion-lista {
    list-style: none;
    padding: 0;
    color: #374151;
    line-height: 2;
    margin-bottom: 1rem;
    counter-reset: step-counter;
}

.info-votacion-lista li {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
}

.info-votacion-lista li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FF8C1A, #ffa64d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .banner-votacion-titulo {
        font-size: 1.75rem;
    }
    
    .banner-votacion-info {
        font-size: 0.875rem;
    }
    
    .info-item-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.25rem;
    }
    
    .info-item-value {
        font-size: 0.9375rem;
    }
    
    .contador-valor {
        font-size: 2rem;
    }
    
    .contador-item {
        min-width: 60px;
    }
    
    .padron-card {
        padding: 1.5rem;
    }
    
    .padron-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .padron-card-icon {
        width: 64px;
        height: 64px;
        min-width: 64px;
        font-size: 1.75rem;
    }
    
    .padron-card-titulo {
        font-size: 1.25rem;
    }
    
    .info-votacion-card {
        padding: 1.5rem;
    }
    
    .info-votacion-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
    
    .info-votacion-card-titulo {
        font-size: 1.125rem;
    }
}

